Question

Login script not working

Asked by: TeKKeD

I recently purchase a book on PHP & mySQL, and needed to build a php & mysql based system, however, as i went along and did all the code, i kept getting errors, i've re-typed the code again and again even copy-pasted it off the ebook, but the book code just does not work, can someone check it out and let me know how i can fix it....

----book code (DOES NOT WORK)----

<?
if ((!$_POST[username]) || (!$_POST[password])) {
   header( "Location: http://127.0.0.1/show_login.html");
   exit;
}
$db_name = "testDB";
$table_name = "auth_users";
$connection = @mysql_connect("localhost", "spike", "9sj7En4")
or die(mysql_error());
$db = @mysql_select_db($db_name, $connection) ©Ú
die(mysql_error());

$sql = "SELECT * FROM $table_name WHERE username =
'$_POST[username]' AND password = password('$_POST[password]')";
$result = @mysql_query($sql,$connection) or die(mysql_error());

$num = mysql_num_rows($result);
if ($num != 0) {
   $msg = "<P>Congratulations, you're authorized!</p>";
} else {
   header("Location: http://127.0.0.1/show_login.html");
   exit;
}
?>
<HTML>
<HEAD>
<TITLE>Secret Area</TITLE>
</HEAD>
<BODY>
<? echo "$msg"; ?>
</BODY>
</HTML>

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-01-29 at 11:08:00ID21714589
Tags

script

,

login

,

working

Topic

PHP and Databases

Participating Experts
3
Points
500
Comments
48

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. php/mysql login redirection
    The script works as is, but I want to take this block of code: if ($num !=0) { $msg = "<P>Congratulations, you're authorized!</p>"; } else { header ("Location: login.html"); exit; } and redirect the user to another html page, and not have it sa...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: DrNikon224Posted on 2006-01-29 at 11:12:43ID: 15818490

What is/are the error(s) you're encountering? What is the character after your call to mysql_select_db()? I'm seeing a copyright, and an accented "U". What should be there?


Also - reference for future posting - strip out any sensitive information, like your database username and password, before posting.

 

by: TeKKeDPosted on 2006-01-29 at 11:23:35ID: 15818555

yes, sorry the copyright character was included with the copy and paste, sorry! the problem is that when i run this script, i login with the username and password i have set for myself, and all it does is take me back to the same login screen, the congradulations screen does not appear, which means the script is not working but i dont know why...

 

by: DrNikon224Posted on 2006-01-29 at 11:40:46ID: 15818656

The big thing I see is you need to escape your query values to combat possible SQL injection attacks. Change:

$sql = "SELECT * FROM $table_name WHERE username =
'$_POST[username]' AND password = password('$_POST[password]')";

...to...

$username = mysql_real_escape_string($_POST['username']);
$sql = "SELECT * FROM $table_name WHERE username = '" . $username . "' AND password = password('" . $_POST[password] . "')";

I've also changed your variable references to be outside the string, so they evaluate properly. I would have used the mysql_real_escape_string on your $_POST['password'], but it would likely change the outcome of the password() function, and not match your database value.

For further troubleshooing - comment out the calls to header(), and put in some echo statements for debugging, so you can tell exactly where it's failing - if you're getting sent back to the login page at the top of the script, or because the query returned 0 results.

Drop in these debugging statements and let us know which section of the script is bouncing you back to show_login.html.

 

by: TeKKeDPosted on 2006-01-29 at 14:23:28ID: 15819469

i get this:

Parse error: syntax error, unexpected T_LOGICAL_OR in C:\Program Files\Apache Group\Apache2\htdocs\authorize.php on line 17

