[PHP] PHP preg_replace_callback with unicode

2012-03-30 Thread Jimmy Chen
I wrote a simple script below to simulate my problem. Both my string and pattern contain unicode characters. Basically, if I run it from command line (php -f test.php), it prints "match" as expected. But if I run it through web server (apache, http://localhost/test.php), it prints "no match". I

[PHP] PHP Error logging

2011-01-17 Thread Jimmy Stewpot
files have a modify time of mid 2010 and yet this problem has only started in the last few weeks. Has anyone else experienced similar problems in the past and if so what was the root cause? Regards, Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Apache and PHP segfaults on Redhat EL5

2011-01-06 Thread Jimmy Stewpot
ther down the track to enlightenment I would be really appreciated. Regards, Jimmy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SEE MY LATE JANGO JIMMY(Snr) BUSINESS CARD,I SEND MY PICTURES WHEN I HEAR FROM YOU.

2008-04-28 Thread Acct.yussuf Jimmy
Dear, I am yussuf Jimmy,from Togo Republique.I will be very glad if you do assist me to download the sum of ( USD$15.8Million)into your bank account. I got your contact through a Global Network and i decided to communicate with you in a good manner. I will compensat you for effort after the

[PHP] FastCGI and --enable-force-cgi-redirect

2006-03-29 Thread Jimmy Scott
o put this (with or without that workaround) in a production area without knowing *WHAT* support on it is still being done, to be honest, it scares me this very moment. The system I'm testing on FreeBSD 6.0-RELEASE. Please CC me as I'm not subscribed to the list. Kind regards, Jimmy Sc

[PHP] Problem with arrays

2005-06-24 Thread Jimmy jimmy hoo
Hi, I have 2 arrays: Array ( [0] => Array ( [0] => 28 [1] => Music ) [1] => Array ( [0] => 5 [1] => Books

[PHP] E-Commerce II

2004-02-13 Thread Jimmy
Wow, thanks for the help guys. Appreciate it. Here's 2 other Q that popped into my head while researching... 1. I looked at Yahoo! and bCentral, they both charge monthly fees for using their E-Commerce Tools. Why? I thought it should be a one time thing? Or are they not providing code, just letti

[PHP] E-Commerce

2004-02-12 Thread Jimmy
Hi all. Is PHP a suitable language for building an online shop? Where would I go to find out more info on this? Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Empty Reference to an Object

2004-01-13 Thread Jimmy Lantz
m2){ if(get_class($param2) =='stdClass') $param2 = NULL; // get_class might return stdclass not sure } ?> / Jimmy -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] PHP logo question

2004-01-12 Thread Jimmy Lantz
ies within the month or two months. Cheers Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP vs. jsp, advice please

2003-06-10 Thread Jimmy Brake
was worth the trouble/overhead). > > Can anyone offer an opinion on this? Is persistence with jsp that much > easier compared to PHP? And if true persistence is possible is it all > it's cracked up to be? > > I've often dreamed of being able to have true persistenc

Re: [PHP] native vs. phplib sessions

2003-04-04 Thread Jimmy Brake
-04-04 at 12:26, Dennis Gearon wrote: > How many people are using native vs. phplib sessions, vs. their own/homegrown > sessions? > > The archives show a LOT of problems with native sessions. -- Jimmy Brake <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.ne

Re: [PHP] cookies with internet explorer on macs

2003-03-31 Thread Jimmy Brake
thanks ... lots of my customers use entourage ... On Mon, 2003-03-31 at 20:53, Lowell Allen wrote: > > From: Jimmy Brake <[EMAIL PROTECTED]> > > > > The cookies i set for people using Internet Explorer on mac (OS X or mac > > os 8-9) are not staying alive as long

[PHP] cookies with internet explorer on macs

2003-03-31 Thread Jimmy Brake
other browsers on linux are fine. This is what I use to set the cookie. $rand = md5(uniqid(rand())); setcookie("sessid", $rand, time()+43200, "/"); Any ideas? Thanks! Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 2 databases

2003-03-19 Thread Jimmy Brake
yes -- i connect to oracle and mysql simultaneously .. On Wed, 2003-03-19 at 15:21, Iwan van Kanten wrote: > Is it possible to connect to 2 different databases?? > 2 different dtabase typs I mean > postgresql and Mysql > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] Weird slowdown using complex functions in a loop

2003-03-12 Thread Jimmy Brake
where are you storing the information that you are cleaning once it is cleaned? are you appending it to a variable in the script? On Wed, 2003-03-12 at 00:26, pgcd wrote: > Hi, > I'm trying to write a script to do some basic XML validation - nothing > fancy, basically I just close open tags and c

Re: [PHP] fopen and file dump to a databace...

2003-03-09 Thread Jimmy Brake
hi mark! i import data all the dang time and this is what i use (more or less) Insert($query); // i use a class for my mysql connections } function csv_parse($data, $separator) { $quote = '"'; $values = array(); $toggle = 0; $len = strlen($data); $count =

[PHP] syntax question

2003-03-06 Thread Jimmy
I'm looking through some existing code for a project I'm working on, but I keep running into this syntax that I really don't understand. Here's an example: $a=strpos($a,'-')?explode('-',$a,2):array($a); What do the ? and the : do here? I'm seeing this sort of thing all over and just have no idea

Re: [PHP] crontab

2003-03-04 Thread Jimmy Brake
idea :) ) but running a php script versus a bash or perl or whatever script/program is no more a concern than those ( always have security in mind ) On Tue, 2003-03-04 at 13:07, John Taylor-Johnston wrote: > Cal, Liam, Jimmy, > Thanks. If this is a serious security hazard, could you show m

