Welcome Guest ( Log In | Register )



2 Pages V   1 2 >  
Reply to this topicStart new topic
> How Do I Do Script Checking & Validation In PHP?
lonebyrd
post May 3 2006, 05:06 AM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 302
Joined: 23-February 06
From: Northeastern Connecticut USA
Member No.: 11,487



I'm totally new to all this, and I've just done a registration/login script. It has 5 different files that I put stuff in, plus a database. When I try to see how it looks on my website, well, it just doesn't show up. What I want to know is, how can I tell what I'm doing wrong? I don't always understand what the editors in the script programs are trying to say. Is there anyone out there who can help? My scripts are written in PHP with a MySql database. Boy, this all gets confusing, but I sure love every minute of it!
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post May 3 2006, 06:24 AM
Post #2


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411
myCENTs:84.36



You need some Editor that has autocompletion - in order to ease you out with the PHP syntax in the initial stages. Also you need syntax highlighting and error checking. There are several such editors out there - am sure the PHP gurus here will be able to point them out. As for myself, I'd suggest Zend Studio - although, it's a mighty expensive package.
Go to the top of the page
 
+Quote Post
TavoxPeru
post May 3 2006, 06:29 AM
Post #3


Super Member
Group Icon

Group: [HOSTED]
Posts: 794
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579
myCENTs:78.07



QUOTE(lonebyrd @ May 3 2006, 12:06 AM) *

I'm totally new to all this, and I've just done a registration/login script. It has 5 different files that I put stuff in, plus a database. When I try to see how it looks on my website, well, it just doesn't show up. What I want to know is, how can I tell what I'm doing wrong? I don't always understand what the editors in the script programs are trying to say. Is there anyone out there who can help? My scripts are written in PHP with a MySql database. Boy, this all gets confusing, but I sure love every minute of it!

Hi, here you can find a lot of people that will help you, including myself, but first you have to post your files to see the source code, if you want send me by mail your files preferebly compressed either in zip or rar format to this account: gustavo_DOT_cruzortiz_AT_gmail_DOT_COM.

regards,
Go to the top of the page
 
+Quote Post
yordan
post May 3 2006, 06:52 PM
Post #4


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 2,183
Joined: 16-August 05
Member No.: 7,896
myCENTs:15.50



Also, you can use the Forum's private messages to send us your files. first of all, show us your "index.html" or the "index.php" file.
Regards
Yordan

This post has been edited by yordan: May 3 2006, 07:26 PM
Go to the top of the page
 
+Quote Post
jlhaslip
post May 3 2006, 07:00 PM
Post #5


Advanced Member
Group Icon

Group: Members
Posts: 189
Joined: 15-November 05
From: Inland from the Left Coast of Canada
Member No.: 9,627
myCENTs:62.43



Post it here inside a [ code box ] and we'll all have a look at it and might be able to find out what the problem is.
First question I have is: Are you running it Local or on a Host?
If Local, are you running it through a web Browser as Localhost ( sillier mistakes have been made ). Is the Server running? and mysql server?
Do a view source to see what html is being output and that might give you a clue as to what is happening.
Error reporting On or Off? Set it 'On' for debugging purposes.
Go to the top of the page
 
+Quote Post
lonebyrd
post May 4 2006, 02:57 AM
Post #6


Premium Member
Group Icon

Group: Members
Posts: 302
Joined: 23-February 06
From: Northeastern Connecticut USA
Member No.: 11,487



Everyone brings up alot of points. 1st point... I could use the private message system, but my index file was never really used for registration/login purposes. Maybe that is where I'm getting confused in how to get the registration page to start up. 2nd point... I don't know if I am supposed to be doing this coding through my XAMMP first or just do it on my astahost acct. Right now, I am using everything available to me through the cpanel in my astahost acct. I've done some things in PHP Designer and transfered it to the cpanel, but is that what I am supposed to do?

But if anyone is up for looking at some (probably very messed up) php code, let me know and I will PM the coding I've done. I could put them here, if people would rather I do that. I just don't know if that is what is normally done, and I don't want to be a disruption.
Go to the top of the page
 
+Quote Post
jlhaslip
post May 4 2006, 08:07 AM
Post #7


Advanced Member
Group Icon

Group: Members
Posts: 189
Joined: 15-November 05
From: Inland from the Left Coast of Canada
Member No.: 9,627
myCENTs:62.43



