php-general Digest 13 Feb 2005 10:07:00 -0000 Issue 3283

2005-02-13 Thread php-general-digest-help
php-general Digest 13 Feb 2005 10:07:00 - Issue 3283 Topics (messages 208589 through 208597): SimpleXML internal entity references 208589 by: Rolf Brudeseth Artificial Intelligence for PHP 208590 by: C.F. Scheidecker Antunes Re: Advice/opinion requested on page section

Re: [PHP] inheriting from non similar types?

2005-02-13 Thread Burhan Khalid
D_C wrote: $this-parent = mysql_fetch_object($res); // returns a mysql obj with age, loc etc records then ... $age = $userObj-age; // this actually comes straight from the dbase obj $rating = $userObj-rating; // a public var calculated at construction $life = $userObj-getSpend(); // this is

Re: [PHP] Checking the Version of mySql and settings on server

2005-02-13 Thread Burhan Khalid
Marek Kilimajer wrote: GH wrote: However, this does not tell you if they are using the Old or New Password on the newer version... how can i check that? If you can connect with mysql_connect(), its using the old password switch. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Dynamic PHP links

2005-02-13 Thread Eduard Grigoryan
Hi, I'm new to PHP and I'd appreciate your advice a lot. I'm trying to use dynamic PHP links instead of plain HTML and I'm gonna use something like this: File index.php: ? a href=index.php?content=story.htmstory/abr a href=index.php?content=about.htmabout/abr ? if(isset($content)): include

[PHP] Ensure a number is three digits long

2005-02-13 Thread Shaun
Hi, I have am trying to create functions to convert strings to ascii and vice versa: function string_to_ascii( $str ) { for( $i=0; $i strlen( $str ); $i++ ) { $asc .= ord( substr( $str, $i ) ); } return $asc; } This function works fine, however I need to ensure that the ASCII

Re: [PHP] Advice/opinion requested on page section lineup

2005-02-13 Thread Alp
Thanks Burhan, That's almost what I exactly want to do. The question is how do I start doing that which methodlogy, which structure, etc,,, Alp Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Alp wrote: Hi Jochem, Intention is to give a user the option of

[PHP] need help parsing named.conf file

2005-02-13 Thread Torsten Rosenberger
Hello is there a way to parse the named.conf file with preg_match_all to get back an array which looks like [options][directory] = '/var/lib/named' [options][forwoarder] = '192.168.0.2' [zone][mydomain.com][type] = 'master' [zone][mydomain.com][notify] = 'yes' [zone][domain2.com][type] = 'slave'

Re: [PHP] Dynamic PHP links

2005-02-13 Thread Ryan A
Hey, The reason your pal warned you against that approach is, someone could screw with your url with something like this: index.php?content=/etc/httpd/.dbmpasswd which would include that file if it exists...its a security problem, be careful and know EXACTLY what you are including/requiring.

[PHP] Re: Dynamic PHP links

2005-02-13 Thread Catalin Trifu
Hi, Check out this http://phpsec.org/ Cheers, Catalin Hi, I'm new to PHP and I'd appreciate your advice a lot. I'm trying to use dynamic PHP links instead of plain HTML and I'm gonna use something like this: File index.php: ? a href=index.php?content=story.htmstory/abr a

RE: [PHP] Ensure a number is three digits long

2005-02-13 Thread Mike
You should be able to do this quite well with the str_pad() function. http://us3.php.net/manual/en/function.str-pad.php -M -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Sunday, February 13, 2005 12:09 PM To: php-general@lists.php.net Subject: [PHP] Ensure a

Re: [PHP] Ensure a number is three digits long

2005-02-13 Thread M. Sokolewicz
or do something like: function string_to_ascii( $str ) { for( $i=0; $i strlen( $str ); $i++ ) { $ret = ord( substr( $str, $i ) ); $asc .= (string) ($ret 10 ? '00' : ($ret 100 ? '0' : '')) . $ret; } return $asc; } Mike wrote: You should be able to do this quite well with the str_pad()

