[PHP] My FIRST php atempt

2005-02-17 Thread David Freedman
I am trying my FIRST php file with an attempt to connect to my mySql server. The problem is it won't connect to the database. The server IS running. The host, username, and password are the exact same thing I use to connect the mySqlAdmin tool to the database. Doesn't seem like this should be th

Re: [PHP] [php] -help me

2005-02-17 Thread Bret Hughes
On Thu, 2005-02-17 at 23:50, K Karthik wrote: > i have got string as "/home/karthik/welcome.php/view.php" > i just need "view.php" how shall i remove rest of the string. > please do help me.i am new to php. > -thanks, > karthik > Lets see if you can learn to fish. Since you are new you should le

Re: [PHP] MySQL and MySQLi compiling

2005-02-17 Thread Chris
Hans Zaunere wrote: Hi, I've been trying to get these 2 compiled together for a while, and have had no luck. WHere my problem lies, I think, is that I'm not sure what directory should be specified on the --with-mysql part ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/include

Re: [PHP] MySQL and MySQLi compiling

2005-02-17 Thread Chris
dan wrote: Chris wrote: Hi, I've been trying to get these 2 compiled together for a while, and have had no luck. WHere my problem lies, I think, is that I'm not sure what directory should be specified on the --with-mysql part ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/us

Re: [PHP] How do I add PHP code into a DB field

2005-02-17 Thread Bret Hughes
On Fri, 2005-02-18 at 00:45, Tim Burgan wrote: > Hello, > > > On my page, all my content is updated via a textarea online. > > If I include PHP code embeded with my HTML in the textarea, the database > converts it to plain text, instead of code that can be used. It doesn't > convert < to < tho

[PHP] How do I add PHP code into a DB field

2005-02-17 Thread Tim Burgan
Hello, On my page, all my content is updated via a textarea online. If I include PHP code embeded with my HTML in the textarea, the database converts it to plain text, instead of code that can be used. It doesn't convert < to < though, it's still in the database as <, just when it's read out aga

[PHP] create forum

2005-02-17 Thread Stefan
Hi. Are there some code-examples how to build a forum with php and xml? Tnx Stefan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] help me

2005-02-17 Thread K Karthik
i am so surprised for the immediate reply.thank you so much. i'll be thank ful again if you could help me finding the current date and time using php. thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [php] -help me

2005-02-17 Thread K Karthik
i have got string as "/home/karthik/welcome.php/view.php" i just need "view.php" how shall i remove rest of the string. please do help me.i am new to php. -thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with SQL statement

2005-02-17 Thread Jacques
How can I determine which users have signed in and are still on-line during the first minute after they have signed in? My sql statement currently reads: SELECT * FROM tblusers WHERE usignedin = "yes" AND utimesignedin = (time() - 60) Hoe does one indicate seconds in a SQL statement? Can I use

Re: [PHP] mysql query

2005-02-17 Thread Bret Hughes
On Thu, 2005-02-17 at 22:02, Jason Petersen wrote: > On 17 Feb 2005 19:28:18 -0600, Bret Hughes <[EMAIL PROTECTED]> wrote: > > On Thu, 2005-02-17 at 18:24, Sebastian wrote: > > > Hello, > > > im working on an article system and looking to avoid running three > > > queries. > > > example, i have th

Re: [PHP] PHP security

2005-02-17 Thread Chris Shiflett
--- ".hG" <[EMAIL PROTECTED]> wrote: > While back I read in an article that placing UN and PASSwords in a PHP > was not secure. Well, that's very subjective. In a shared hosting environment, it certainly does pose a risk. If you place it within document root (don't do that), it poses a signifi

Re: [PHP] PHP security

2005-02-17 Thread Robby Russell
On Thu, 2005-02-17 at 20:47 -0600, .hG wrote: > While back I read in an article that placing UN and PASSwords in a PHP was > not secure. couple of open source programs that I have seen they have for > example > > $database = ; > $username = ; > $password = ; > > It makes me wond

Re: [PHP] mysql query

2005-02-17 Thread Jason Petersen
On 17 Feb 2005 19:28:18 -0600, Bret Hughes <[EMAIL PROTECTED]> wrote: > On Thu, 2005-02-17 at 18:24, Sebastian wrote: > > Hello, > > im working on an article system and looking to avoid running three queries. > > example, i have this query: > > > > SELECT id,title FROM articles WHERE id=$_GET[id] >

