Delphi For PHP Forums       


Go Back   Delphi-PHP Forums > General > General Discussion
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

General Discussion If it's not covered anywhere else, then talk about it here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 1st October 2008, 22:34
alquimista's Avatar
D4PHP Guru
 
Join Date: Aug 2008
Location: Guadalajara, México
Posts: 234
alquimista is on a distinguished road
Default Linux delploy problem...

Hi,

I tried to deploy my first D4PHP application on a remote server.

1- I tested the application on a local Web Server. Runs OK
2- I tested the app., using a connection to the remote database on the remote Web Host I'd install the app. Runs OK
3- I uploaded the application to my Web Host; they support MySQL and PHP. I copied the php.ini to the directory where all the app php programs.
4- I copied all VCL directory to the remote host, that runs under Linux.

5- I ran the app and I get:

Quote:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /mnt/w0300/d33/s35/b018aae6/www/test/LyR_BancoLista.php on line 23
The code is:

PHP Code:
class LyR_BancoLista extends LyR_Plantilla
{
    public 
$Label_pantallaActual_x null;       // <----- Line 23
    
public $JTSiteTheme1 null;
    public 
$JTHorizontalLine1 null

Am I missing something?

Guillermo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 1st October 2008, 22:50
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,271
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

A search on T_OLD_FUNCTION will bring up a whole bunch of threads that tell you it is php4 and not php5.

Check to see if php5 is available on your server. Some hosts have both 4 and 5 installed and there are ways of making one or the other the default.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 1st October 2008, 23:14
alquimista's Avatar
D4PHP Guru
 
Join Date: Aug 2008
Location: Guadalajara, México
Posts: 234
alquimista is on a distinguished road
Default

Thank you;

I configured the Host to handle PHP 5 and now it works; yet I keep receiving another error:

Quote:
Warning: session_start() [function.session-start]: open(C:\WINDOWS\Temp/sess_33i9dpn2ng6cl8um45jt4u9tu4, O_RDWR) failed: No such file or directory (2) in /mnt/w0300/d33/s35/b018aae6/www/test/vcl/forms.inc.php on line 130
I suppose its trying to create session files on a temp directory; what can I do on this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 1st October 2008, 23:47
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,271
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

See if this helps
FAQTs - Knowledge Base - View Entry - Warning session_start()[funktion.session-start]: open(/tmp\sess_...faild no such file or dir(2) why?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 1st October 2008, 23:49
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,271
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Quote:
I copied the php.ini to the directory
This would be the problem. the php.ini is more or less custom for every computer.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 2nd October 2008, 02:05
alquimista's Avatar
D4PHP Guru
 
Join Date: Aug 2008
Location: Guadalajara, México
Posts: 234
alquimista is on a distinguished road
Smile

It was the php.ini :

By default it comes with:

Quote:
session.save_path="C:\WINDOWS\Temp"
In my case, I changed it to

Quote:
session.save_path="."
And now everything works fine


Thank you for your help 405hp!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 22:47.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use