[PHP] Re: need help parsing named.conf file

2005-02-13 Thread M. Sokolewicz
Torsten Rosenberger wrote: Hello is there a way to parse the named.conf file with preg_match_all to get back an array which looks like [options][directory] = '/var/lib/named' [options][forwoarder] = '192.168.0.2' [zone][mydomain.com][type] = 'master' [zone][mydomain.com][notify] = 'yes'

[PHP] Project partners London

2005-02-13 Thread jACKY kENNA
Good day to you. We are looking for two or three programmers who want to make some money, are self motivated, are prepared to take a gamble after thoroughly investigating the risk, have excellent University results in computer sciences and in particular have experience in of most, if not all, of

[PHP] Determine SERVER_NAME

2005-02-13 Thread Gerard Samuel
Via cli that is. Is there anyway besides making an actual system call (i.e. exec()/system()/etc...) to determine the server's name via php's cli??? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdf properties

2005-02-13 Thread Burhan Khalid
John Nichel wrote: Jason Motes wrote: Hello, [ snipped] Maybe if you send it 5 more times, someone will answer you. I thought I was having problems with my email server, till you posted this one. Thanks, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Dynamic PHP links

2005-02-13 Thread Burhan Khalid
Eduard Grigoryan wrote: Hi, I'm new to PHP and I'd appreciate your advice a lot. I'm trying to use dynamic PHP links instead of plain HTML and I'm gonna use something like this: File index.php: ? a href=index.php?content=story.htmstory/abr a href=index.php?content=about.htmabout/abr ?

Re: [PHP] fsockopen: fetching url

2005-02-13 Thread Bostjan Skufca @ domenca.com
HTTP 1.0 does not support virtual hosts. B. On Friday 11 February 2005 18:04, [EMAIL PROTECTED] wrote: I'm using code below to fetch content from the url. This code was worked properly on two servers I tested but it want worked on the designated one, so after getting error message I

Re: [PHP] updated php $_GET

2005-02-13 Thread Bostjan Skufca @ domenca.com
$_GET[section] is slower than $_GET['section'], and quite significantly! B. On Saturday 12 February 2005 14:16, Jacco Ermers wrote: Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jacco Ermers wrote: Hello everyone, I recently installed php5 onto my

Re: [PHP] need help parsing named.conf file

2005-02-13 Thread Robby Russell
On Sun, 2005-02-13 at 16:46 +0100, Torsten Rosenberger wrote: Hello is there a way to parse the named.conf file with preg_match_all to get back an array which looks like [options][directory] = '/var/lib/named' [options][forwoarder] = '192.168.0.2' [zone][mydomain.com][type] = 'master'

AW: [PHP] Determine SERVER_NAME