[PHP] vni -> unicode

2003-02-17 Thread Jimmy Brake
Hi! I was wondering if anyone has vni -> unicode conversion script. Thanks Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I have a problem with MsSQL

2003-02-17 Thread Jimmy Huaman
Hi. My problem is the characters in spanish: example: Construcción (Data of MsSQL Server) Result in web with PHP: Construcci¢n Thanks you. Prompyme a su servicio - Prompyme a su servicio. "El Estado su mejor cliente, visite la página de

[PHP] mac os 9 - file upload problems

2003-02-10 Thread Jimmy Brake
Hi, I have a file upload page that accepts file uploads from pretty much every browser and os EXCEPT any browser on mac os 9. I have no idea why, any of you ever have problems with file uploads on mac os 9? How did you solve the issue. -- Jimmy Brake <[EMAIL PROTECTED]> -- PHP G

RE: [PHP] Flow diagrams.-- Resending

2002-12-31 Thread Jimmy Brake
On Mon, 2002-12-30 at 06:59, Sridhar Moparthy wrote: > Hi Jimmy, > > Thank You for the your reply. Here is the example. > > If > 1. Jobs 'B' and 'C' starts immediately after Completion of job'A' > 2. Job 'D' starts after completion o

Re: [PHP] monster form and compression?

2002-12-27 Thread Jimmy Brake
IE has some bugs when you have big forms when using [] test with mozilla or netscape if thats the case -- then errr well umm use what works On Fri, 2002-12-27 at 12:50, Jeff D. Hamann wrote: > I have a monster form (really a funky grid - hey the client is always right) > that does not display

Re: [PHP] Flow diagrams.-- Resending

2002-12-27 Thread Jimmy Brake
can you give us some examples of the data ... the example I would like to see is: based on this information this is what should be displayed On Fri, 2002-12-27 at 11:48, Sridhar Moparthy wrote: > Hi Every one, > > I have information about some processes in the database that tells different > p

[PHP] uploading + downloading Large files ...

2002-12-27 Thread Jimmy Brake
just make em use ftp or scp? The problem with using one of those protocols is that it makes it difficult for the users to link the files to the proper account/relation/incident and anything that is a problem for users is usually a problem for me. Thanks! Jimmy -- PHP General Mailing List (http

Re: [PHP] Flow diagrams.

2002-12-26 Thread Jimmy Brake
to my knowledge there is nothing in php that does that good luck On Thu, 2002-12-26 at 11:17, Sridhar Moparthy wrote: > Hi Every one, > > Do you know how to prepare and display process flow diagrams dynamically > based on some data from database. I have information about some processes in > the

[PHP] a good imap library?

2002-12-11 Thread Jimmy Brake
squirrel mail but I am not to happy with what I am seeing -- looks very mature but I would prefer something that is OO. Thanks in advance, Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] update query based on array

