[PHP] SQL: INSERT using subqueries

2002-12-16 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 First off, sorry it's a SQL question not PHP, but I don't subscribe to mysql-general (or whatever it's called), and I have a feeling someone on this list will be able to help... Anyways, my question is rather simple- how do I do an INSERT using a

Re: [PHP] SQL: INSERT using subqueries

2002-12-16 Thread Ernest E Vogelsinger
At 09:01 16.12.2002, Evan Nemerson said: [snip] Anyways, my question is rather simple- how do I do an INSERT using a subquery? I want something like this- only one that works: INSERT INTO myTable SET owner=(SELECT id FROM users WHERE

[PHP] needle in a haystack (Can't find :)

2002-12-16 Thread John Taylor-Johnston
http://www.php.net/manual/en/function.in-array.php Can't find the °ù¢# $needle in my $haystack. Why? :p (It is a serious example :) ?php $needle = Ten things I hate about you; if(in_array($needle, $haystack)) { echo Found it; }else{ echo Not there; } $haystack = array (Ten Things I

Re: [PHP] SQL: INSERT using subqueries

2002-12-16 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ohhh you're close. A little tweak, and it works. Here's what I came up with: INSERT INTO myTable (owner, name) SELECT id as owner, 'myName' as name FROM users where username='myUserName'; I think if you omit the (owner, name), it thinks you

Re: [PHP] needle in a haystack (Can't find :)

2002-12-16 Thread Jason Wong
On Monday 16 December 2002 16:23, John Taylor-Johnston wrote: http://www.php.net/manual/en/function.in-array.php Can't find the °ù¢# $needle in my $haystack. Why? :p (It is a serious example :) ?php $needle = Ten things I hate about you; if(in_array($needle, $haystack)) { echo

Re: [PHP] needle in a haystack (Can't find :)

2002-12-16 Thread Ernest E Vogelsinger
Define the haystack _before_ you look into it, and you'll find it. At 09:56 16.12.2002, Jason Wong said: [snip] On Monday 16 December 2002 16:23, John Taylor-Johnston wrote: http://www.php.net/manual/en/function.in-array.php Can't find the °ù¢# $needle

Re: [PHP] Re: Mail() Not working right

2002-12-16 Thread Miguel González Castaños
Dear all, Sorry for my English...I am not a native speaker... I am experiencing the same problem with the mail function. I am using exactly the same test php script to test the PHP mail function. I have two RedHat linux boxes. In one box, the PHP mail function work and in the other one doesnt

[PHP] PDF Lib

2002-12-16 Thread Bogomil Shopov
hi folks Is there any way to include in PDF file .gif file with more than 8 colors? Error:Warning: Internal PDFlib warning: Color depth other than 8 bit not supported in GIF file regards Bogomil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Print bgcolors in table

2002-12-16 Thread Bogdan Stancescu
As far as I can see, this is not even an HTML question - it's more of a user agent question. Lars Espelid wrote: Hello, I have been looking for a newsgroup where I can post questions about css/html. I did not find any. Any suggestions? If you want a break from php, my problem is as follows:

RE: [PHP] Can php auto execute it's script in schedule without opening a webpage?

2002-12-16 Thread John W. Holmes
Dear all I just wonder did anyone know if php can act as a scheduler rather than execute script manually? i want to set a schedule for php to run certain script at specify time, to what i understood in php is : the script can only be process when a homepage had been execute. but i want the

php-general Digest 16 Dec 2002 10:17:04 -0000 Issue 1766

2002-12-16 Thread php-general-digest-help
php-general Digest 16 Dec 2002 10:17:04 - Issue 1766 Topics (messages 128347 through 128382): Re: how to send an MSWORD email? 128347 by: Chris Shiflett 128349 by: Andy Turegano 128360 by: Jonathan Sharp 128367 by: See kok Boon select * From

Re: [PHP] PDF Lib

2002-12-16 Thread Jason Wong
On Monday 16 December 2002 17:50, Bogomil Shopov wrote: hi folks Is there any way to include in PDF file .gif file with more than 8 colors? Error:Warning: Internal PDFlib warning: Color depth other than 8 bit not supported in GIF file If I'm not mistaken, doesn't standard GIF only have 8

Re: [PHP] Re: Print bgcolors in table

2002-12-16 Thread Ernest E Vogelsinger
At 10:55 16.12.2002, Bogdan Stancescu said: [snip] As far as I can see, this is not even an HTML question - it's more of a user agent question. [snip] Actually the user agent has the final authority on how documents

Re: [PHP] PDF Lib

2002-12-16 Thread Bogomil Shopov
yes thats right but what that error mean: Error:Warning: Internal PDFlib warning: Color depth other than 8 bit not supported in GIF file regards Bogomil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDF Lib

2002-12-16 Thread Jason Wong
On Monday 16 December 2002 18:36, Bogomil Shopov wrote: yes thats right but what that error mean: Error:Warning: Internal PDFlib warning: Color depth other than 8 bit not supported in GIF file It probably means you need to use GIFs that are 8-bits (256 colours), nothing more, nothing less.

[PHP] Re: Can php auto execute it's script in schedule without openinga webpage?

2002-12-16 Thread Bogdan Stancescu
The other replies you received are correct - but if you somehow DON'T have a CLI PHP (e.g. using PHP3 for some strange reason, or too lazy to upgrade), you can use the same crontab/scheduler to execute wget (recommended on *nix) or lynx (available for both Win and *nix) to retrieve the actual

[PHP] Error 155 using exec

2002-12-16 Thread ml
Here is what i do to parse a file with a perl script from PHP to get a formatted output from the file : error_reporting(E_ALL); $cmd=/pathto/dump.pl \.$HTTP_POST_VARS[filename].\ 21; $res=exec($cmd,$tab,$err); With small files all goes fine, but when parsing a big file i get the 155 error code

[PHP] Error 155 using exec

2002-12-16 Thread ml
Here is what i do to parse a file with a perl script from PHP to get a formatted output from the file : error_reporting(E_ALL); $cmd=/pathto/dump.pl \.$HTTP_POST_VARS[filename].\ 21; $res=exec($cmd,$tab,$err); With small files all goes fine, but when parsing a big file i get the 155 error code

Re: [PHP] PGP/PHP

2002-12-16 Thread David T-G
Jonathan -- ...and then Jonathan said... % % I have necessary PGP client software on my machine and have tested the % functionality of PGP from my site, however, I want to know how to use % PHP to send a PGP email. 1) Do you know how to use pgp to encrypt and decrypt a file? 2) Do you know how

[PHP] newbie having problem with SID

2002-12-16 Thread Anders Thoresson
Hi, I'm just a few weeks into learning PHP, and now wants to understand sessions. But I've run into trouble with the very first script I've tried, even though it's more or less copied from the PHP manual. ?php include (html_functions.php); $title = Anders testing SID; $header = ; html_begin

Re: [PHP] Re: Mail() Not working right

2002-12-16 Thread Chris Hewitt
Miguel González Castaños wrote: I am testing the php mail function with the typical script $mailsuccess = mail(...); if (!$mailsuccess) { echo Mail could not be sent; } In one redhat linux box I got that the email was sent succesfully and in the other box, it cant send it, but the script is

[PHP] FTP UPLOAD

2002-12-16 Thread Marios Adamantopoulos
Hi all I have a problm uploading a simple file to my server using the PHP FTP functions. I would appreciate it if anyone could help: The HTML part: form enctype=multipart/form-data action=ftp.php method=post name=FormName Upload file : input type=file name=thefile size=24 border=0 input

Re: [PHP] newbie having problem with SID

2002-12-16 Thread Ernest E Vogelsinger
At 12:46 04.12.2002, Anders Thoresson spoke out and said: [snip] ?php echo $_COOKIE[PHPSESSID]? BR BR Hello visitor, you have seen this page ?php echo $count; ? times.p To continue, A HREF=visasida.php??php echo SID?click here/A The session id isn't

[PHP] Creating reports in database systems implemented over Web interface

2002-12-16 Thread enediel
Hi everybody: Over linux, I'm using PostgreSQL , Apache server, and PHP pages to create a database systems with web interface. I need to know how programmers have solved the problem about printing high quality reports using the databases information. Thanks in advance Enediel Happy who can

[PHP] Re: PDF Lib

2002-12-16 Thread michael kimsal
Bogomil Shopov wrote: hi folks Is there any way to include in PDF file .gif file with more than 8 colors? Error:Warning: Internal PDFlib warning: Color depth other than 8 bit not supported in GIF file regards Bogomil No, there's no *standard* way. I dare say that PDFlib itself could be

Re: [PHP] Creating reports in database systems implemented over Web interface

2002-12-16 Thread bbonkosk
Quality HTML/embedded with PHP? (Same way any reports are printed from the web) -or- Perhaps, check out PDFLib. -Brad Hi everybody: Over linux, I'm using PostgreSQL , Apache server, and PHP pages to create a database systems with web interface. I need to know how programmers have

[PHP] Image resize with database

2002-12-16 Thread Steve Vernon
(PHP 4.23, GD 1.6.2 or higher) Hiya, I have code to place the picture in a database, and I normally shrink it when the user requests a picture. What I would like it to change to is that it should shrink or expand the picture to be 300 pixels wide and then place it into the database. I thought

[PHP] mail()

2002-12-16 Thread Edward Peloke
Is there anything special you have to do to send a link in an e-mail with the mail function? I used the mail function this weekend and set the mail contents like this: $mailcontents=Thank you for registering with us /n .http://www.oursite.com;; But in the actual e-mail sent, the

[PHP] Re: PDF Lib

2002-12-16 Thread Bogomil Shopov
thanks a lot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail()

2002-12-16 Thread Marco Tabini
You need to use HTML mail. There's an example on how to this in the manual. Marco -- php|architect - The Magazine for PHP Professionals The monthly magazine dedicated to the world of PHP programming Check us out on the web at http://www.phparch.com! ---BeginMessage--- Is there

Re: [PHP] mail()

2002-12-16 Thread Jason Wong
On Monday 16 December 2002 22:47, Edward Peloke wrote: Is there anything special you have to do to send a link in an e-mail with the mail function? I used the mail function this weekend and set the mail contents like this: $mailcontents=Thank you for registering with us /n

[PHP] PHP shell scripting not working right?

2002-12-16 Thread Leif K-Brooks
I'm trying to do shell scripting in PHP. I have PHP installed in /usr/bin/php. I have the following script: #!/usr/bin/php -q ?php print Success!\n; ? It's saved as test.php and CHMODed to 777. When I type test.php at the command line, it says: bash: test.php: command not found When I type

Re: [PHP] PHP shell scripting not working right?

2002-12-16 Thread Leif K-Brooks
Ever answered your own question five seconds after asking it? Apparently, I have to type /path/to/test.php even though I'm already in the right directory. Leif K-Brooks wrote: I'm trying to do shell scripting in PHP. I have PHP installed in /usr/bin/php. I have the following script:

Re: [PHP] PHP shell scripting not working right?

2002-12-16 Thread Marco Tabini
In Unix you need to specify the working folder when you are launching an executable, otherwise Bash will try to look into its search path, which does not include the current folder. Try: ./test.php That should work. BTW--running test by itself only *looks* like hitting enter--it's really a valid

Re: [PHP] FTP UPLOAD

2002-12-16 Thread Andrew Brampton
Well I think the error is telling you whats up The file C:\Inetpub\wwwroot\mario\phpftp\phpftp\FTPonline\12.txt Doesn't exist Try changing the line to something like this: $source_file = $HTTP_POST_FILES['thefile']['tmp_name']; This or $source_file = $_FILES['userfile']['tmp_name']; (if you are

Re: [PHP] PHP shell scripting not working right?

2002-12-16 Thread Marek Kilimajer
You don't have ./ in your $PATH so you must type ./test.php to execute it Leif K-Brooks wrote: I'm trying to do shell scripting in PHP. I have PHP installed in /usr/bin/php. I have the following script: #!/usr/bin/php -q ?php print Success!\n; ? It's saved as test.php and CHMODed to 777.

[PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Lee P. Reilly
Hi there, I'm currently using PHP 4.2.2 and I am have encountered some problems when trying to access $HTTP_POST_VARS. The following statements have the following return values: echo $HTTP_POST_VARS['userfile']; = C:\\Documents and Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir echo

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Jason Wong
On Monday 16 December 2002 23:48, Lee P. Reilly wrote: Hi there, I'm currently using PHP 4.2.2 and I am have encountered some problems when trying to access $HTTP_POST_VARS. The following statements have the following return values: echo $HTTP_POST_VARS['userfile']; = C:\\Documents and

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread rblack
Think you want $HTTP_POST_FILES rather than $HTTP_POST_VARS. As in $HTTP_POST_FILES['userfile']['name']; HTH, Richy == Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED]

Re: [PHP] newbie having problem with SID

2002-12-16 Thread Anders Thoresson
You should use the session array ($_SESSION['count']) to handle session persistent data: Thanks. That solved my problem. At least for the moment. I know realize that all books and all web site-prints I have covering sessions are not using the session array, but the older way to handle

[PHP] Default argument values for functions

2002-12-16 Thread rolf vreijdenberger
I want to use the value of a variable that is defined in a text.inc.php file as a default argumant value for a function. $t_email_afzender_rtg It doesn't work !!! I tried it without quotes and with. If I just put a string value in it it works, but that defeats the purpose of my inc.php file! So

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Chris Shiflett
--- Lee P. Reilly [EMAIL PROTECTED] wrote: The following statements have the following return values: echo $HTTP_POST_VARS['userfile']; = C:\\Documents and Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir echo $userfile; = C:\\Documents and Settings\\Administrator\\Desktop\\IR

Re: [PHP] newbie having problem with SID

2002-12-16 Thread Chris Shiflett
--- Anders Thoresson [EMAIL PROTECTED] wrote: There are obviously differences in how things are handled now and how they were handled then. Yes, but I don't think there are as many differences as you think. Can someone point me to a good session tutorial based on the session array rather

[PHP] REQUIRE_ONCE AND CLASSES

2002-12-16 Thread Mauro Romano Trajber
Hi all. I got a problem. When i include a external file using require_once('my_file.php'); in a class file i cant use my_file´s vars and functions. Example: ? require_once HTML/IT.php; class Home{ var $tpl_home= new IntegratedTemplate(../templates); function Home(){

[PHP] Java check

2002-12-16 Thread Yura Ilyaev
Hello Please, tell me how i can check if exists JAVA machine on the client computer? or if this cant be done with php, any other methods... Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Lee P. Reilly
Thanks for all the replies. However, I still have problems as the following code produces the following output: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= echo 0: . $userfile . br; echo 1: . $HTTP_POST_FILES['userfile']['size'] . br; echo 2: .

Re: [PHP] REQUIRE_ONCE AND CLASSES

2002-12-16 Thread Wico de Leeuw
Hiya Try it like this: ? require_once HTML/IT.php; class Home { var $tpl_home = NULL; function Home () { $this-tpl_home = new IntegratedTemplate(../templates); } function Home(){

[PHP] Re: errorno error codes

2002-12-16 Thread phplist
Yes I know that. It returns a number. Meanwhile I found out that 11 (what is returned in my case) means that I have to try again, something like a temporary unavailable resource. It is weird that the same program on the command line returns a string to stdout without a problem. When I used it from

[PHP] Re: Encrypt and decrypt cookie

2002-12-16 Thread phplist
I am not a specialist, but I discovered the parameter iv and the related function create_iv. Most likely you must provide an created iv before encryption, store the cypher and the iv together in the cookie and at retreaval, use both in decrypt. So in between: /* Terminate encryption handler */

[PHP] question

2002-12-16 Thread Jos Elkink
Hi all, I've got a question about the echo function. If I have a variable (string) with a ` in it, and I use echo, the output is \` instead. This I use this in a form (if people fill in the form incorrectly, they get the form again, with the values they entered filled in) and it looks rather

Re: [PHP] REQUIRE_ONCE AND CLASSES

2002-12-16 Thread Wico de Leeuw
Ofcourse there can only be one home function: ? require_once HTML/IT.php; class Home { var $tpl_home = NULL; function Home(){ $this-tpl_home = new IntegratedTemplate(../templates);

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Joseph W. Goff
It looks to me like you are trying to get an uploaded file? If so, it isn't $HTTP_POST_VARS, it is $HTTP_POST_FILES or $_FILES if you are using a version of PHP that has super globals. See the PHP manual for more info: http://www.php.net/manual/en/language.variables.predefined.php - Original

Re: [PHP] question

2002-12-16 Thread 1LT John W. Holmes
I've got a question about the echo function. If I have a variable (string) with a ` in it, and I use echo, the output is \` instead. This I use this in a form (if people fill in the form incorrectly, they get the form again, with the values they entered filled in) and it looks rather weird

[PHP] mail()-function/sendmail

2002-12-16 Thread lars konersmann
I have big problems getting the mail()-function working - the error I always get is as follows: syserr(apache): can not chdir (/var/spool/mqueue/): Permission denied Has anybody a clue what might be the reason for this error? Should I change the rights of the mqueue directory? The mqueue

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Lee P. Reilly
Problem solved: I forgot to add the enctype to the original FORM tag. Cheers, Lee, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FTP Can't create temp file?

2002-12-16 Thread Marios Adamantopoulos
Hi all again I'm trying to upload to a unix server. The program I use works fine on my 2000 IIS machine but it has a problem on the online one. Permittions have been checked and I've been looking all day to find something, but natha... I would appreciate it if someone can have a look and

[PHP] Divide into words

2002-12-16 Thread Uros Gruber
Hi! For example i have some words: Today is very beautiful day and sun is shining What i want to get from this is array words [Today] = 0 [Is] = 6,30 [Very] = 8 [beautiful] = 12 .. Can somebody please help me with this. Those nubers are position of special word in above sentence. If

[PHP] stop script on browser closing

2002-12-16 Thread rolf vreijdenberger
I was wondering when a script stops executing server side. I am sending out a large number of mails. This takes some time ( 30 secs) before it is done. If I close the browser window before the execution of the script, a lot of emails do not arrive. is there a way to prevent this? and how does

Re: [PHP] stop script on browser closing

2002-12-16 Thread Chris Shiflett
--- rolf vreijdenberger [EMAIL PROTECTED] wrote: If I close the browser window before the execution of the script, a lot of emails do not arrive. is there a way to prevent this? Try this at the top of your script: ignore_user_abort(true); Chris -- PHP General Mailing List

Re: [PHP] stop script on browser closing

2002-12-16 Thread rolf vreijdenberger
yes, thank you, found it in the manual thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Divide into words

2002-12-16 Thread Marco Tabini
You could use strpos--there are easier ways if you don't need the offsets. Example: ?php $inputstring = This is a string ; $pos = 0; $oldpos = 0; $result = array(); $inputstring .= ' '; while (!(($pos = (strpos ($inputstring, ' ', $pos))) === false)) { if ($pos != $oldpos)

RE: [PHP] Divide into words

2002-12-16 Thread John W. Holmes
For example i have some words: Today is very beautiful day and sun is shining What i want to get from this is array words [Today] = 0 [Is] = 6,30 [Very] = 8 [beautiful] = 12 .. Can somebody please help me with this. Those nubers are position of special word in above

RE: [PHP] Divide into words

2002-12-16 Thread Marco Tabini
John, I'm not sure this will work if there is more than one space between words. Also, my previous example won't work if there are duplicate words (although it's easy to make an array out of each word and solve the problem), nor if the words are delimited by any character other than spaces, in

RE: [PHP] Odd Strpos Behavior

2002-12-16 Thread Steve Keller
At 12/14/2002 12:50 AM, John W. Holmes wrote: And here's a good example of why you should always test each solution and time it to see what's better. I was recommending a preg_replace_callback solution which I thought, as a lot of other people would also think, is a lot faster that your own

[PHP] Array

2002-12-16 Thread Mako Shark
I have an array I set up like this: $monthschedule = array(1 = Jan, 2 = Feb, 3 = Mar, 6 = Jun); When I try to access them, doing this: $r = $monthschedule[6]; nothing comes up ($r is blank). Any thoughts? There are missing elements (4,5,7-12) in $monthschedule.

RE: [PHP] Divide into words

2002-12-16 Thread John W. Holmes
True, but it answers the original question. :) You can easily throw in a if($word == ' ') then don't save it, but still increment $pos. You could use a regular expression to check/remove punctuation, too. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your

[PHP] URL field receiving Array for others

2002-12-16 Thread rw
Hello All! I have a script which inserts a users info into mysql via PHP. Here is the code which does so: $sql = (INSERT INTO `business` (`id`, `bt_id`, `bus_name`, `bcity`, `phone`, `cell`, `email`, `url`, `details`, `duration`, `s_id`, `license`, `datime`,

Re: [PHP] FTP Can't create temp file?

2002-12-16 Thread Joseph W. Goff
What happens when you remove the suppresion operator (@) from the move_upload_file and why not just use ftp_put()? That has always worked fine for me. - Original Message - From: Marios Adamantopoulos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 16, 2002 11:06 AM Subject:

Re: [PHP] Array

2002-12-16 Thread Jason Wong
On Tuesday 17 December 2002 01:43, Mako Shark wrote: I have an array I set up like this: $monthschedule = array(1 = Jan, 2 = Feb, 3 = Mar, 6 = Jun); When I try to access them, doing this: $r = $monthschedule[6]; nothing comes up ($r is blank). Any thoughts? There are missing elements

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread Joseph W. Goff
Whatever variable that is suppose to contain the URL is an array. If you try to print a variable that is an array the value you get is 'Array'. You will either have to step through it, or implode it, or something of that nature to get what the array contains. - Original Message - From:

Re[2]: [PHP] Divide into words

2002-12-16 Thread Uros Gruber
Hi! I have dome almost the same $input = 'Today is a very beautiful day and the sun is shining'; $output = array(); $words = explode(' ',$input); $cur_pos = 0; foreach($words as $word) { if(!empty($output[$word])){ $output[$word] .= ','.$cur_pos; } else { $output[$word]

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread rw
But what could the user be typing into the field to return an array? I'm completely at a loss. Quoting Joseph W. Goff [EMAIL PROTECTED]: ### Whatever variable that is suppose to contain the URL is an array. If you ### try to print a variable that is an array the value you get is 'Array'. ###

RE: [PHP] FTP Can't create temp file?

2002-12-16 Thread Marios Adamantopoulos
It gives me an error Warning: error opening none in Line 51 (which is the ftp_put()) -Original Message- From: Joseph W. Goff [mailto:[EMAIL PROTECTED]] Sent: 16 December 2002 17:53 To: php-general; Marios Adamantopoulos Subject: Re: [PHP] FTP Can't create temp file? What

Re: Re[2]: [PHP] Divide into words

2002-12-16 Thread Marco Tabini
Yes, but my example was geared towards trying to work through a more generic scenario. I'll bet if you try using perl regex with callback it'll be even faster. Marco -- php|architect - The magazine for PHP Professionals The monthly worldwide magazine dedicated to PHP programmers

Re: Re[2]: [PHP] Divide into words

2002-12-16 Thread 1LT John W. Holmes
Yes, but my example was geared towards trying to work through a more generic scenario. I'll bet if you try using perl regex with callback it'll be even faster. I'll take that bet and say using preg_*_callback will be slower. :) I'll try and time each of them tonite and post what I find.

[PHP] Stumped!

2002-12-16 Thread CSParker1
I am trying to display a column from my database as a list. Each listing needs to be a URL that links to another script that brings up all of the data in the row to edit. I keep getting a parser error and I can't figure it out. Here is the code and any help is greatly appreciated. ?php $db

[PHP] Reject some?

2002-12-16 Thread Gerard Samuel
What Im trying to do is, reject all email address strings ending in yahoo.com, except [EMAIL PROTECTED] Im trying - ?php if (preg_match('/[^[EMAIL PROTECTED]|yahoo.com]$/', '[EMAIL PROTECTED]')) { echo 'match found'; } else { echo 'match not found'; } ? The search pattern must also be

Re: [PHP] Stumped!

2002-12-16 Thread 1LT John W. Holmes
I am trying to display a column from my database as a list. Each listing needs to be a URL that links to another script that brings up all of the data in the row to edit. I keep getting a parser error and I can't figure it out. Here is the code and any help is greatly appreciated. ?php

[PHP] Re: Stumped!

2002-12-16 Thread Omar
$sql = SELECT .; $sql_e = mysql_query($sql); while ($result = mysql_fetch_array($query_e)) { . } You were missing the mysql_query [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am trying to display a column from my database as a list. Each

[PHP] Creating reports in database systems implemented over Web interface

2002-12-16 Thread enediel
Thanks [EMAIL PROTECTED] for your answer. I'll verify the PDFLib, create dinamically a pdf file and add a link to it into a result web page could be the solution I need. Sometimes the asked report could be extremely large, and include all resulting information inside the web page won't be the

Re: [PHP] Re: Stumped!

2002-12-16 Thread CSParker1
Hmm, I am still getting a parse error on the last line of code... In a message dated 12/16/2002 1:49:26 PM Eastern Standard Time, [EMAIL PROTECTED] writes: $sql = SELECT .; $sql_e = mysql_query($sql); while ($result = mysql_fetch_array($query_e)) { . } You were missing the

[PHP] php setup

2002-12-16 Thread Edward Peloke
I recently got a laptop and was in the process this weekend of installing, php, apache, mysql etc. One thing I noticed is when I ran the code (that works fine everywhere else) on the laptop, I got errors of 'Variable not defined' and I have pictures that just won't show. I am not sure if this is

Re: [PHP] Stumped!

2002-12-16 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: I keep getting a parser error and I can't figure it out. Here is the code and any help is greatly appreciated. $sql = SELECT * FROM requests; while ($result = mysql_fetch_array($query)) While this is not related to your parse error, it is a major logic flaw,

Re: [PHP] php setup

2002-12-16 Thread Rasmus Lerdorf
Turn on register_globals in your php.ini file. On Mon, 16 Dec 2002, Edward Peloke wrote: I recently got a laptop and was in the process this weekend of installing, php, apache, mysql etc. One thing I noticed is when I ran the code (that works fine everywhere else) on the laptop, I got errors

Re: [PHP] Re: Stumped!

2002-12-16 Thread Omar
Check out your while { } --- i don´t see a closing one echo (A HREF=/edit.php?id='$id'\$meetingName/A ); try: echo 'A href=edit.php?id='.$id.''.$meetingName.'/A'; [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hmm, I am still getting a parse error on the

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread Joseph W. Goff
I don't know. You need to show your code. - Original Message - From: [EMAIL PROTECTED] To: Joseph W. Goff [EMAIL PROTECTED] Cc: php-general [EMAIL PROTECTED] Sent: Monday, December 16, 2002 12:01 PM Subject: Re: [PHP] URL field receiving Array for others But what could the user be

Re: [PHP] Stumped!

2002-12-16 Thread Chris Shiflett
--- Chris Shiflett [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: I keep getting a parser error and I can't figure it out. Here is the code and any help is greatly appreciated. $sql = SELECT * FROM requests; while ($result = mysql_fetch_array($query)) While this is not

Re: [PHP] Reject some?

2002-12-16 Thread Jason Wong
On Tuesday 17 December 2002 02:46, Gerard Samuel wrote: What Im trying to do is, reject all email address strings ending in yahoo.com, except [EMAIL PROTECTED] Im trying - ?php if (preg_match('/[^[EMAIL PROTECTED]|yahoo.com]$/', '[EMAIL PROTECTED]')) { echo 'match found'; } else {

RE: [PHP] php setup

2002-12-16 Thread Edward Peloke
it is turned on -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 2:03 PM To: Edward Peloke Cc: php Subject: Re: [PHP] php setup Turn on register_globals in your php.ini file. On Mon, 16 Dec 2002, Edward Peloke wrote: I recently got a

Re: [PHP] Re: Stumped!

2002-12-16 Thread Joseph W. Goff
You don't have a closing french brace for your while loop. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 16, 2002 12:57 PM Subject: Re: [PHP] Re: Stumped! Hmm, I am still getting a parse error on the last line of code...

[PHP] regex for fqdn test

2002-12-16 Thread Max Clark
Hi- I was wondering if someone could help me with a regex to test for a valid domain name (foo.com). Thanks in advance, Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php setup

2002-12-16 Thread Joseph W. Goff
You have the error_reporting set at E_ALL in the ini file. Set it to E_ALL ~E_NOTICE - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Monday, December 16, 2002 1:29 PM Subject: [PHP] php setup I recently got a laptop and was in the process

[PHP] Error 155 using exec - please help !

2002-12-16 Thread ml
Here is what i do to parse a file with a perl script from PHP to get a formatted output from the file : error_reporting(E_ALL); $cmd=/pathto/dump.pl \.$HTTP_POST_VARS[filename].\ 21; $res=exec($cmd,$tab,$err); With small files all goes fine, but when parsing a big file i get the 155 error code

[PHP] Socket_connect() timeout

2002-12-16 Thread Max Clark
Hi- Warning: socket_connect() unable to connect [60]: Operation timed out in /usr/home/maxc/public_html/admin/functions.inc on line 66 Is there any way to time out this function? I only want to wait 5 seconds. Thanks in advance, Max -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] php setup

2002-12-16 Thread Edward Peloke
thanks, I will give that a shot. -Original Message- From: Joseph W. Goff [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 2:25 PM To: php-general; Edward Peloke Subject: Re: [PHP] php setup You have the error_reporting set at E_ALL in the ini file. Set it to E_ALL ~E_NOTICE

[PHP] Code appearing suddenly!.

2002-12-16 Thread Lic. Rodolfo Gonzalez Gonzalez
Hi, I've just recompiled PHP 4.2.3 on RedHat w/Apache, after having upgraded from Perl 5.6.0 to 5.8.0 (I had to disable mod_perl for now, due to incompatible libraries). But now something weird is happening: sometimes as a page with PHP code loads in the browser, it's not processed by PHP, but

Re: [PHP] Divide into words

2002-12-16 Thread Sean Burlington
Uros Gruber wrote: Hi! For example i have some words: Today is very beautiful day and sun is shining What i want to get from this is array words [Today] = 0 [Is] = 6,30 [Very] = 8 [beautiful] = 12 .. Can somebody please help me with this. Those nubers are position of special word in

Re: [PHP] Socket_connect() timeout

2002-12-16 Thread Chris Shiflett
--- Max Clark [EMAIL PROTECTED] wrote: Warning: socket_connect() unable to connect [60]: Operation timed out in /usr/home/maxc/public_html/admin/functions.inc on line 66 Is there any way to time out this function? I only want to wait 5 seconds. Now that you mention it, I am not aware of

[PHP] PHP Auto-Responder

2002-12-16 Thread Kevin Stone
I need a solution to activate a PHP script when somebody sends an email to a specified account. I've looked into procmail and sork and find that I am in way over my head. I know my way around PHP well enough but I'm more than a little dense when it comes to Unix commands. I wouldn't even know

[PHP] Hi!!

2002-12-16 Thread Tomas Lopez
Hi ALL! I'm new on PHP (just a few mounths) and i'm learning , my problem is that i dont have good projects to do., can someone tell me where can i enroll in a good proyect o someone to help.. Thank you so much. Tomas Lopez _

  1   2   >