[PHP] PHP security

2005-02-17 Thread .....hG
While back I read in an article that placing UN and PASSwords in a PHP was not secure. couple of open source programs that I have seen they have for example $database = ; $username = ; $password = ; It makes me wonder how secure in reallity it is to place your UN and Passwords on a

Re: [PHP] Hashing strings

2005-02-17 Thread Gerard Samuel
Jason Barnett wrote: Gerard Samuel wrote: ... Im trying to determine if md5() would be the fastest, *cheapest* solution. ... What Im looking for is something where the generated hashes can be reproduced. For example, md5('foo') today, will be equal to md5('foo') tomorrow. Thanks

Re: [PHP] mysql query

2005-02-17 Thread Bret Hughes
On Thu, 2005-02-17 at 18:24, Sebastian wrote: > Hello, > im working on an article system and looking to avoid running three queries. > example, i have this query: > > SELECT id,title FROM articles WHERE id=$_GET[id] > > now say $_GET[id] = 5 > > I would like to get the previous id 4 and the next

[PHP] Problem: mysqli class not found

2005-02-17 Thread Dave Adler
I have an install of PHP 5 on Windows 2003 Server with Apache 2 and when I reference mysqli in my php code, I get an error that the mysqli class is not found. I looked at the php.ini file and I added a line for php_mysqli in the extensions section and I edited the extension_dir directive to poi

Re: [PHP] mysql query

2005-02-17 Thread Stephen Johnson
Now I am assuming that 4 and 6 would not always be the next article ID - otherwise you could just increment your id accordingly. If you wanted to do that without running multiple queries, this is who I might do it, rather sloppy, but I think it would work. $idGet= $_GET['id']; $sql = "select id,

Re: [PHP] mysql query

2005-02-17 Thread dan
Sebastian wrote: Hello, im working on an article system and looking to avoid running three queries. example, i have this query: SELECT id,title FROM articles WHERE id=$_GET[id] now say $_GET[id] = 5 I would like to get the previous id 4 and the next id 6 (if there is one) so i can do something like

RE: [PHP] MySQL and MySQLi compiling

2005-02-17 Thread Hans Zaunere
> Hi, I've been trying to get these 2 compiled together for a while, and > have had no luck. > > WHere my problem lies, I think, is that I'm not sure what directory > should be specified on the --with-mysql part > > ./configure --with-apxs2=/usr/local/apache/bin/apxs > --with-mysql=/usr/include/

[PHP] mysql query

2005-02-17 Thread Sebastian
Hello, im working on an article system and looking to avoid running three queries. example, i have this query: SELECT id,title FROM articles WHERE id=$_GET[id] now say $_GET[id] = 5 I would like to get the previous id 4 and the next id 6 (if there is one) so i can do something like: << Previous

Re: [PHP] MySQL and MySQLi compiling

2005-02-17 Thread dan
Chris wrote: Hi, I've been trying to get these 2 compiled together for a while, and have had no luck. WHere my problem lies, I think, is that I'm not sure what directory should be specified on the --with-mysql part ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/include/m

[PHP] Re: Storing formulas

2005-02-17 Thread Jason Barnett
Mike Smith wrote: ... > > TopMeasurment+1.6875+OutOfPlumbWall > ... > static). Other formulas have 10 and 12 "variables" in them. How have > others gone about storing formulas that require such modifications? > > TIA, > Mike Smith If I was programming this I would probably create 16 functions f

Re: [PHP] Why is my class throwing this error?

2005-02-17 Thread NathanielGuy#21
Thanks to you all, the problem ended up being me leaving off a sigle quote in a function declared before. 8_ I didnt expect that to be the error because I was thinking it would flag it much sooner in my script than it did. Thanks for the help. --nathan On Thu, 17 Feb 2005 11:48:12 -0800 (PST),

[PHP] MySQL and MySQLi compiling

2005-02-17 Thread Chris
Hi, I've been trying to get these 2 compiled together for a while, and have had no luck. WHere my problem lies, I think, is that I'm not sure what directory should be specified on the --with-mysql part ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/include/mysql/ --with-

[PHP] Re: Problems with print html to pdf