2002-12-09 Thread Jimmy Brake
ank' > WHERE pid=$val"); > } > > If anyone has any suggestions for fixing this problem, please let me know :) > THanks > > > __ > Jason Dulberg > Extreme MTB > http://extreme.nas.net -- Jimmy Brake <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Looking for good ZIP Code / Latitude / Longitude table

2002-10-30 Thread Jimmy Brake
how much does the service cost? or am misunderstanding the class? why do you have to enter a password? On Wed, 2002-10-30 at 11:31, Manuel Lemos wrote: > Hello, > > On 10/30/2002 04:03 PM, Michael Zornek wrote: > > I've written a nice php/mysql site that let's you search for hospitals and > >

Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread Jimmy Brake
for file maker pro (windows/mac) -- word (windows/mac) function make_safe($text) { $text = preg_replace("/(\cM)/", " ", $text); $text = preg_replace("/(\c])/", " ", $text); $text = str_replace("\r\n", " ", $text); $text = str_replace("\x0B", " ", $text); $t

[PHP] What causes this?

2002-10-28 Thread Jimmy Brake
;--enable-sigchild' '--enable-track-vars' '--enable-wddx' '--with-mysql' '--with-jpeg-dir=../jpeg-6b/' '--with-t1lib=../t1lib-1.3.1' '--enable-wddx' '--with-apache=../apache_1.3.27' '--with-mysql=/usr/local/mysql/&#x

[PHP] Reading header information

2002-08-29 Thread jimmy
0:09 GMT Server: Apache/1.3.26 (Darwin) PHP/4.2.2 Connection: close Content-Type: text/html Really what I'm trying to find is the server message (404, 200, etc.) on a remote server from this line... HTTP/1.1 200 OK Is there anyway to access this through php? thanks, jimmy -- PHP Genera

RE: [PHP] missing function? array_change_key_case()

2002-07-17 Thread Jimmy Brake
yep thats it ... On Wed, 2002-07-17 at 18:02, John Holmes wrote: > Works fine for me on 4.2.1 > > You have to have at least 4.2.0, do you? > > ---John Holmes... > > > -Original Message- > > From: Jimmy Brake [mailto:[EMAIL PROTECTED]] > > Sent: Wed

[PHP] missing function? array_change_key_case()

2002-07-17 Thread Jimmy Brake
running 4.x any ideas? Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ^k ? -- how do I match that?

2002-07-15 Thread Jimmy Brake
a form its ok, but when I export that data to a csv it gets ugly. http://www.robelle.com/smugbook/ascii.html Thanks in advance! Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] A problem in mysql_fetch_array

2002-07-08 Thread Jimmy Lam
I have insert some text with space to mysql DB with varchar() When I use mysql_fetch_array function to retrieve the data from DB . I found only the first session text can be shown . It means if any space there . It will split like session by session. for example. my DB have a text "Hello World"

[PHP] I would like to ask about Photo Upload in mysql and reteive problem .

2002-07-05 Thread Jimmy Lam
to let me reference. ?? I am doing my project. I need this information in urgent. Please friendly give me advice here . thanks Jimmy

[PHP] STDIN/STDOUT in PHP

2002-06-09 Thread Jimmy Lantz
I've been looking for a way to work with stdin/stdout for a mod_rewrite's rewritemap. There's a working example in Perl, (just returning the input) #!/usr/bin/perl $| = 1; while () { print $_; } I've been trying to achieve this with fopen() read and write the php://stdin & php://stdout

[PHP] (Unlink(file) == rm file) ? (ignore this mail):(explain diffs);

2002-05-28 Thread Jimmy Lantz
Hi, (Unlink(file) == rm file) ? (ignore this mail):(explain diffs); Does PHP unlink function handle deletion of files equally as the "rm" command on the system in my case FreeBSD. Or does it involve caching/handling files in any different way? / Jim -- PHP General Mailing List (http://www.ph

RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread Jimmy Lantz
>I believe that twofish has been successfully broken, so use blowfish >instead. Typically, for encrypting files you will use an algorithm like >blowfish in cbc mode (as opposed to ebc mode) but I don't know if Mcrypt >supports this. Also, when creating the hash of the file, it is probably best >

[PHP] Mcrypt: Blowfish or Twofish or no fish? Part 2

2002-05-21 Thread Jimmy Lantz
Thanx for the suggestions! Someone mentioned that I could use MD5 and then encrypt the hash, how would I ever decrypt that? Is'nt MD5 a 1-way thing only? Another question? Should I go for bigger keylength or bigger blocksize or both? What makes for the best encryption? / Jim (and before someon

[PHP] Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Jimmy Lantz
Hi, started playing with Mcrypt and just wanted to ask which encryption method makes the stronger encryption? (I can supply the necesary keylength). Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no fish at all :) So what do I need it for? I'm going to use it encrypting files, sizes vari

[PHP] Sane path? Avoiding people climbing in directory structure ../../

2002-05-20 Thread Jimmy Lantz
Hi, I'm planning on using userinput as a part of path to read (horrific I know :) So to make this userinput a bit more secure I'm thinking to use $path = escapeshellarg($path); $path = str_replace("../","",$path); I'm thinking to use a basedir in a constant something like /usr/home/userdir (thi

[PHP] Re: [[PHP] php problem]

2002-05-10 Thread Jimmy Lantz
"johnny1b1g" <[EMAIL PROTECTED]> wrote: ? Well I guess I could try to help you if you elaborate your question a bit further. / Jimmy Start with RTFM :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Ma

[PHP] [PHP 4.2.0] HTTP PUT method & $_FILES ?

2002-05-10 Thread Jimmy Lantz
$HTTP_PUT_FILE['path_translated'] The full path of the proposed upload like /usr/home/foo/bar/public_html/mytest/filename.htm $HTTP_PUT_FILE['size'] The size, in bytes, of the uploaded file. $HTTP_PUT_FILE['tmp_name'] Temp name something like /tmp/hfdhjfufd8733 My on

[PHP] ODBC & MSSQL...

2002-04-29 Thread Jimmy
Anyone have any experience resetting the result cursor when using ODBC to access MSSQL (2000)? TIA -josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [PHP 4.2.0] Benchmarking file uploads?

2002-04-24 Thread Jimmy Lantz
Hi, I'm looking into the new version of PHP it says in the changelog "Highly improved performance with file uploads " Has there been any benchmarking done on this? / Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php printer functions...

2002-04-18 Thread Jimmy
I'm running PHP 4.1.1 on a Win2K box. If I understand the manual correctly, the printer functions have been integrated into PHP as of v4.0.4. However, when I try to call any of the printer functions, nothing works. Any ideas or suggestions? TIA -josh -- PHP General Mailing List (http://ww

[PHP] mimeexplode counterpart in php?

2002-03-25 Thread Jimmy Lantz
ng at IMAP functions but dont see how it would be possible to do the same thing. Cheers Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Resume/recover uploads in PHP 4.2 ? WAS: RE: upload forms, how much was uploaded before upload fails..

2002-03-25 Thread Jimmy Lantz
Hi following up on the text below... Will there then be possible to recover uploads in 4.2? Maybe even resuming uploads? (wishfull thinking) ? Cheers Jimmy Rasmus Lerdorf wrote: Re: [PHP] upload forms, how much was uploaded before upload fails.. You'll probably need PHP 4.2 for uploads tha

[PHP] Appropriate headers for Forcing download on IE/Mac and open with stuffit?

2002-03-18 Thread Jimmy Lantz
ion: attachment; filename=\"$filename\"\n"); header("Content-transfer-encoding: binary\n"); header("Content-length: " . $filesize . "\n"); But it doesnt result in the desired behaviour though. Any Ideas? Cheers Jimmy And yes I've RTFM more than tw

