Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-02-2004, 06:39 PM   PM User | #1
shikamoo
New to the CF scene

 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
shikamoo is an unknown quantity at this point
greater than sign messing up the code

First off, I know nothing about PHP other than the fact that it starts with a <?php and ends with a ?>. We all have to start from somewhere, right?

I inserted some PHP code called Upload2Server at the top of my page that's going to be an application form. The user fills it in and what I'm trying to do is simply email all the fields to the client.

The code looks really nice , but this statement:

if($size > 0)

Makes my browser think it's the end of a tag and from that point on, all the PHP code is displayed at the top of my page.

Is there a suitable substitute for "if($size > 0)"?
shikamoo is offline   Reply With Quote
Old 04-02-2004, 07:59 PM   PM User | #2
Az`
New Coder

 
Join Date: Mar 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Az` is an unknown quantity at this point
No, that in itself would not do that.
For one, it isn't a ?>, just a >.
Have you got other scripts working properly on your server?
Try just putting this:
PHP Code:
<?php
phpinfo
();
?>
And see if it gives you the setup of your server's php.
Az` is offline   Reply With Quote
Old 04-02-2004, 08:46 PM   PM User | #3
raf
Master Coder


 
Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
raf will become famous soon enoughraf will become famous soon enough
Welcome here!

Maybe post some more code so we can give some helpfull feedback.
__________________
Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html
raf is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:21 PM.


Advertisement
Log in to turn off these ads.