2005-02-17 Thread Jason Barnett
Juan Antonio Garrido wrote: > Hi everybody: > > Does it exists someone library I can print html files to pdf without it loss > information about my property css classes(background,color,width...)? > > With GPL library HTML_To_PDF3.3 it isn't possible... > > If the library is GPL much better. >

[PHP] Storing formulas

2005-02-17 Thread Mike Smith
I am developing an application that will require a set of formulas to calculate measurements. We take information from measurers and based on that with some formulas calculate how much material is needed. We have a Product Series and each Series has 3-4 Product Lines. . The formula to calculate the

[PHP] HTML2pdf

2005-02-17 Thread Richard Lynch
[NB Got trigger-happy on the delete again. Sorry.] > convert HTML to PDF with CSS intact There's a 'webthumb' application from the GD guys that would, in theory, let you snatch the way a URL looks to your web-server's X + Mozilla setup, and then you'd have that as a JPEG, which you could then cr

Re: [PHP] memory error

2005-02-17 Thread Richard Lynch
Bruno Santos wrote: > Hello. I've developed a script to use in shell to resize several images, > but, when i try to run it, i keep receiving this error: > > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to > allocate 2048 bytes) > > how can i solve it ? If you actually NEED mo

Re: [PHP] Weird Error Help

2005-02-17 Thread Richard Lynch
Joe Harman wrote: > Hey has anyone had an error like this one? and have a solution > > --- > Warning: Unexpected character in input: '' (ASCII=1) state=1 in > **/_eid_page_functions.php on line > 173 > > > it appears to be very rando

[PHP] Re: Date() reporting wrong on OS X server intermittently

2005-02-17 Thread Jason Barnett
Rowan Hick wrote: ... > > Has anyone out there seen weird problems like this before ? > > Many Thanks, > Rowan The other suggestions are good. If they don't pan out, check to see if you use the function strtotime(). It has been buggy in a few versions of PHP and may not be acting properly in

Re: [PHP] Hashing strings

2005-02-17 Thread Jason Barnett
Gerard Samuel wrote: ... >>> Im trying to determine if md5() would be the fastest, >>> *cheapest* solution. ... > What Im looking for is something where the generated hashes can > be reproduced. > For example, md5('foo') today, will be equal to md5('foo') tomorrow. > Thanks AFAIK crc32() is the fa

Re: [PHP] PHP or ASP.Net

2005-02-17 Thread Chris Shiflett
--- OOzy Pal <[EMAIL PROTECTED]> wrote: > In a long debate with a friend, he tried to convince > my that ASP.Net is the language to go for. Me, I don't > like MS product. I really could not convince him that > PHP is better than ASP.Net. Can you guys/gals help me > to convince this guy that PHP is

Re: [PHP] Weird Error Help

2005-02-17 Thread Greg Donald
On Thu, 17 Feb 2005 17:04:06 -0500, Joe Harman <[EMAIL PROTECTED]> wrote: > Hey has anyone had an error like this one? and have a solution > > --- > Warning: Unexpected character in input: '' (ASCII=1) state=1 in > **/_eid_page_functions.php on line

Re: [PHP] Date() reporting wrong on OS X server intermittently

2005-02-17 Thread Rowan Hick
It could be flicking between GMT and local time, local time is 13 hrs difference. There's nothing on the server that would be changing an environment variable for the PHP app, so I'm pretty much ruling out interference from that. I still keep coming back to the server clock must be wrong but the

[PHP] Weird Error Help

2005-02-17 Thread Joe Harman
Hey has anyone had an error like this one? and have a solution --- Warning: Unexpected character in input: '' (ASCII=1) state=1 in **/_eid_page_functions.php on line 173 it appears to be very random... could be my PHP code... but t

Re: [PHP] [HAB] PHP or ASP.Net

2005-02-17 Thread AdamT
On Thu, 17 Feb 2005 13:41:03 -0800, Stephen Johnson <[EMAIL PROTECTED]> wrote: > I find it humorous that these types of debates keep coming back up -- no > matter what the topic, the IT world can not seem to agree on anything. > http://en.wikipedia.org/wiki/Internet_troll It happens in comp.lang.

Re: [PHP] [HAB] PHP or ASP.Net