I don't know if there is a 'right' way, but here is what I usually do:
I write the code locally and then run it through my local install of XAMPP to debug the script and when it is completed ( debugged to what i think it needs for the site it belongs to ) then I upload it and test the script again using the Host's versions of the php, mysql, etc. There can be version differences and the installations are never indentical, so there are bound to be 'some' difficulties appear.
If the problems are minor, I use the cpanel editor to fix the scripts/pages.
If there is a major difficulty, like a logic modification required, then I re-work the script locally and repeat the procedure.
Keeping the test phase local is easier since ftp is not required and the server load isn't a concern ( for me or the other users ). This also avoids putting the server into an infinite loop and hogging the server from other users, but, of course, that has never happened to me because all my Logic is rock solid right from the git-go ( yeah, right! )
Anyway, hope this helps.
Also, I am using a text editor by the name of ConTEXT which is a freeware product and is a very nicely designed, full function text editor. Highlighting by file extension, and lots of other good features for coding. Download it from http://www.context.cx

Incidently, post the code here would be good, or at least a link to a text/zip file.

This post has been edited by jlhaslip: May 4 2006, 08:09 AM
Go to the top of the page
 
+Quote Post
Houdini
post May 4 2006, 01:54 PM
Post #8


Super Member
Group Icon

Group: Members
Posts: 572
Joined: 25-April 05
From: Nashville Tennessee
Member No.: 4,340



It would help if you posted the scripts that you currently have. It is hard to know what it going on without seeing some actual code. It would be a good idea to set up a webserver with PHP and MySQL on your local PC to test scripts with before you place them on the web that way they will work provided the setupas are similar to the host you are uploading the scripts to.
Go to the top of the page
 
+Quote Post
minnieadkins
post May 4 2006, 09:25 PM
Post #9


Premium Member
Group Icon

Group: Members
Posts: 292
Joined: 15-December 04
Member No.: 1,768



What exactly shows up? If nothing shows up it might be due to one of your sql statements being incorrect. I don't think that sql warnings are enabled on astahost. You probably ought to try running it locally and turn on all error messages for debugging purposes. Like everyone says show us some of your source code, and maybe direct us to the site that you're working on, if it's stored on astahost that is.

Let us know what exactly your problem is. You say nothing's showing up. Is it just a blank screen? No errors? Try to view source and see what it says. Throw in a echo "this is a debug statement"; Make sure it's doing something.
Go to the top of the page
 
+Quote Post
TavoxPeru
post May 5 2006, 11:51 PM
Post #10


Super Member
Group Icon

Group: [HOSTED]
Posts: 794
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579
myCENTs:78.07



If someone wants the complete solUtion i develop please PM me to send it, of course its not absolutely complete but for a start is good enough i think.

best regards,
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Trainable Anti-spam Filter Script(3)
  2. Php Script To Download File From Another Site(9)
  3. Need Help With A PHP - MySQL Registration Script(13)
  4. What Would Make A Good Registration Script?(4)
  5. How To Delete File Using PHP Shell Script(3)
  6. Online Multiplayer Chess Script(2)
  7. Automated File Structure Creation Script(3)
  8. Problem With Xhtml Validation(6)
  9. Authentication Script(1)
  10. Login Script(5)
  11. Xhtml Validation With Php In Cgi Mode(0)
  12. Please Help (php Join Script)(5)
  13. Automatic/remote Php Script Execution(9)
  14. Something Wrong With This Script?(9)
  15. Automated Product Suggestion Script(2)
  1. Run A Script When Expires A Session(6)
  2. Php Script Help(1)
  3. SQL Doesn't Connect In PHP Script(19)
  4. Warning: Mysql_result(): Supplied Argument Is Not A Valid Mysql Result Resource In ...(4)
  5. Password Recovery Script(6)
  6. Login Script(8)
  7. Free Forum Hosting Type Script Help!(2)
  8. Script Request(2)
  9. Writing And Testing My Own Login Script [solved](20)
  10. Make A Script Run Even If No User Is Online(6)
  11. Php Login Script(0)
  12. Myspacetv Download Php Script Help(6)
  13. Checking Without Loading(1)


 



- Lo-Fi Version Time is now: 20th November 2008 - 08:54 PM