Moved simple php files from ISP but getting error
Posted by: ASNet0007 (---.server.ntli.net)
Date: January 23, 2007 05:39PM

Hi,
I have recently installed your excellent wamp software so I can learn a bit more about php.
I have been using a very basic guestbook script for a while on a few different ISP's without any problems, but it doesn't work on my wamp install. The script doesn't even use a database but a text file to store the entries. If I enter something and hit submit nothing is added to the text file.
I have enabled E_ALL in php.ini and get the error Undefined variable:
Why would I be getting this error with the WAMP software and not any of my ISP's?
Thanks for any advice.


Options: ReplyQuote
Re: Moved simple php files from ISP but getting error
Posted by: yfastud (72.236.169.---)
Date: January 23, 2007 06:14PM

Firstly, there are 2 php.ini in wamp dir, so you might edit the wrong one; make sure to get it through tray icon. Secondly, short_open_tag is off by default that might cause your script not function as well.

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)

Options: ReplyQuote
Re: Moved simple php files from ISP but getting error
Posted by: ASNet0007 (---.server.ntli.net)
Date: January 23, 2007 06:37PM

Thanks for your fast reply.

Still no joy with short_open_tag = on

Any other ideas?

Options: ReplyQuote
Re: Moved simple php files from ISP but getting error
Posted by: yfastud (72.236.169.---)
Date: January 23, 2007 07:04PM

Always restart wampserver after editing any config file and also check error log to see what wrong.

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)



Post Edited (01-23-07 19:06)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Moved simple php files from ISP but getting error
Posted by: ASNet0007 (---.server.ntli.net)
Date: January 23, 2007 08:00PM

Hi,
I did restart the services & the error logs just say the same ie

PHP Notice: Undefined variable: row in C:\wamp\www\............\readbook.php on line 16
PHP Notice: Undefined variable: row in C:\wamp\www\............\readbook.php on line 18

From my script

16= for ($i = $row; $i < ($row + 10); $i++)

18= echo $fileName [$i];

If you dont have any more ideas i'll try a different script.

Options: ReplyQuote
Re: Moved simple php files from ISP but getting error
Posted by: yfastud (72.236.169.---)
Date: January 23, 2007 08:16PM

Honestly, I'm new to php, too, so not sure which extension should be on to make it work.
But is it just 16 and 18 instead $16 and $18?

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)

Options: ReplyQuote
Re: Moved simple php files from ISP but getting error
Posted by: CyberSpatium (71.237.217.---)
Date: February 02, 2007 08:24PM

the reason why you are getting the Undefined Variable error for wamp and not your host is because you changed the setting error_reporting in your php.ini file to E_ALL which shows all php errors. you webhost has their error_reporting set to either E_ALL & ~E_NOTICE or E_ALL & ~E_NOTICE & ~E_STRICT which only displays the more serious errors for security reasons, not your Undefined Variable error which php does not consider serious.

[www.php.net]

CyberSpatium
WAMP English Forum Admin
--------------------------------------

like my free support, help support me by checking out my website here:
www.AnyRingTone.net

Options: ReplyQuote


Sorry, only registered users may post in this forum.