Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 28th, 2001, 06:02 PM
Paolo0203 Paolo0203 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Miami, FL
Posts: 7 Paolo0203 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Paolo0203
Question PHP Help

Howdy there.

I was wondering if anyone was able to help me out with PHP. I'm just a beginner, and I was wondering how you make a php script write information. Say a user submits a form, how do you make php create a file, and then print the info the user sent on the file?

Also, many people told me to check:

PHP Code:
<?php

phpinfo
();

?>


or something like that out. When I go there, though, there's this huge bunch of tables with many commands that I have no idea on how to use.

Please either email me to darkangel0203@cs.com or reply to this thread with any help you can give me, I would greatly appreciate it.

Cheers

Reply With Quote
  #2  
Old July 30th, 2001, 12:02 PM
Tom-Robin Tom-Robin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Cumbria, UK
Posts: 11 Tom-Robin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wink Hope this helps...

Hi THere

I know nothing about PHP - but I came across a site recently where you may find the help you need:
http://www.php.net

Seems like a good site to me...

Good luck!
Robin

Reply With Quote
  #3  
Old July 30th, 2001, 12:04 PM
Paolo0203 Paolo0203 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Miami, FL
Posts: 7 Paolo0203 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Paolo0203
Thanks

Hi,

Thanks, but I already figured it out.
Cheers

Reply With Quote
  #4  
Old July 30th, 2001, 04:16 PM
Philip Olson Philip Olson is offline
loves google.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Location: Pacific Northwest
Posts: 645 Philip Olson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
phpinfo() rules although it won't help you create files :-) You stated you figured it out but jic here are some words :

phpinfo spits out a bunch of information, let's say you stick your phpinfo code in a file called info.php then call it like :

info.php?bread=rye&butter=no

Somewhere in there you may see reference to $HTTP_GET_VARS so if you do :

print $HTTP_GET_VARS['bread']; // prints rye
print $HTTP_GET_VARS['butter']; // prints no

Usually the register_globals setting in php.ini (php configurations) is ON and if so, then $bread and $butter can also be used (you'll see register_globals somewhere in info.php and it'll tell you if it's on or off). Anyway, that's what people mean by saying "see phpinfo()" as you'll see other predefined variables such as PHP_SELF in there, and what they'll output, and all kinds of info. Play with it for awhile.

Regarding writing files, see fopen() and fwrite().
__________________
.sig
* http://www.php.net/manual/

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > PHP Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway