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
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
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,
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
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
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
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'
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.
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
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
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()
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'
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
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
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:
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
?
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
$_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
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'
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
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
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
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
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
[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
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
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
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
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
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
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 =
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
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'
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]
34 matches
Mail list logo