2005-02-17 Thread Stephen Johnson
I find it humorous that these types of debates keep coming back up -- no matter what the topic, the IT world can not seem to agree on anything. OS wars - Browser wars - coding languages. It all gets very tiring. Bottom line - go with what you like and with what can get the job done. Myself pers

Re: [PHP] [HAB] PHP or ASP.Net

2005-02-17 Thread Greg Donald
On Thu, 17 Feb 2005 13:15:08 -0800 (PST), OOzy Pal <[EMAIL PROTECTED]> wrote: > In a long debate with a friend, he tried to convince > my that ASP.Net is the language to go for. Me, I don't > like MS product. I really could not convince him that > PHP is better than ASP.Net. Can you guys/gals help

[PHP] [HAB] PHP or ASP.Net

2005-02-17 Thread OOzy Pal
Guys/Gals In a long debate with a friend, he tried to convince my that ASP.Net is the language to go for. Me, I don't like MS product. I really could not convince him that PHP is better than ASP.Net. Can you guys/gals help me to convince this guy that PHP is the language to go for. Thank you ==

[PHP] PHP or ASP.Net

2005-02-17 Thread OOzy Pal
Guys/Gals In a long debate with a friend, he tried to convince my that ASP.Net is the language to go for. Me, I don't like MS product. I really could not convince him that PHP is better than ASP.Net. Can you guys/gals help me to convince this guy that PHP is the language to go for. Thank you ==

Re: [PHP] memory error

2005-02-17 Thread Marek Kilimajer
Bruno Santos wrote: Hello. I've developed a script to use in shell to resize several images, but, when i try to run it, i keep receiving this error: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2048 bytes) how can i solve it ? PHP: 5.0.3 php.ini settings: max_e

Re: [PHP] Date() reporting wrong on OS X server intermittently

2005-02-17 Thread Brent Baisley
The 12 hours seems suspicious to me since it's the difference between AM and PM. My other guess would be that it's grabbing Greenwich time, but it doesn't look like your offset from GMT is twelve hours. On Feb 17, 2005, at 4:12 PM, Rowan Hick wrote: Hi There, I have an app which is installed ac

[PHP] memory error

2005-02-17 Thread Bruno Santos
Hello. I've developed a script to use in shell to resize several images, but, when i try to run it, i keep receiving this error: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2048 bytes) how can i solve it ? PHP: 5.0.3 php.ini settings: max_execution_time = 300

[PHP] Problems with print html to pdf

2005-02-17 Thread Juan Antonio Garrido
Hi everybody: Does it exists someone library I can print html files to pdf without it loss information about my property css classes(background,color,width...)? With GPL library HTML_To_PDF3.3 it isn't possible... If the library is GPL much better. Thank you for all... -- --

[PHP] Date() reporting wrong on OS X server intermittently

2005-02-17 Thread Rowan Hick
Hi There, I have an app which is installed across a dozen odd organisations, and one this week which is running on an OS X Xserve machine. Intermittently this week the PHP app has been seeing the wrong time. Shifting 12hrs at a time. The IT administrator who runs the box says that it's all okay,

Re: [PHP] Session Vars and Performance

2005-02-17 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > On 16 Feb 2005 Richard Lynch wrote: > >> Use the exact same session stuff you have now and just dump the >> serialized data into SQL using the 5 functions for session handling. > > Oh, OK, that's what you meant about the 5 functions. I am not sure of > the advantage to t

Re: [PHP] Why is my class throwing this error?

2005-02-17 Thread Richard Lynch
NathanielGuy#21 wrote: > function displaygallery($user = FALSE, $lastprinted = 0, $move = > 'forward', $limit = 10) {//Line 52 > Error thrown > -- > Parse error: parse error, unexpected T_STRING in > /home/blacknut/public_html/picserv/includes/gallery.class on line 52 You probably have a missing

[PHP] Re: map internal extension name to actual file

2005-02-17 Thread Jason Barnett
Zac Barton wrote: > Hi, > > Does anyone have any good ideas of how to find out what extension was > loaded/enabled from what actual file. > > For example the "ming" extension (thats its internal name) could come from > php_ming.dll in my extensions dir. But if the file name is say mingFlash.dll

[PHP] Re: Dynamic/runtime object creation