[PHP] readfile or fopen? (Passing file to user...)

2002-03-12 Thread Jimmy Lantz
ter, better way? $data = readfile($completeFilePath); $i=0; while ($data[$i] != ""){ echo $data[$i]; $i++; } exit; TIA / Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strange behaviour of mysql_pconnect()

2002-01-22 Thread Jimmy
onnection = same host and same username), regardless of using connect() or pconnect(). but then someone make a small testing, by doing 2 same pconnect() and printing the returned link_identifier, which surprisingly return 2 different id. -- Jimmy There is no greater waste

[PHP] strange behaviour of mysql_pconnect()

2002-01-22 Thread Jimmy
different id) the question is, why pconnect() print different resource id, whereas connect() print the same one? -- Jimmy You can't quicken the growing of a plant by pulling the leaves -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: [PHP] Best way to get the remote IP address?

2002-01-21 Thread Jimmy
he "register_global" setting is off. otherwise, it's wiser to use getenv('REMOTE_ADDR') instead of $REMOTE_ADDR directly. -- Jimmy Failure doesn't mean you'll never make it. It just means it may take longer. -- PHP General Mailing Lis

Re: [PHP] Error notification and pretty error page

2002-01-21 Thread Jimmy
being parsed/executed. you always have to pass this __FILE__ and __LINE__ because PHP dont have the ability to "backtrack" from which file/line a function is called :( and dont forget to add "@" sign in front of the PHP's function, to sur

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
m lousy at reading someone's code...:) nice discussion, Neil :) -- Jimmy Buy Land. They've stopped making it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Help !! Mail Function Problem (Newbie)

2002-01-16 Thread Jimmy
ight be stands for "number of recipients", and it is showing 0. So maybe you should pass the email address in proper string (enclose it inside quote), like this: mail("[EMAIL PROTECTED]", "Subject", "Line 1\nLine 2\nLine 3"); -- Jimmy

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
his case and never looked for the last_insert_id, Exactly. That's why in the first posting (read the first paragraph above), I told him to exec last_insert_id() or mysql_insert_id() ONLY when the insert query is SUCCESSFUL. -- Jimmy When you lose, don't

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
he previous/last INSERT query, so that if the INSERT fails then mysql_insert_id() will intelegently return the correct value. just my 1 cent -- Jimmy The average woman would rather have beauty than brains, because the average man can see better than he can think. -- P

Re: [PHP] WDDX...

2002-01-16 Thread Jimmy
btw, it's interesting that you can use WDDX to help you update your website easily. would you mind sharing with us how? Thanks -- Jimmy The past is present in the future -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Lazy evaluation?

2002-01-16 Thread Jimmy
why you dont want lazy evaluation in "AND"? > if i have a statement like > if (($a == 'a') && ($b == 'b')) blahblahblah(); > and, $a != 'a'. > why should php even look at the value for $b while evaluating this line? i believe PHP implement l

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
revious 'session', not current 'session'. to prevent this, you should call last_insert_id() only when your INSERT query executed succesfully. -- Jimmy Right thinking leads to right living -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Time calculation after UNIX

2002-01-16 Thread Jimmy
n support date range from '1000-01-01' to '-12-31'. and for calculation, you can use MySQL function: ADDDATE() or SUBDATE() -- Jimmy Bigamy is having one spouse too many. Monogamy is the same. -- PHP General Mailing List (http://www.php

Re: [PHP] StripSlashes() & quotes in text boxes

2002-01-16 Thread Jimmy
ewhere else other than browser, for example email or printing. -- Jimmy All work and no pay makes a housewife. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] Lazy evaluation?

2002-01-16 Thread Jimmy
Hi Alexander, > Does PHP support lazy evaluation? Meaning that if: Yes, it does. -- Jimmy Got a dictionary? I want to know the meaning of life. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] Including a REMOTE FILE using include (php function)

