|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Hello!
I am a PHP newbie, but C/C++ guru and I am having sometrouble with a first piece of PHP code I've ever written. Namely, the script starts with some HTML tags, and then switches to PHP routines that check variables passed to script via $_GET... However, the script doesn't work. Actually, nothing gets printed in the browser, not even the beginning HTML tags (title, and some <centered> text)... I don't know where to begin. I've included a custom error handler functions (copied from PHP manual), but still nothing gets printed. I am also using MySQL functions. The PHP parser is 4.2, running on FreeBSD platform. Other, simpler PHP scripts run smoothly (simple echoing etc...) The code is short (a test to MySQL/PHP login system)... perhaps someone would be nice enough to view it? Thanks in advance! ![]() |
|
#2
|
|||
|
|||
|
post the code here or upload a copy of it with the file extension .phps (which allows us to see the code color coded for easy viewing). we'll be glad to help
![]()
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#3
|
|||
|
|||
|
yeah, could we see your code, so we can try and figure out whats gone wrong?
|
|
#4
|
|||
|
|||
|
Hello fellahs!
Here is the code: Feel free to gloat over newbie mistakes and make fun of me... (by the way, couldn't upload a phps file) Sorry, but message editor seems to have cut off the tabs! PHP Code:
Last edited by vlad_k : October 30th, 2002 at 12:07 AM. |
|
#5
|
|||
|
|||
|
Hello!
You've forgotten about me. ![]() |
|
#6
|
|||
|
|||
|
so what doesnt it do? what error messages do you get?
|
|
#7
|
|||
|
|||
|
Uhm, I am sooooo embarrased!
I forgot to escape the slashes in an echo call.... Please forgive me wasting your time... Is there a Win32 PHP interpreter so I could test my scripts thoroughly before posting them online? Last edited by vlad_k : November 4th, 2002 at 01:21 AM. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP newbie in trouble |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|