Re: [PHP] need help

2007-07-02 Thread Davide Bernard
I've found http://php.net/ to be very helpful. Especially in
troubleshooting.

 Muhammad Hassan Samee [EMAIL PROTECTED] 7/2/2007 8:38 AM

hay
i m a C++ programmer and new to web development with basic knowledge
of
HTML, CSS and j.script now i want to start learning PHP anybody can
direct
me to some good/fast track tutorials \ books  for getting start

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Isset Errors

2007-05-09 Thread Davide Bernard
Anyone got any suggestions on getting rid of these errors below?


[Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP Notice:  
Undefined index:  userstate in /srv/www/htdocs/resetpw.php on line 31, referer: 
https://ams.unt.edu/resetpw.php 
[Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP Notice:  
Undefined index:  userstate in /srv/www/htdocs/resetpw.php on line 36, referer: 
https://ams.unt.edu/resetpw.php 

 
Here's the lines of code I am getting the errors in PHP 5...Where can I insert 
some code to define 'userstate' ?


24. if (identifyUser()) {
25.   if ((isset($_SESSION['clientinfo']['ssn'][0])  strcmp('9', 
$_SESSION['clientinfo']['ssn'][0]))
26.   || isset($_SESSION['clientsinfo'])) {
27.   $_SESSION['userstate'] = 'confirmssn';
28.  } else {
29.   $_SESSION['userstate'] = 'ssnverified';
30.  }
31. } elseif ($_SESSION['userstate'] == 'confirmssn'  confirmSSN()) {
32.  $_SESSION['userstate'] = 'ssnverified';
33. }
34. initMenu();
35. if (isset($_SESSION['userstate'])) return 0;
36. if ($_SESSION['userstate'] == 'confirmssn') {
37.   themeHeader();

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Compilation?

2007-04-23 Thread Davide Bernard
I just upgraded to PHP 5 from PHP 4. I am using the crack lib
function for password dictionary uniqueness. However, now my
web page utilizing the crack-lib is crashing with
 PHP Fatal error:  Call to undefined function crack_opendict().

Does anyone know of a specific Crack-lib module I can compile instead
of compiling the entire PHP code?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Compilation?

2007-04-23 Thread Davide Bernard
I am very new to PHP. Can anyone tell me how do I 
compile my php 5 code?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Compilation?

2007-04-23 Thread Davide Bernard
Actually I want to compile my php 5 code --with-crack[=DIR] option. in order
to use the crack lib.

 Daniel Brown [EMAIL PROTECTED] 4/23/2007 4:27 PM 
Or if you're wondering how to compile a .php file for viewing on the web
(or running from the command line), then don't worry about it.  PHP is meant
to be compiled at runtime.

If you're looking to find out how to *obfuscate* your code (such as what
companies like WHM Autopilot and Modernbill do), then look into ionCube and
Zend Guard/Zend Optimizer.  This compiles the code so that it can't be
read or modified by the end-user, but will still run as a run-time script,
not a standalone application.

So in any case, you still need a compiled PHP binary to run the code
so if that is what you're asking about, refer to Tijnema's post.

On 4/23/07, Tijnema ! [EMAIL PROTECTED] wrote:

 On 4/23/07, Davide Bernard [EMAIL PROTECTED] wrote:
  I am very new to PHP. Can anyone tell me how do I
  compile my php 5 code?
 
 First you should tell us which operating system you are using, is it
 windows or is it linux?

 If it's windows you'd be better off using the binary.

 If you're using linux,you might want to check out a binary release
 first, else compiling is also quite simple.
 Extract tarball.
 ./configure
 make
 make install

 that will do it :)

 Tijnema

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php 




-- 
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php