2005-02-13 Thread Mirco Blitz
Probably the Global Variable $SERVER_NAME helps you out. Greetings Mirco bLitz -Ursprüngliche Nachricht- Von: Gerard Samuel [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 13. Februar 2005 19:33 An: php-general Betreff: [PHP] Determine SERVER_NAME Via cli that is. Is there anyway besides

[PHP] Unable to load dynamic library 'C:\PHP\ext\php_mssql.dll'

2005-02-13 Thread ross
I have solved this problem before but cannot remember how. The php.ini is set up any ideas?? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unable to load dynamic library 'C:\PHP\ext\php_mssql.dll'

2005-02-13 Thread ross
I have solved this problem before but cannot remember how. The php.ini is set up any ideas?? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: AW: [PHP] Determine SERVER_NAME

2005-02-13 Thread Gerard Samuel
Mirco Blitz wrote: Probably the Global Variable $SERVER_NAME helps you out. The global variable $SERVER_NAME is not available via cli (at least for me) -Ursprüngliche Nachricht- Von: Gerard Samuel [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 13. Februar 2005 19:33 An: php-general

Re: AW: [PHP] Determine SERVER_NAME

2005-02-13 Thread Bostjan Skufca @ domenca.com
php_uname() B. On Sunday 13 February 2005 20:37, Gerard Samuel wrote: Mirco Blitz wrote: Probably the Global Variable $SERVER_NAME helps you out. The global variable $SERVER_NAME is not available via cli (at least for me) -Ursprüngliche Nachricht- Von: Gerard Samuel

Re: [PHP] Unable to load dynamic library 'C:\PHP\ext\php_mssql.dll'

2005-02-13 Thread John Holmes
[EMAIL PROTECTED] wrote: I have solved this problem before but cannot remember how. The php.ini is set up any ideas?? Make sure libmysql.dll is in the windows or windows/system32 directory. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine

[PHP] php/mysql url validation methods...

2005-02-13 Thread darren kirby
Hello all, On the main page of my website I have written a very simple comments feature that allows people to leave a message under my posts, much like a blog. I have purposely kept this very simple... On the main page I have simple text links that someone can click on if they want to leave a

Re: AW: [PHP] Determine SERVER_NAME

2005-02-13 Thread Gerard Samuel
Bostjan Skufca @ domenca.com wrote: php_uname() That works - $ php -r var_dump(php_uname('n')); string(20) gladiator.trini0.org Thanks On Sunday 13 February 2005 20:37, Gerard Samuel wrote: Mirco Blitz wrote: Probably the Global Variable $SERVER_NAME helps you out. The global

Re: [PHP] Re: need help parsing named.conf file

2005-02-13 Thread rosenberger
and the named.conf looks like.? options { # The directory statement defines the name server's working directory directory /var/lib/named; # Write dump and statistics file to the log subdirectory. The # pathenames are relative to the chroot jail. dump-file

[PHP] MySQL 4.1 upgrade under PHP4

2005-02-13 Thread C.F. Scheidecker Antunes
Hello all, Does anyone upgraded from MySQL 4.0 to MySQL 4.1 using PHP 4 code? If so, what are the changes that were required on the code? PHP website says that it is required to install a new MySQL extension. I am doing PHP4 programming under Linux. What do you suggest that I should be aware while

Re: [PHP] inheriting from non similar types?

2005-02-13 Thread Jochem Maas
D_C wrote: Hiya - I want to create a class that inherits from a database object. eg I have my own user Class, with general methods that do calculations etc. However, it also reflects a table of the database, eg age, location. I want some methods called on the object to be handled by my class, but

Re: [PHP] Server Uptime

2005-02-13 Thread Leif Gregory
Hello Brad, Monday, February 7, 2005, 3:21:26 PM, you wrote: BC What is the function, or how do you make a script that displays BC the server's uptime? If you're on Windows you could do this: ** function serverUptime() { $uptimeStamp = filemtime('c:/pagefile.sys'); $uptime =

Re: [PHP] Ensure a number is three digits long

2005-02-13 Thread Burhan Khalid
Shaun wrote: Hi, I have am trying to create functions to convert strings to ascii and vice versa: http://www.php.net/ord http://www.php.net/chr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need help parsing named.conf file

2005-02-13 Thread Burhan Khalid
Torsten Rosenberger wrote: Hello is there a way to parse the named.conf file with preg_match_all to get back an array which looks like [options][directory] = '/var/lib/named' [options][forwoarder] = '192.168.0.2' [zone][mydomain.com][type] = 'master' [zone][mydomain.com][notify] = 'yes'

[PHP] Re: Artificial Intelligence for PHP

2005-02-13 Thread Nadim Attari
Hello, These links might help: http://coding.mu/index.php/archives/category/php/ http://www.phparchitect.com/news/466 http://www.phppatterns.com/index.php/article/articleview/71/1/11/ Regards, Nadim C.F. Scheidecker Antunes [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED]