[PHP] weird error!

2001-05-18 Thread elias
hello, i have my file which reads like: dir3/dir3-3/ dir2/ dir1/ s now when i run this script: $a = file("exclude_dir.txt"); $t = "dir3/dir3-3/"; $temp = in_array($t, $a) ? "yes" : "no"; echo "\$a="; var_dump($a); echo ""; echo "in_array(\$t=$t, \$a)=$temp"; i have this output:

Re: [PHP] Server limits/recommendations

2001-05-18 Thread John Lim
Hi Ian, I've also been using PHP at HostPro. They are using PHP 4.0.1pl1 on our NT server, which is really old. What version do you have on your server? I definitely recommend you switch over to Linux or get HostPro to upgrade their PHP to a newer more stable version if possible. The config men

[PHP] Date and Time Functions like MySQL?

2001-05-18 Thread Chris Lee
Hi, Does anyone implement Date and Time Functions for PHP like MySQL? http://www.mysql.com/doc/D/a/Date_and_time_functions.html I know there is already have functions for PHP, however it cannot handle year expect it was between 1902 and 2037. http://www.php.net/manual/en/ref.datetime.php Regar

[PHP] Urgent:Mysql read only, please help?

2001-05-18 Thread E K L
Hi all, Anybody can help me to fix this problem: ERROR 1036: Table 'trade_account_credit' is read only I just want to update the table and i login as root.But i came across the error, please help. It's very urgent. _ G

Re: [PHP] Mac IE 5.0 upload problem

2001-05-18 Thread Julian Wood
I don't know what your problem might be, but there is nothing wrong with the file upload on Mac IE5. We use it all the time, in connection with both perl and php server-side and there is no problem. You do have to make sure the file you upload is essentially flat (ie no resource fork, since that

Re: [PHP] Network Connectivity help please

2001-05-18 Thread Brian
Good point, I considered, doing it that way, I was just hoping that there might be a 'prettier' way to do it from within PHP. Right now I'm using fping from within a php loop that steps through the class C. The machine I'm doing this on is dog slow though, so I'm hoping that when I move the fina

Re: [PHP] Network Connectivity help please

2001-05-18 Thread Mohamed LRHAZI
Brian, Why don't leave the "pinging" to some other script, and have that other script run continuesouly and upfate a sql table with the ststus of each and time stamp of when it was last ping'ed...etc Mohamed~ Brian wrote: > > I'm writing a script to help us manage one of our Class C networks.

[PHP] Life of environment variable set put putenv()

2001-05-18 Thread Arcady Genkin
I could not find this in the docs, but maybe I've been looking in the wrong place. Could someone give me an authorative answer or point me to it someplace else, to the question: When you set an environment variable with putenv(), is there a chance that it would be visible to any other PHP script

[PHP] Mac IE 5.0 upload problem

2001-05-18 Thread Jason Lam
Would any Mac expert help me out with this one. I have created an upload script with works fine for PC file and Mac files with IE 4.5, but it just would not work with IE5.0 Whenever I upload file with IE 5.0, after it gets to the server, the size becomes smaller by few hundred bytes, this ruin t

[PHP] Network Connectivity help please

2001-05-18 Thread Brian
I'm writing a script to help us manage one of our Class C networks. The page loads all of the host IPs, who owns them, phys desc. of the box, and does a forward reverse lookup on all of the addresses. I'd like to add a column that shows which machines are currently reachable on the network. A s

Re: [PHP] PHP and XHTML

2001-05-18 Thread Brian Clark
Hi Rasmus, @ 6:59:09 PM on 5/18/2001, Rasmus Lerdorf wrote: >> I would like to start using the XHTML syntax for my future >> projects, but I heard that PHP is not compatible with XHTML. For >> example, in XHTML the ID attribute is used in place of the >> deprecated NAME tag. But PHP depends on t

Re: [PHP] PHP and XHTML

2001-05-18 Thread dempsejn
i won't pretend to be an XML guru, but isn't saying "php won't work with XHTML" akin to saying "php won't work with javascript1.3, dhtml, netscape 6" etc? php generates code...html, dhtml, whatever...i fail to see how php couldn't generate what anyone would need for XHTML, or anything else along

Re: [PHP] PHP and XHTML

2001-05-18 Thread Rasmus Lerdorf
> I would like to start using the XHTML syntax for my future projects, but I > heard that PHP is not compatible with XHTML. For example, in XHTML the ID > attribute is used in place of the deprecated NAME tag. But PHP depends on > the NAME attribute in forms, etc. Is there any way around this? Has

[PHP] PHP and XHTML

2001-05-18 Thread Navid Yar
Hello, I would like to start using the XHTML syntax for my future projects, but I heard that PHP is not compatible with XHTML. For example, in XHTML the ID attribute is used in place of the deprecated NAME tag. But PHP depends on the NAME attribute in forms, etc. Is there any way around this? Has

[PHP] Apache not starting after installing php --with-gd

2001-05-18 Thread Brian Paulson
I get the following error when I try to start apache Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/libgd.so: undefined symbol: uncompress /usr/sbin/httpd It has been running fine tell we recompiled using the with-gd option I did find some mention of this but it mostly talks of th

[PHP] .phps on win32 (IIS5)

2001-05-18 Thread Chris Sano
Does anyone know how to create a PHP source file (.phps) in windows? I tried looking on the PHP site and had no luck.. Any help would be greatly appreciated.. Am running IIS5.0 with PHP4.0.5 Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP & XML Parsing

2001-05-18 Thread Fabian Raygosa
for xml you have to escape certain characters in the file, one is the ampersand ... - Original Message - From: "Mike Gifford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 18, 2001 12:24 PM Subject: [PHP] PHP & XML Parsing > Hello, > > In looking for a good script to pars

[PHP] Authentification via php and mysql with session variables

2001-05-18 Thread Andreas Pucko
Hi there, has anybody build and authentication with php and mysql. Where different priorities exist, and session variables? Any ideas? Cheers Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Is there any "sleep" function?

2001-05-18 Thread BlackLord
Thanks. ""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Is there any sleep function in PHP like in Perl? > > For example, you will define the time in seconds and system > > will wait for that time to continue running the script? > > You read

RE: [PHP] Is there any "sleep" function?

2001-05-18 Thread Boget, Chris
> Is there any sleep function in PHP like in Perl? > For example, you will define the time in seconds and system > will wait for that time to continue running the script? You read the documentation at all?!? http://www.php.net/manual/en/function.sleep.php Chris

[PHP] Is there any "sleep" function?

2001-05-18 Thread BlackLord
Is there any sleep function in PHP like in Perl? For example, you will define the time in seconds and system will wait for that time to continue running the script? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: [PHP] Blank Field Values

2001-05-18 Thread Bass???
""Sam Masiello"" <[EMAIL PROTECTED]> ? [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Did you echo out $CharacterName before your SQL statement to ensure that it > is being set? Or your $SQL variable before calling odbc_do? This might > provide you with some insight as to why the query do

RE: [PHP] Server limits/recommendations

2001-05-18 Thread scott [gts]
the words "shared NT server" make a chill run up my spine. apache will beat any MS webserver hands down, and overall, linux is more stable (and usually a lot faster and easier to configure) than NT. MS makes great user-interfaces and office software, *not* great server software... i'd go with l

[PHP] which dir

2001-05-18 Thread Dennis Gearon
If I open a file with fopen using the include director[y|ies], is there any way using the file handle to query and find out which directory it came from? I suppose I could search each directory until I came to the first version of it, just like the function fopen had to do, but . -- PHP Gen

[PHP] Server limits/recommendations

2001-05-18 Thread Ian Evans
I'd really like to move our site to a dedicated server, but I'm not ready to lay down the monthly cash for a multi-SCSI drived 1gig ram beast -- yet. Right now we're hosted by the oxymoronically named HostPro. We're on a shared NT server with a SQL Server ODBC connection and we use PHP to do

[PHP] Function Question

2001-05-18 Thread Michael O'Neal
Hi. I'm hoping you folks can help me with a function problem I have. Take a look at the following code: ?> I have a page divided into 3 sections. A header include, the content, and a footer include. I have a function (fill_page) that lives in the h

Re: [PHP] PHP & XML Parsing

2001-05-18 Thread Peter Dudley
The problem is in your link URL, where you pass CGI parameters. When XML sees the & character, it assumes it's a special character thing such as & or ", so it's expecting a semicolon. http://cupe.ca/news/cupenews/showitem.asp?ID=2823&cl=1 Just yesterday I discovered a program called XML Spy whi

Re: [PHP] Undefined Variables / PHP 4.0.4pl1

2001-05-18 Thread Martin Thoma
Thanx a lot, I found it in php.ini ! "Johnson, Kirk" schrieb: > If you have access to php.ini, see the "Error handling and logging" section. > Else, see http://www.php.net/manual/en/ref.errorfunc.php > > Kirk > > > -Original Message- > > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > >

Re: [PHP] Random number

2001-05-18 Thread Tolga \"thorr\" Orhon
If you need just plain random number generator check manual. If you want a true pseudo-random number generator you may want to check: http://www.ulib.org/webRoot/Books/Numerical_Recipes/bookcpdf.html Those generators used in scientific calculations where true reproducible and low correlated rando

RE: [PHP] Not losing variables in forms w/ checkboxes

2001-05-18 Thread scott [gts]
you need to specify those extra braces for any multi-select HTMl object i had the same problem with a: > -Original Message- > From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] > Subject: RE: [PHP] Not losing variables in forms w/ checkboxes > > Just append a pair of brackets to the NAM