Line 17: if ($num != 0) or die(mysql_error()); {

 

by: DrNikon224Posted on 2006-01-29 at 14:32:56ID: 15819509

If that is indeed line 17, it doesn't match the original script provided above. It looks like you're trying to do this (from the original script provided above):

if ($num != 0) {
   $msg = "<P>Congratulations, you're authorized!</p>";
} else {
   header("Location: http://127.0.0.1/show_login.html");
   exit;
}

This block should work - but again, it doesn't match the error for line 17 that you say you're getting.

You can't 'or' an if - you need to use 'else' to accomplish what it looks like your line 17 error is trying to do above. If you need to test multiple things in your if, you can use if(test1=1 || test2=1). the double-pipe is the logical 'or' used in the if tests.

Double check your source and try again.

 

by: TeKKeDPosted on 2006-01-29 at 15:02:28ID: 15819710

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE username = 'SOME' AND password = password('SOME')' at line

 

by: DrNikon224Posted on 2006-01-29 at 15:20:01ID: 15819810

Since "password" is a reserved keyword in MySQL, wrap it in back-quotes to get it to behave as a fieldname instead of a function:

`password` = password('SOME')

 

by: TeKKeDPosted on 2006-01-30 at 08:05:09ID: 15824608

nothing seems to be working

 

by: JB04Posted on 2006-01-30 at 10:58:43ID: 15826318

$sql = "SELECT * FROM $table_name WHERE username =
'$_POST[username]' AND password = password('$_POST[password]')";
$result = @mysql_query($sql,$connection) or die(mysql_error());



if that is the exact code the book provides my suggestion is to throw the book in the bin right now as its seriously flawed as 'DrNikon224' comment says it opens up SQL injection possibilities and should NEVER be used!

 

by: TeKKeDPosted on 2006-01-30 at 11:28:19ID: 15826657

Right, thanks for the info

if any is intrested as to what book it's from it is called: PHP Fast  & Easy Web Development, 2nd Edition

 

by: JB04Posted on 2006-01-30 at 11:35:41ID: 15826733

I would recommend the following books:-


The PHP Anthology
Essential PHP Security



both are created by well recognized experts



James

 

by: kshitij_ahujaPosted on 2006-01-30 at 11:44:11ID: 15826815

lol...may be i am stupid, but i will do it like this


<?
if ((!isset($_POST['username'])) || (!isset($_POST['password']))) {
   header( "Location: http://127.0.0.1/show_login.html");
   exit;
}
else{
$username = $_POST['username'];
$password = $_POST['password'];
$db_name = "testDB";
$table_name = "auth_users";
$connection = @mysql_connect("localhost", "spike", "9sj7En4")
or die(mysql_error());
$db = @mysql_select_db($db_name, $connection) ©Ú
die(mysql_error());

$sql = "SELECT * FROM $table_name WHERE username =
'".$username."' AND password = '".password($password)."";
$result = @mysql_query($sql,$connection) or die(mysql_error());

$num = mysql_num_rows($result);
if ($num != 0) {
   $msg = "<P>Congratulations, you're authorized!</p>";
} else {
   header("Location: http://127.0.0.1/show_login.html");
   exit;
}

}
?>
<HTML>
<HEAD>
<TITLE>Secret Area</TITLE>
</HEAD>
<BODY>
<? echo "$msg"; ?>
</BODY>
</HTML>



by the way, have really saved the password in the db using password(YOURPASSOWORD).

Check if your two passwords really match. But first run this code.

 

by: JB04Posted on 2006-01-30 at 11:49:29ID: 15826865

password is a mysql function aint it?

if so that code will not work!!!

 

by: DrNikon224Posted on 2006-01-30 at 11:57:18ID: 15826953

You need to continue using the mysql_real_escape_string() function...

$username = mysql_real_escape_string($_POST['username'])

...to properly apply escaping to applicable characters to prevent SQL injection. "password()" is a mysql function - it needs to be inside the quotes in your sql statement. If your password field is still named "password", you need to wrap it in back-quotes...

`password`=password(" . $password . ")

...so that the MYSQL server interprets it as text, and not an incomplete call to password() - causing an error.

As kshitij_ahuja stated, you need to compare the password value you're checking to make sure they're hashed the same and will return a match in your query.

 

by: JB04Posted on 2006-01-30 at 12:02:28ID: 15827030

from PHP.net

'a best practice query'

function quote_smart($value)
{
   // Stripslashes
   if (get_magic_quotes_gpc()) {
       $value = stripslashes($value);
   }
   // Quote if not integer
   if (!is_numeric($value)) {
       $value = "'" . mysql_real_escape_string($value) . "'";
   }
   return $value;
}



http://php.net/mysql_real_escape_string


 

by: TeKKeDPosted on 2006-02-03 at 06:19:13ID: 15863416

Ok i have some new code (yes, i've changed it all, sorry) but i would still like help on it thanks and i've increased the points as well because none of the code here works at all!


here below is the new code that i would like assistance on it, the issue is this, first of all the all seems to be working fine except, when i click the submit button with the fields either full or blank it will still print me a blank page, i don't know what's wrong?

code:

<?php
session_start();

if(isset($_POST['userid']) && isset($_POST['password']))
{
//if the user has just tried to log in
$userid = $_POST['userid'];
$password = $_POST['password'];

$db_conn = new mysqli('********', '**********', '*********');
if (mysqli_connect_errno())
{
echo 'Connection to the database failed: '.mysqli_connect_errno();
exit();
}

//query the appropriate database
$selected = mysqli_select_db( $mysql, 'auth');
if (!$selected)
{
echo "Cannot select database";
exit;
}

$query = 'select * from table_name'
."where name='$userid' "
." and password=sha1('$password')";

$result = $db_conn->query($query);
if ($result->num_rows >0 )
{
//if they are in the database register the user id
$_SESSION['valid_user'] = $userid;
}
$db_conn->close();
}
?>
<html>
<body>
<h1>Home page</h1>
<?
if (isset($_SESSION['valid_user']))
{
echo 'You are logged in as: '.$_SESSION['valid_user'].' <br />';
echo '<a href="logout.php">Log out</a><br />';
}
else
{
if (isset($userid))
{
//if thee've tried and failed to log in
echo 'Could not log you in.<br />';
}
else
{
//they have not tried to log in yet or have logged out
echo 'You are not logged in.<br />';
}

//provide for to log in
echo '<form method="post" action="authmain2.php">';
echo '<table>';
echo '<tr><td>Userid:</td>';
echo '<td><input type="text" name="userid"></td></tr>';
echo '<tr><td>Password:</td>';
echo '<td><input type="password" name="password"></td></tr>';
echo '<tr><td colspan="2" align="center">';
echo '<input type="submit" value="Log in"></td></tr>';
echo '</table></form>';
}
?>
<br />
<a href="members_only2.php">Members section</a>
</body>
</html>

 

by: JB04Posted on 2006-02-03 at 07:40:35ID: 15864289

you need to be checking if the query was run successfull after doing:-

$result = $db_conn->query($query);


do something like:-

$result = $db_conn->query($query);

if(!$result) {
   echo 'query failed';
}



chances are your query failed for some reason!



James

 

by: TeKKeDPosted on 2006-02-03 at 07:52:34ID: 15864460

i tried doing it your way which just ended up giving me a blank screen to begin with

and my way of

$result = $db_conn->query($query) or die("query failed");
if ($result->num_rows >0 )
{


nothing works, even mine just takes you to a blank screen after clicking on the submit button!

 

by: JB04Posted on 2006-02-03 at 08:12:54ID: 15864694

Is error repoting turned on and up to full?

place this at top of your page:-


error_reporting(E_ALL);

 

by: TeKKeDPosted on 2006-02-03 at 08:32:14ID: 15864915

umm nothing, it's still the same problem!

i've set it up like this:

<?php error_reporting(E_ALL); ?>
<?php

session_start();

if(isset($_POST['userid']) && isset($_POST['password']))
{

 

by: JB04Posted on 2006-02-03 at 09:48:19ID: 15865711

it may not be turned on, run this test script:-


<?php
echo ini_get('display_errors');
?>


let us know what is returned from that, the default php.ini does not dsiplay errors so you may have to change your php.ini configuration!



James

 

by: TeKKeDPosted on 2006-02-03 at 10:02:12ID: 15865865

I add the above code at the top of my code,
ran the script, same, i try and login and nothing happens,

also its a work project so i dont have access to the php.ini file :(

 

by: JB04Posted on 2006-02-03 at 10:05:55ID: 15865901

run that script in a seperate file, it should output either 1 or 0, I would like to know whether errors are turned on?
because thats probably the most likely cause of not getting output but just geting a white screen like u r.



james

 

by: TeKKeDPosted on 2006-02-03 at 10:15:13ID: 15865987

nothing appears on my local work server, i check the phpinfo file for the work server
and errors are off:

display_errors Off Off
display_startup_errors Off Off


However, i've decided to upload a copy of the scrip to my site and there it works with PHP Version 4.4.1 and at work we are using PHP Version 5.0.3
when i run the script from my site, the number 1 appears above my form!

 

by: JB04Posted on 2006-02-03 at 11:50:59ID: 15867114

ahh, thats why!


so, sounds like a compatibility problem, its probably worth trying to see if you can override the setting with a .htaccess file, most decent web hosts allow that, otherwise I would suggest installing that PHP version on your local machine then testing what functions your using that PHP v4 does not have, some but not all functions can be replicated under PHP v4 for compatibiility with PHP v5 - if that makes any sense :)


try placing the following into a .htaccess file and uploading into your web servers document root directory:-

php_value  display_errors  On

or maybe its:-

php_value  display_errors  0


I cant remember, should hopefully work though :)


if that dont work you will probably get an internal server error!



James

 

by: TeKKeDPosted on 2006-02-05 at 03:18:20ID: 15875799

i executed the code at home and ran the following code:
<?php
echo ini_get('display_errors');
?>


my output:
1
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\authmain.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\authmain.php on line 5

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\authmain.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\authmain.php on line 5

 

by: JB04Posted on 2006-02-05 at 05:47:44ID: 15876100

ok, so errors are turned off, you need them turned on, thats your problem why your getting a white screen, you have a fatal error in your code!


Did you try my suggestion with the .htaccess to attempt to turn them on?

 

by: TeKKeDPosted on 2006-02-05 at 09:28:02ID: 15877368

No i didn't beacuse i have errors turned on my local machine using PHP 5. however at work they are turned off for some odd reason, due to the large amount of logs it generates on their server they have turned it off, and the .htaccess file does not work at work, i don't know why....

i hope i would fix the problem at home and send the ready application to work without errors or problems....based on the above error, can you suggest anything??

 

by: TeKKeDPosted on 2006-02-05 at 09:30:40ID: 15877377

when i click on the submit button i get the following error:

Fatal error: Class 'mysqli' not found in C:\Program Files\Apache Group\Apache2\htdocs\authmain.php on line 10

Line 10: $db_conn = new mysqli("something", "something", "something". "something");

 

by: JB04Posted on 2006-02-05 at 09:58:13ID: 15877488

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\authmain.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\authmain.php on line 5


that error can be fixed by placing the following at the very top of your script:-

ob_start();


and the following at the very bottom:-

ob_end_flush();


your second error:-

Fatal error: Class 'mysqli' not found in C:\Program Files\Apache Group\Apache2\htdocs\authmain.php on line 10



that most likely means mysqli is not enabled, you can check if the extension is loaded by placing the following into a test .php file and running it:-


if(extension_loaded('mysqli')) {
  echo 'mysqli is loaded';
} else {
   echo 'mysqli is NOT loaded';
}



if its not loaded you need to enable it within php.ini

first change the extension_dir directove in php.ini to point to your php extension directory then uncomment the mysqli extension line.


let me know if you need any more help setting this up!



James

 

by: TeKKeDPosted on 2006-02-05 at 11:32:44ID: 15877986

Right, i got mysqli is not enabled, however when i search my PC,several php.ini files turn up, even though i have it installed on my c:/ drive and with PHP 5 the ini file is called php.ini --recommended any suggestions on this?

 

by: JB04Posted on 2006-02-05 at 11:52:00ID: 15878089

you should rename it to php.ini

 

by: TeKKeDPosted on 2006-02-05 at 14:57:31ID: 15879221

i added extension=php_mysqli.dll without the ";" in front and restarted apache, and nothig i still get mysqli not loaded from the previous script....

 

by: JB04Posted on 2006-02-06 at 03:49:36ID: 15881818

can you paste your php.ini in here, minus any sensitive data you may have put in their?

 

by: TeKKeDPosted on 2006-02-06 at 08:52:43ID: 15884337

sure, i;ll have it here soon!

 

by: TeKKeDPosted on 2006-02-07 at 01:58:35ID: 15890657

This is where i added the mysqli module:

; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP
5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.

;extension=php_mbstring.dll
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll

 

by: JB04Posted on 2006-02-07 at 02:10:02ID: 15890712

have you set the extension_dir directove, its a little above the info you posted from php.ini ?

 

by: TeKKeDPosted on 2006-02-07 at 03:18:18ID: 15891016

You mean this:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"

nope!

 

by: TeKKeDPosted on 2006-02-07 at 03:19:22ID: 15891019

also, would i be able to use the regular mysql_connect function and the new mysqli function as well using the same configuration??

 

by: JB04Posted on 2006-02-07 at 03:23:32ID: 15891044

set that to the location of your extensions,

eg.

extension_dir = "C:\php\extensions"


mysql is builtin to php 4 so yes you should be able to use regualr mysql_connect functions, with php 5 you have to enable it:-

http://php.net/mysql


 

by: TeKKeDPosted on 2006-02-07 at 05:33:09ID: 15892094

aha alright thanks, chaning these values will not conflict with me using mysql_connect will it?

 

by: JB04Posted on 2006-02-07 at 06:05:37ID: 15892372

no, doubt it

 

by: TeKKeDPosted on 2006-02-07 at 06:29:05ID: 15892601

thank you for your help!

 

by: JB04Posted on 2006-02-07 at 06:37:12ID: 15892666

no probs, I take it you got it to work?

 

by: TeKKeDPosted on 2006-02-07 at 07:33:07ID: 15893251

yes i did, but i think i will only use this for the book i'm currenlt reading through, speaking of books, would you be able to recommend a decent title! - Tekked

 

by: JB04Posted on 2006-02-07 at 07:39:31ID: 15893325

to learn PHP?

Personally I taught myself from the PHP manual so cant personally comment on how good these are but the authors are well recognised and well respected within the PHP community:-

http://www.amazon.com/exec/obidos/search-handle-url/index=books&field-author-exact=Rasmus%20Lerdorf&rank=-relevance%2C%2Bavailability%2C-daterank/102-6083691-8977720

I would recommend one of those because one of the authors is the origanal creator of PHP itself

 

by: TeKKeDPosted on 2006-02-07 at 07:47:42ID: 15893415

I've got some experince, got the basics down quite well, just want to get on with doing projects...thanks for the link

 

by: JB04Posted on 2006-02-07 at 07:52:53ID: 15893477

I would also recommend the following website for security related issues-


http://shiflett.org
http://phpsec.org


maybe also the following book, however you can probably get most the info for free on the net or those sites sbove :)

http://phpsecurity.org/

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...