2005-02-17 Thread Jason Barnett
joe Lovick wrote: > Thanks for your help Jason, yes aggregating methods was what i had in mind, > but now as i explore it as a option i realise that it would work best is if > their was a way for me to pull my object out of the database variables, > data, This is certainly do-able. You serialize(

Re: [PHP] Hashing strings

2005-02-17 Thread Gerard Samuel
Richard Lynch wrote: Gerard Samuel wrote: Im currently using md5() to hash strings to be used, as an id for a cache system. Im trying to determine if md5() would be the fastest, *cheapest* solution. The only native php functions that I know of are md5() and sha1(). Are there any other native php

Re: [PHP] pcntl_fork() hangs with FUTEX_WAIT

2005-02-17 Thread Richard Lynch
Steve wrote: > > Well, but I don't use multithreading? PHP is running as CLI exec, not > compiled into Apache... > > That's my configure command: > ./configure --enable-pcntl --with-curl --with-mysql > > Or do I have to care for thread safety anyway? For all I know (not much) --enable-pcntl may i

Re: [PHP] Problem connecting to MySQL with PEAR::DB and mysqli

2005-02-17 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > when connecting to MySQL 4.1 using PHP 5 and PEAR::DB I get this error: > > DB Error: connect failed > > a closer look gets this: > > Can't connect to local MySQL server through socket 'localhost' (2) > > the code for the connection is like this:: > > > public st

Re: [PHP] map internal extension name to actual file

2005-02-17 Thread Richard Lynch
Zac Barton wrote: > Does anyone have any good ideas of how to find out what extension was > loaded/enabled from what actual file. > > For example the "ming" extension (thats its internal name) could come from > php_ming.dll in my extensions dir. But if the file name is say > mingFlash.dll how can i

Re: [PHP] FOPEN

2005-02-17 Thread Richard Lynch
Diana Castillo wrote: >How can I read the contents of a web page that uses basic > authentication? > I want to use fopen() but dont know how to do this and also send the > username and password You may be able to do embed the username/password in your URL: $file = fopen("http://username:[

Re: [PHP] traversing multi-dimensional arrays

2005-02-17 Thread Richard Lynch
blackwater dev wrote: > What is the best way to do this? I have two arrays: > > $cars=array("ford","chevy"); > $models=array("ford"=>array("ranger","escape"),"chevy"=>array("malibu","tahoe")); > > then I need to traverse both arrays: > >foreach ($cars as $car){ > //now I need

Re: [PHP] username and password auth

2005-02-17 Thread Richard Lynch
William Stokes wrote: > What is the best or right way to compare users name and password given in > a > web form to data in mysql database? It's kind of a Good Idea to store the password encrypted using MySQL's md5() function or other similar functions. In the old days, you'd use their password()

Re: [PHP] mail, CRLF, RFCs, MTAs, Windows and Unix [long]

2005-02-17 Thread Richard Lynch
> $headers = "From: [EMAIL PROTECTED]: [EMAIL PROTECTED]"; Hey, what's that bullcrap \r\ in there after the Cc: line?! You can't do that! Use \r\n there or it will NEVER work right. You're not following the spec. :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List

Re: [PHP] Crontab for Windows

2005-02-17 Thread Richard Lynch
bob wrote: > C:\php\php.exe -q c:\path\to\php\file.php > > But this doesn't seem to do anything..the task manager in the windows > scheduler just keeps saying that the task has not been run. > > Any suggestions? The Task Scheduler uses the 'at' command under the hood, same as cron... Perhaps if y

Re: [PHP] mail, CRLF, RFCs, MTAs, Windows and Unix [long]

2005-02-17 Thread Richard Lynch
Christophe Chisogne wrote: > - Under *nix, PHP mail uses \n to send subject, to, etc [3] >to the sendmail/postfix/qmail binary (ok, *nix eol is \n), >then the MTA uses translate this to SMTP with \r\n >(adding \r to standalone \n if needed) -- ok, RFC want \r\n I use sendmail. I use \

Re: [PHP] Hashing strings

2005-02-17 Thread Richard Lynch
Gerard Samuel wrote: > Im currently using md5() to hash strings to be used, > as an id for a cache system. > Im trying to determine if md5() would be the fastest, > *cheapest* solution. > The only native php functions that I know of are md5() and sha1(). > Are there any other native php functions t

RE: [PHP] Re: Crawlers (was parsing large files - PHP or Perl)

2005-02-17 Thread Warren Vail
Check out PHPdig; http://www.phpdig.net/ Warren > -Original Message- > From: Jamie Alessio [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2005 9:22 AM > To: John Cage > Cc: php-general@lists.php.net > Subject: [PHP] Re: Crawlers (was parsing large files - PHP or Perl) > > > >

[PHP] Re: Hashing strings

2005-02-17 Thread M. Sokolewicz
Gerard Samuel wrote: Im currently using md5() to hash strings to be used, as an id for a cache system. Im trying to determine if md5() would be the fastest, *cheapest* solution. The only native php functions that I know of are md5() and sha1(). Are there any other native php functions that hash str

[PHP] Re: traversing multi-dimensional arrays

2005-02-17 Thread Jamie Alessio
What is the best way to do this? I have two arrays: $cars=array("ford","chevy"); $models=array("ford"=>array("ranger","escape"),"chevy"=>array("malibu","tahoe")); Why do you even need the $cars array? Wouldn't this work? foreach($models as $car => $model_array) { foreach($model_array as $key =>

[PHP] Hashing strings

2005-02-17 Thread Gerard Samuel
Im currently using md5() to hash strings to be used, as an id for a cache system. Im trying to determine if md5() would be the fastest, *cheapest* solution. The only native php functions that I know of are md5() and sha1(). Are there any other native php functions that hash strings? Thanks -- PHP G

[PHP] Re: Crawlers (was parsing large files - PHP or Perl)

2005-02-17 Thread Jamie Alessio
Is there anyone on this list who has written fast and decent crawlers in PHP who would be willing to share their experiences? My first inclination would be to use an existing crawler to grab the pages and store all the files locally (even if only temporarily). Then, you can use PHP to do whatev

[PHP] Need Help

2005-02-17 Thread Ramya Ramaswamy
Hii, Iam currently doing a research on OPen Source Systems.I need some help on that.I would like to know if there is performance modelling done in open source and it wud b nice if somebody can throw some light on the vendor specific certifications for open source. Please Do help me On this, Many

Re: [PHP] Password Protection] -- My solution

2005-02-17 Thread Mailit, LLC
--- Begin Message --- Here is the setup that I have used. Please, adapt to your needs. Table 'theTable' is supposed to contain columns fname, mname, lname and ePass (encrypted password). The crypt() function produces a password that cannot be decrypted and really works well. Of course, you need t

Re: [PHP] traversing multi-dimensional arrays

2005-02-17 Thread Brent Baisley
Forget about the $cars array. The array "key" in the $models array will be your car list. $cars=array("ford","chevy"); $models=array("ford"=>array("ranger","escape"),"chevy"=>array("malibu"," tahoe")); //Loop through first level of array, getting car maker foreach($models as $carmaker=>$models)

RE: [PHP] Crontab for Windows

2005-02-17 Thread Warren Vail
> On my live server I use Linux, so am fully familiar with Crontab. I am > not that familiar with running scripts using the scheduler in > Win2K though. I use nncronlite which is a cron implementation for windoz (familiar crot.tab file); http://www.batchconverter.com/nnCronLITE-download-16062.sht

[PHP] mail, CRLF, RFCs, MTAs, Windows and Unix [long]

2005-02-17 Thread Christophe Chisogne
I dont know if it's the right place to post, but anyway... (Sorry for the cross-post.) I think the doc for the mail function [1] should be improved, after reading bug 15841 [2], mail.c [3], skim some RFCs, and after I had different problems with PHP mail() Basicaly, the doc says to use - \n in body

[PHP] Re: Crontab for Windows

2005-02-17 Thread Michelle Konzack
Am 2005-02-17 11:31:22, schrieb bob: > Hi, > On my live server I use Linux, so am fully familiar with Crontab. I am > not that familiar with running scripts using the scheduler in Win2K though. > Any suggestions? wincron.exe ? Search with GOOGLE for it... It exist since the old WfW 3.11 days.

[PHP] Request for old-timers

2005-02-17 Thread Rasmus Lerdorf
Anybody happen to have an archive of the old [EMAIL PROTECTED] Majordomo mailing list from 1995 or have an idea where I might be able to get that? Or perhaps an email backup of any correspondence with me from back then? Please reply privately to avoid cluttering this list. -Rasmus -- PHP Gener

[PHP] Crontab for Windows

2005-02-17 Thread bob
Hi, I am trying to schedule the running of some PHP scripts on my Win2K PC at home. On my live server I use Linux, so am fully familiar with Crontab. I am not that familiar with running scripts using the scheduler in Win2K though. So far what I have is: C:\php\php.exe -q c:\path\to\php\file.php

RE: [PHP] username and password auth

2005-02-17 Thread Jay Blanchard
[snip] What is the best or right way to compare users name and password given in a web form to data in mysql database? I saw one example where sql SELECT query was made with username and password as WHERE and the script tested how many rows was returned from database if there was 1 row returned

[PHP] username and password auth

2005-02-17 Thread William Stokes
Hello, What is the best or right way to compare users name and password given in a web form to data in mysql database? I saw one example where sql SELECT query was made with username and password as WHERE and the script tested how many rows was returned from database if there was 1 row returne

Re: [PHP] help me

2005-02-17 Thread Robby Russell
On Thu, 2005-02-17 at 19:11 +0530, K Karthik wrote: > > can u help me to use $_SERVER['remote_addr'] to find the IP address ? > > i am new to php. i also want to find what page of my site he is viewing ? > print_r($_SERVER); what do you see? -- /*** * Robb

Re: [PHP] use_soap_error_handler

2005-02-17 Thread Jochem Maas
FENDT Charles wrote: ... just an exmple : http://test/";); try { $server->handle(""); } catch (Exception $e) { echo "ERROR\n"; } echo "end\n"; ?> I can't test this (no machine with the SOAP extension + lack of time + less than stellar skills when it comes to compiling stuff :-) I am wondering

[PHP] traversing multi-dimensional arrays

2005-02-17 Thread blackwater dev
Hello all, What is the best way to do this? I have two arrays: $cars=array("ford","chevy"); $models=array("ford"=>array("ranger","escape"),"chevy"=>array("malibu","tahoe")); then I need to traverse both arrays: foreach ($cars as $car){ //now I need to get into the models

Re: [PHP] use_soap_error_handler

2005-02-17 Thread FENDT Charles
Jochem Maas a écrit : FENDT Charles wrote: Jochem Maas a écrit : FENDT Charles wrote: Hello... Someone knows how this work ? use_soap_error_handler I don't have a clue but looking at the docs you have at least 2 other ways of handling SOAP errors: 1. http://php.paradoxical.co.uk/manual/en/funct

Re: [PHP] md5 passwords to db

2005-02-17 Thread AdamT
On Thu, 17 Feb 2005 11:33:45 +0200, William Stokes <[EMAIL PROTECTED]> wrote: > Hello, > > I need to make a script/form that can create username and md5 password and > save the info to mysql db. > You can use: http://www.php.net/md5 to make MD5 hashes from strings, or you can just the format of

Re: [PHP] use_soap_error_handler

2005-02-17 Thread Jochem Maas
FENDT Charles wrote: Jochem Maas a écrit : FENDT Charles wrote: Hello... Someone knows how this work ? use_soap_error_handler I don't have a clue but looking at the docs you have at least 2 other ways of handling SOAP errors: 1. http://php.paradoxical.co.uk/manual/en/function.is-soap-fault.php

Re: [PHP] use_soap_error_handler

2005-02-17 Thread FENDT Charles
Jochem Maas a écrit : FENDT Charles wrote: Hello... Someone knows how this work ? use_soap_error_handler I don't have a clue but looking at the docs you have at least 2 other ways of handling SOAP errors: 1. http://php.paradoxical.co.uk/manual/en/function.is-soap-fault.php is_soap_fault is only

Re: [PHP] use_soap_error_handler

2005-02-17 Thread Jochem Maas
FENDT Charles wrote: Hello... Someone knows how this work ? use_soap_error_handler I don't have a clue but looking at the docs you have at least 2 other ways of handling SOAP errors: 1. http://php.paradoxical.co.uk/manual/en/function.is-soap-fault.php 2. use a try/catch block try { // do s

[PHP] use_soap_error_handler

2005-02-17 Thread FENDT Charles
Hello... Someone knows how this work ? use_soap_error_handler I search a way to handle SoapFault exceptions from the SoapServer class... Regards FENDT Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] help me

2005-02-17 Thread K Karthik
can u help me to use $_SERVER['remote_addr'] to find the IP address ? i am new to php. i also want to find what page of my site he is viewing ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamic/runtime object creation

2005-02-17 Thread kermodebear
Hello Joe, If you are careful, you can build a string of PHP and eval() it to create a new class definition. I've done this before, but it was for the novelty more than needed to actually use it. I know for a fact that I have seen several projects for this on the web; However, I tried doing a qui

RE: [PHP] FOPEN

2005-02-17 Thread Mikey
http://uk.php.net/header should help you. BTW, you should address your replies to the list and not to individual ppl. Mikey > -Original Message- > From: Diana Castillo [mailto:[EMAIL PROTECTED] > Sent: 17 February 2005 12:36 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] FOPEN > > how do

[PHP] CURLOPT_RETURNTRANSFER

2005-02-17 Thread QT
dear Sirs, I am running a script which is on the remote server. I do not want to wait output of that script, when I run my script. Because some time, other script takes a long time to complete job. I just want to run other script. I used following curl option but still my script grap other script

[PHP] FOPEN

2005-02-17 Thread Diana Castillo
How can I read the contents of a web page that uses basic authentication? I want to use fopen() but dont know how to do this and also send the username and password -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Ext 216 Fax : 00-34-9

RE: [PHP] reading/writing files outside of web root

2005-02-17 Thread Phil Ewington - 43 Plc
> Jason Wong wrote: > > On Wednesday 09 February 2005 02:31, Richard Lynch wrote: > >> Phil Ewington - 43 Plc wrote: > >> > For some reason user_prefs will not open > >> > for read/write even when I tested it under apache.apache and chmod'd > >> > to 755, > >> > perhaps because /home is owned by ro

[PHP] map internal extension name to actual file

2005-02-17 Thread Zac Barton
Hi, Does anyone have any good ideas of how to find out what extension was loaded/enabled from what actual file. For example the "ming" extension (thats its internal name) could come from php_ming.dll in my extensions dir. But if the file name is say mingFlash.dll how can i determine (in php) t

[PHP] Re: Running PHP from inside another application!

2005-02-17 Thread Mikael Andersson
Thanx! I found a component for Delphi that solved my problem through SAPI. It's called PHP4Delphi. / Mike "Jason Barnett" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Password Protection

2005-02-17 Thread Kevin Javia
Thank you people. "Kevin Javia" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am experimenting on my site and I want to make it password protected like > www.realsolution.com. > > If any one enters correct user name and password, only then they will be > able to enter into my sit

[PHP] Re: Dynamic/runtime object creation

2005-02-17 Thread joe Lovick
Thanks for your help Jason, yes aggregating methods was what i had in mind, but now as i explore it as a option i realise that it would work best is if their was a way for me to pull my object out of the database variables, data, methods and all and then instantiate them some how, with out any of t

[PHP] md5 passwords to db

2005-02-17 Thread William Stokes
Hello, I need to make a script/form that can create username and md5 password and save the info to mysql db. Can anyone help? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem connecting to MySQL with PEAR::DB and mysqli

2005-02-17 Thread markusjais
hello when connecting to MySQL 4.1 using PHP 5 and PEAR::DB I get this error: DB Error: connect failed a closer look gets this: Can't connect to local MySQL server through socket 'localhost' (2) the code for the connection is like this:: public static function getConnection() {    $

[PHP] Crawlers (was parsing large files - PHP or Perl)

2005-02-17 Thread John Cage
Hi there Just an update. We altered our code last night and the result is that we have managed to bring in everything with no problem now. The slowest part was actually pulling down the emails which are on another server. I'd like to thank everyone for their help I have another project I'm wor

Re: [PHP] pcntl_fork() hangs with FUTEX_WAIT

2005-02-17 Thread Steve
Well, but I don't use multithreading? PHP is running as CLI exec, not compiled into Apache... That's my configure command: ./configure --enable-pcntl --with-curl --with-mysql Or do I have to care for thread safety anyway? Regards, Steve Richard Lynch wrote: Steve wrote: I have a program which c

  1   2   >