RE: [PHP] Got OO error after upgraded php3.0.8 to php4.05

2001-05-18 Thread scott [gts]
please send a code snippet... a lot of things changed from 3.x to 4.x > -Original Message- > From: Jeffrey Wang [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 18, 2001 2:37 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Got OO error after upgraded php3.0.8 to php4.05 > > > Hi, > I g

RE: [PHP] Random number

2001-05-18 Thread scott [gts]
i love when newbies ask for help and i'm able to help, but when it comes to people being just plain lazy, i agree with Miles... ** please read the docs before asking questions ** > -Original Message- > From: Miles Thompson [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Random number >

Re: [PHP] Who has PHP4 and FTP experience?

2001-05-18 Thread Martin Thoma
Whats the problem ? ;-) Gunter Ohrner schrieb: > Hi! > > I'm looking for some hints for the PHP ftp module as I have some problems > using it - if anyone has experience in using the PHP ftp module it would be > very cool someone could send me an email... > > Greetinx, > > Gunter Ohrner > > --

RE: [PHP] Undefined Variables / PHP 4.0.4pl1

2001-05-18 Thread Johnson, Kirk
If you have access to php.ini, see the "Error handling and logging" section. Else, see http://www.php.net/manual/en/ref.errorfunc.php Kirk > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 18, 2001 1:36 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Un

[PHP] Undefined Variables / PHP 4.0.4pl1

2001-05-18 Thread Martin Thoma
Hello ! I just installed PHP 4.0.4pl1 over an existing PHP 4.0.1 on Win98 with Apache. Alle works greate, but I get a lot of warnings: Warning: Undefined variable: MyVariable in filename The warnings weren't there in the earlier version. How can I turn of these warnings ? Regards Martin --

RE: [PHP] Not losing variables in forms w/ checkboxes

2001-05-18 Thread Johnson, Kirk
Just append a pair of brackets to the NAME in the FORM: suspendingAgent[]. This will create an array for the boxes that get checked. To get the array to a comma separated list on the processing page, try: $string = implode (",", $suspendingAgent); Kirk > -Original Message- > From: Andr

Re: [PHP] Random number

2001-05-18 Thread Miles Thompson
Come on - you haven't even bothered to check the manual. Search for this at php.net Miles At 03:09 PM 5/18/01 -0400, Daniel Coronel wrote: >Hi! >I need to really generate a random number in a function but not like doing >it. >Somebody could help me. Thanks. > >Daniel Coronel. -- PHP General

[PHP] Not losing variables in forms w/ checkboxes

2001-05-18 Thread Andrew V. Romero
I am working on creating some html forms (that are parsed by PHP) and need to use checkboxes, and was wondering how would you go about creating the checkboxes so that once the user hits the submit button, all of the checkbox variables are included? Right now I have: echo " $availSuspendingAgentNa

[PHP] Random number

2001-05-18 Thread Daniel Coronel
Hi! I need to really generate a random number in a function but not like doing it. Somebody could help me. Thanks. Daniel Coronel.

[PHP] PHP & XML Parsing

2001-05-18 Thread Mike Gifford
Hello, In looking for a good script to parse XML files I stumbled across the following tutorial (which looks very good): http://www.wirelessdevnet.com/channels/wap/features/xmlcast_php.html I have set this script up here: http://www.airdiv-cupe.org/portal/newsfeed_new_parser.php

Re: [PHP] how to have a print button on a PHP generated page

2001-05-18 Thread jarek
maybe this helps :