IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
10 Pages V  « < 8 9 10  
Reply to this topicStart new topic

How do you test your php code


xpress
no avatar
XPRESSing the XPRESSion
*********
Group: [HOSTED]
Posts: 609
Joined: 16-August 08
From: X Universe
Member No.: 66,523
Spam Patrol
myCENT:97.91



Post #91 post Dec 16 2008, 02:52 PM
QUOTE (contactskn @ Dec 16 2008, 03:56 PM) *
Dear friend I generally after creating a php page test it with my web hosting service provider I don't know but I think its a difficult one to make your own server to just test your php pages. 


Its not difficult to install your local server contactskn. Its very easy. I'll tell you a simplest method. Just download WAMP Server. Install it in your computer. Then put your php files in the WWW folder. Start the WAMP Server. Then open your browser and type http://localhost/yourfilename.php . Thats it. Very easy.
Try it once and you'll understand that it is pretty easy than uploading and testing on remote server. I'll help you if you need any further help smile.gif
Go to the top of the page
+Quote Post
triplebtalk
no avatar
Super Member
*********
Group: Members
Posts: 210
Joined: 30-December 08
From: Australia
Member No.: 75,132
myCENT:0.76



Post #92 post Dec 31 2008, 06:29 PM
I have a testing server which is run by EasyPHP. It is simple and very easy to use. All I need to do is put my files in a folder called "www" and open up the files on the EasyPHP application... Simple:)
Go to the top of the page
+Quote Post
MALISH_
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 10
Joined: 20-February 09
Member No.: 77,324



Post #93 post Feb 20 2009, 06:56 PM
I have a "schwarz" server, there i test my "all"
Go to the top of the page
+Quote Post
Quatrux
no avatar
Super Member
*********
Group: Members
Posts: 230
Joined: 2-November 08
From: Lithuania, Vilnius
Member No.: 71,241
myCENT:39.30



Post #94 post Feb 20 2009, 07:14 PM
I just do all the PHP programming on localhost, on Windows I just have installed Wampserver and it all works, phpmyadmin, mysql and php, apache and the settings is easy to change and the default is very well set, I like Wampserver that it's easy to change between PHP4 and PHP5, even though for half of year now I don't make PHP4 compatible code anymore, even though I had a client which wanted it to work on PHP4, it took a bit to change that and that or add a function which does almost the same thing..

I always use an PHP IDE and execute the PHP code through a browser, just by changing between windows, I don't use the debug mode in the IDE, even though my IDE has real time php checking for syntax errors and such smile.gif
Go to the top of the page
+Quote Post
iworld200
no avatar
Advanced Member
*******
Group: Members
Posts: 140
Joined: 23-June 09
Member No.: 83,653
myCENT:READY[302.67]



Post #95 post Aug 27 2009, 07:00 PM
I was so much worried before, thinking, i need a website and a webhost in order to test my php programs and my search through internet gave me a nice suggestion, and i got my dream program easyPHP. its the best for the beginner. It has everything that a beginner and an advanced programmer needs. Its very easy to run. After having installed, I checked whether the easyPHP is running or not by opening up the browser and entering http://localhost; the default page of easyPHP loads. All the php programs need to be placed inside "www" folder of easyPHP. It can be tested by using the following url http://localhost/example.php
please note : its just an example of the code to execute.
Go to the top of the page
+Quote Post
alexthemans
no avatar
Member [Level 1]
****
Group: Members
Posts: 64
Joined: 26-August 09
From: Hong Kong
Member No.: 87,156
myCENT:87.69



Post #96 post Aug 29 2009, 01:44 PM
QUOTE (Xenon @ Aug 7 2004, 08:17 AM) *
We know that php is a server side scripting language. So we will need a server with the php parser to parse/test our code.
How are you doing that. Do you upload it to a server for testing or did you instal php and the server (apache) on your computer (localhost)


If you are laxy enough and are very familiar in HTML, you may run PHP scripts from the command line.
http://us3.php.net/manual/en/features.commandline.php

However, I instead test PHP application in a free hosting space.
Go to the top of the page
+Quote Post
TheDarkHacker
no avatar
Super Member
*********
Group: Members
Posts: 205
Joined: 6-October 09
From: somewhere where arent others
Member No.: 89,308
myCENT:60.93



Post #97 post Oct 29 2009, 03:42 PM
First i test scripts on my local server and if it works and if it is good,with good design and it is not damaging my website,i am uploading it on my server.The funny thing is, that some funny scripts which i want to be published to the internet,i am uploading them but with very complicate name.So if i go in someones home,i want to show him what script i did and i open it on his computer.Sometimes i give simple names so am sending links of my script.But always that funny scripts are without design and only stupid things.Example
QUOTE
Test:Like what animal you are looking like

My local server sometimes doesn't work so i need to restart my computer...Thing i want to do is to make scripts for others,for example someone doesn't know how to create image, and i want to help him,and on that way i learn more.
Go to the top of the page
+Quote Post
magiccode9
no avatar
Premium Member
********
Group: Members
Posts: 188
Joined: 1-November 05
From: python inside
Member No.: 13,683
myCENT:82.14



Post #98 post Oct 29 2009, 04:25 PM
On some old day I test my php code by simply echo 'something` to the web page or screen.
Now I use unit testing for testing the code on localhost.
This ensure that at least all my functions or classes work as expected.
Then, moving on to hosting to test the rest of code.

Go to the top of the page
+Quote Post

10 Pages V  « < 8 9 10
Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   3 -Sky- 663 12th June 2009 - 08:48 PM
Last post by: -Sky-
No New Posts 7 odomike 19,025 30th April 2008 - 02:44 PM
Last post by: FeedBacker
No New Posts   11 bttfpromo 11,547 14th September 2004 - 08:55 PM
Last post by: Magic-Node
No New Posts   2 Lurk 3,835 11th September 2004 - 05:40 PM
Last post by: Triple X
No New Posts   6 XtremeGamer99 6,315 9th February 2005 - 10:48 AM
Last post by: alexwhin
No New Posts 1 kylelnsn 1,252 26th July 2006 - 10:55 AM
Last post by: kdr_98
No new   25 gijoe18 24,501 20th February 2009 - 06:55 PM
Last post by: MALISH_
No New Posts   1 BCD 178 3rd September 2009 - 09:28 PM
Last post by: truefusion
No New Posts   5 Tetraca 1,252 15th July 2006 - 11:06 PM
Last post by: Plenoptic
No New Posts   4 icss21 3,025 7th March 2009 - 09:45 PM
Last post by: andreip
No new   21 googlue 15,000 9th October 2004 - 07:44 PM
Last post by: dontmaimyourself
No New Posts   3 jglw22 890 26th May 2008 - 02:10 PM
Last post by: Framp
No New Posts   4 Forbidden 7,570 28th March 2008 - 07:37 PM
Last post by: saran
No New Posts   9 hatebreed 6,721 22nd October 2004 - 10:50 PM
Last post by: keifer
No New Posts   6 sargilla 6,808 4th November 2004 - 02:54 PM
Last post by: Lyon


 



RSS Open Discussion Time is now: 22nd November 2009 - 02:10 AM

Web Hosting Powered by ComputingHost.com.