2002-01-15 Thread Jimmy
Hi louie, > Im trying this little example of mine, Im trying to include > a file from a remote webserver but could not possibly get > it to work.. could be because the url fopen wrapper is disabled. check the value of this setting in your php.ini file: allow_url_fopen

Re: [PHP] Content

2002-01-15 Thread Jimmy
request, all the variable will be in the body/content part, so it is correct. -- Jimmy To Jazz or not to jazz. That's the question. -William Saxpeare- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Content

2002-01-15 Thread Jimmy
$ApplicationName if it show the correct value, then you're lucky. otherwise, you have to parse the HTTP request. parse_str($QUERY_STRING); // after this you will have the $NotificationProtocolVersion variable -- Jimmy A woman is like your shadow; follow her, she fl

Re: [PHP] unable to copy and chmod

2002-01-14 Thread Jimmy
you login to ftp as nobody ;)) > I can't change the file owner too. only root can chown You need root access to fix your problem...or re-upload your file using ftp, not php. -- Jimmy A diplomat is man who always remembers a woman's birthday but never her ag

Re: [PHP] help using ereg_replace()

2002-01-14 Thread Jimmy
h position from behind, using substr_replace() function. anyway if you insist on using regex: preg_replace("/(\d{3})(\d{3})(\d{4})/", "(\\1) \\2-\\3", $arr); -- Jimmy Everything loses its value when overly used, including love. -- PHP Gene

Re: [PHP] Piping data into a select box

2002-01-12 Thread Jimmy
February // // NOTE: This will only create the tag, without the tag // while ( list($key,$value) = each($key_value) ) { if ($key==$set) {$var.="$value";} else {$var.="$value";} } return $var; } ?> -- Jimmy

Re: [PHP] preg_replace help

2002-01-11 Thread Jimmy
"\\1", $myLink); -- Jimmy People are like clouds, all unique. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] eregi and alfa numeric characters.

2002-01-11 Thread Jimmy
id char in the pattern, and dont forget to escape the char which has special meaning in regex. -- Jimmy Money is what you make it - a servant or a master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: [PHP] ereg

2002-01-10 Thread Jimmy
Hi Kunal, > ereg("(.*)", $lineofhtml, $output); ereg("([^]*)", $lineofhtml, $output); -- Jimmy It's not what you have in your life that counts, but who you have in your life -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Object Copying

2002-01-10 Thread Jimmy
Hi Ken, > As we all know, this copies an object in PHP: > $obj2 = $obj1 > Preferable a way to fix PHP not to copy the object, but the reference. this will do want you want: $obj2 = &$obj1; -- Jimmy Always keep a cool head and a warm heart --

Re: [PHP] Test if picture exists then load.

2002-01-10 Thread Jimmy
e does not exist, open default image } -- Jimmy Bigamy is having one spouse too many. Monogamy is the same. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

Re: [PHP] weird fopen problem

2002-01-10 Thread Jimmy
ooks like you try to open a file outside the allowed direcory tree. check your "open_basedir" setting in php.ini config file. -- Jimmy Politics SUCKS !! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: [PHP] Interesting Problem

2002-01-09 Thread Jimmy
at works. My idea was to create two querys, but the results in from your table definition i didn't see any relation between those two tables, so most probably it doesnt make sense to make a "join" operation. just do it in 2 query, one for each table. -- Jimmy ~~

Re: [PHP] inserting a file into MSSQL

2002-01-09 Thread Jimmy
reason and left with no option other than store the file in DB. -- Jimmy Brigands will demand your money or your life, but a woman will demand both. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-01-08 Thread Jimmy
Hi Dan, > $parent_sql = "SELECT * FROM categories ORDER BY sort_order ASC"; > $parent_result = mysql_query($parent_sql); change the line to this one and run it again to see the error: $parent_result = mysql_query($parent_sql) or die(mysql_error()); -- Jimmy ~~

Re: [PHP] Running php in background?

2002-01-07 Thread Jimmy
Hi James, > Ideally, I would like to run the job in the background anyway. Can > that be done? read this: http://www.php.net/manual/en/function.exec.php and search for 'background' keyword. -- Jimmy Brigands will demand your money or your life,

Re: [PHP] take links from url

