PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

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 Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 14th, 2004, 02:23 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Installing php

I am installing php on my system and am lost. I have Windows Xp and in the book i have it says to rename php.ini-dist file to php.ini and move to c:Windows or wherever you usually put your *.ini files, well not sure where that is because i havent ever remembered of putting any ini files anywhere.
Then it says to Move msvcrt.dll and php4ts.dll to C;WindowsSystemor whereever you usually put your *.dll files.
This is where im really lost dont know where to put these files so php will work with Apache. CAn anyone lean a helping hand on where i need to put these files. I have read other explainations and still lost.

Reply With Quote
  #2  
Old February 14th, 2004, 05:57 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Installing php

Ok i figured it out. Only problem i am having now is when i try to post to my guestbook it doesnt post. I am using a swf/flash guestbook and says posting new message but does nothing. Any advice on this?

Reply With Quote
  #3  
Old February 14th, 2004, 06:06 AM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: Installing php

Which PHP version you are using?

Are you using superglobals in receiving posted data such as $_POST['varname']?

Reply With Quote
  #4  
Old February 14th, 2004, 06:24 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Installing php

Im using version 4.3.4-win32 and here is the code i use on my send button
php Code:
Original - php Code
  1.  
  2. <?php
  3.  
  4. $Submit     = $_POST["Submit"];
  5. $Name           = $_POST["Name"];
  6. $E-mail     = $_POST["Email"];
  7. $Website    = $_POST["Website"];
  8. $Comment    = $_POST["Comments"];
  9. $NumLow     = $_REQUEST["NumLow"];
  10. $NumHigh    = $_REQUEST["NumHigh"];
  11.  
  12. then some more stuff then
  13. if ($Submit == "Yes") {
  14.  
  15.     $filename   = "GuestBook.txt";
  16. $fp         = fopen( $filename,"r");
  17.     $OldData    = fread($fp, 80000);
  18.     fclose( $fp );
  19.  $Today         = (date ("l dS of F Y ( h:i:s A )",time()));
  20. $Input = "Name: <b>$Name</b><br>E-mail: <b><u><a href="mailto:$Email">$Email</a></u></b><br>Website: <b><u><a href="http://$Website" target="_blank">$Website</a></u></b><br><b>$Comments: <b>$Comments</b><br><i><font size="-1">Date: $Today</font><br><br>.:::.";
  21. $New = "$Input$OldData";
  22. $fp = fopen( $filename,"w");
  23.     if(!$fp) die("&GuestBook=cannot write $filename ......&");
  24.     fwrite($fp, $New, 800000);
  25.     fclose( $fp );
  26. $filename = "GuestBook.txt";
  27. $fp     = fopen( $filename,"r");
  28.     $Data   = fread($fp, 800000);
  29.     fclose( $fp );
  30. $DataArray = split (".:::.", $Data);
  31. $NumEntries = count($DataArray) - 1;
  32. print "&TotalEntries=$NumEntries&NumLow=$NumLow&NumHigh=$NumHigh&GuestBook=";
  33.     for ($n = $NumLow; $n < $NumHigh; $n++) {
  34.     print $DataArray[$n];
  35.         if (!$DataArray[$n]) {
  36.             Print "<br><br><b>No More entries</b>";
  37.         exit;
  38.         }
  39.     }


Hope this helps out.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Installing php


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 6 hosted by Hostway