2002-01-07 Thread Jimmy
Hi Alawi, > I want to take string between tags in put it > in variable preg_match ("|([^]*)|i", $str, $match); $match[1] will contain the string between -- Jimmy Fate shuffles the cards and we play with them -- PHP General Mailing List (ht

Re: [PHP] HOWTO USE : htmlspecialchars

2002-01-07 Thread Jimmy
to use this function. -- Jimmy Leave loved ones with loving words, it may be the last time you see them -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the l

Re: [PHP] strip from

2002-01-07 Thread Jimmy
Hi WB, > Hi i need to strip out the up to the tag. > preg_replace( "/" , " " , $body ); try this: preg_replace( "/[^]*]*>/" , " " , $body ); -- Jimmy Your mind is like parachute. It works best when it is open.

Re: [PHP] no reply-to header?

2002-01-06 Thread Jimmy
Hi Martin, > I thought that if there's no "reply-to", then email clients will use the > "from" as the reply to ?? yes, correct, but the "from" is the address of the original sender, so when someone hit reply, the email will goes to the original sender

[PHP] no reply-to header?

2002-01-06 Thread Jimmy
Hi All, I just realize there's no reply-to header in this mailing list. No wonder I never receive my own email when I reply to any mail here. Does it purposely set this way? Or is this a glitch? -- Jimmy Mistakes show us what we need to learn. -- PHP Ge

Re: [PHP] How to read/write form/into certain place in a text file

2002-01-06 Thread Jimmy
t; what will happen if another one will open and write the same file? php doesnt handle file locking automatically, so i think it would depend on the OS. if you want to handle file locking, read about flock(). -- Jimmy God is greater than your greatest problem -- PHP Gen

Re: [PHP] Mysql Curdate problem

2002-01-02 Thread Jimmy
Hi Andras, > $aresult=mysql_query("select * from orders WHERE (a3 >= CURDATE()-$datec)" > ,$db); what's the value of $datec? integer 7 or 14? if so then try to change it to this: "interval 7 days" -- Jimmy Love deeply and passion

Re: [PHP] Supplied argument is not a valid PostgreSQL result resource

2001-12-26 Thread Jimmy
Hi James, > I've been getting the following error: > Warning: Supplied argument is not a valid PostgreSQL > result resource in dbasefunctions.php on line 87 that's because your SQL query return nothing, but you try to fetch a row. -- Jimmy

Re: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread jimmy elab
Jason Murray wrote: > > I stand by my original statement. After someone requires PHP to > output a multi-sheet Excel file, the code to do it will then > be "out there". :) Ah, this is a nice cryptic answer! I need it -more or less- ;-) Why? This is why: http://nijb.nl/planning.php (It will op

Re: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread jimmy elab
David Robley wrote: > > s/require it be done/want to do it Count me in. Starting somewhere in December. An RTF module will be first, though! I'll post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread jimmy elab
Matthew Loff wrote: > > http://www.wotsit.org/search.asp?page=49&s=ALLFILES > > http://homepage.tinet.ie/~jmcnamara/perl/WriteExcel.html This guy really has loads of remarkable links, or have you?! Got any more? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

[PHP] Re: PHP4 sessions and Netscape 4.75/Mac

2001-11-19 Thread jimmy elab
> Dennis Moore wrote: > > > Any ideas or clues? > Turn on cookies -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: Quiz questions on PHP

2001-11-18 Thread jimmy elab
Srinivasan Ramakrishnan wrote: > I'm preparing a quiz on PHP for some programmers. I was wondering if there > are good questions that I can use instead of inventing my own. How about: "Give some examples of relevant questions that one can pose in news://php.general?"; gosh... -- PHP General Ma

[PHP] Re: alzheimers and confused

2001-11-17 Thread jimmy elab
de Morgan and Boole, not Alzheimer nor Confusius !(A OR B) = (!A) AND (!B) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Parse POST-Data myself

2001-11-16 Thread jimmy elab
Jimmy Elab wrote: > When your not positioned straigth at your keyboard a ';' may occasionally turn into an 'l'... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: [PHP] Parse POST-Data myself

2001-11-16 Thread jimmy elab
Andrew Forgue wrote: > > By putting brackets after the variable name [] in a form element > > > > BLAAACH!!! Please add an index variable, as fields that you don't need wil NOT be posted, so when you have several fields for one single dataset, you might end up with the wrong set of indexes.

[PHP] Re: Frames and Sessions

2001-11-13 Thread jimmy elab
Michael Hall wrote: > can't figure out how I'm going to maintain a session across the three > seperate HTML files in the frameset. You don't! PHP and your browser will do it for you. It doesn't matter whether you're in frames or not. All that matters is the cookie that is automagically generated

  1   2   >