[PHP] Re: Newsgroup Server?

2003-03-04 Thread Jome
Clete Rivers Blackwell 2 wrote: > Is there a newsgroup server for this mailing list? news.php.net -- Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general@lists.php.net

2003-03-08 Thread Jome
James Taylor wrote: > Where can I read more about this? I'm not sure that I understand why > 4 & 4 == 4. http://se.php.net/manual/en/language.operators.bitwise.php Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [RegExp] extracting anchors

2003-03-12 Thread Jome
can > give me some advise. > > Jens This is one lousy solution but hey - it's a solution after all; you can simply remove all tags containing href before doing the preg_match_all()-call, something like this below should do it I think. $src = preg_replace('/]*?href=[^>]*?>/is', '', $src); Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP newbie ... function with several returns ?

2003-03-15 Thread Jome
ble2 // yields: "I'm changed also!!" > > I try to convert this to PHP, and I'm getting stuck. I'm sure > there's a kind of function that can do this. > > Any ideas? VB defaults to pass by reference while PHP defaults to pass by value. Read more at: http://www.php.net/manual/en/language.references.pass.php Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] counting words.

2003-04-06 Thread Jome
ds = explode(' ', strip_tags($str)); > $count = count($words); I believe substr_count() is faster than that method. http://www.php.net/manual/en/function.substr-count.php Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Date() Problem

2002-07-27 Thread Jome
not run such a timestamp as the above. I recommend that you have a look at http://www.mysql.com/doc/D/a/Date_and_time_functions.html which describes the built-in functions for date-handling in MySQL. A function to look at could be DATE_FORMAT(). Regards, Jome -- PHP General Mailing Lis

[PHP] Re: Date() Problem

2002-07-27 Thread Jome
`type`,`views` FROM `resources` WHERE `id` = $id Regards, Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Public Scripts in a commercial product

2002-07-29 Thread Jome
(and free of charge) if you can use it in your commercial product. -Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Encrypting Passwords - Is it really necessary??

2002-07-29 Thread Jome
#x27;s almost impossible to fully protect your site from abuse but you could for example implement something like max one new password per day. Another way could be to add an additional detail, like postal code or something which is easy for user to determine but (probably) not for other people. M

[PHP] Re: Auto Increment Problems....

2002-07-29 Thread Jome
o INSERT INTO the first 'hole' it finds in the ID > column?? It's possible but not recommended, you can just search through the rows and see where there's a hole. -Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: OT - javascript question..

2002-07-29 Thread Jome
ng lists if you want to find javascript-gurus. -Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP4 and MS Excel?

2002-07-30 Thread Jome
amp;q=data+from+excel+ph p Google is your friend. -Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: e-mail to mysql database?

2002-08-12 Thread Jome
web for a script to > do so I havent found it, could any of you help, as it must be out there! > Thanks for any helpfull contribution. Hi Frank, if you got the above in a string, your best shoot is to use explode, for example like below: Read more on php.net/explode, there's al

[PHP] Re: Can i send post variable thur header?

2002-08-19 Thread Jome
ge without a form. Check out the URL below. http://www.faqts.com/knowledge_base/view.phtml/aid/12039/fid/51 -Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: turn register_globals on

2002-09-08 Thread Jome
> Hello I am working on a PHP server which has register_globals off. In my > script is there anyway to turn it on, just for my script? ini_set("register_globals", 1); at the top of your script. Jome -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Re: turn register_globals on

2002-09-08 Thread Jome
> So, is this allowable to set in user scripts? Or is the dosumentation > correct in saying it cannot? My bad, you (and the documentation) are correct. :-) Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Count in PHP

2002-09-09 Thread Jome
you can use SELECT COUNT(*) FROM table like this: The two zeros at the end means that mysql_result is to fetch the first row, the first column of the result. (Also, it'll be much faster than mysql_num_rows(mysql_query("SELECT * FROM table")) Jome -- PHP General Mailing List (htt

[PHP] Re: Text from web form

2002-09-11 Thread Jome
gt; don't see the filled in contents in the email message. I don't see the what > the person filled out. But I see "Name:" ane "Message:" > > Any ideas? Could this be an register_globals issue? Read on http://www.php.net/manual/en/language.variables.pred

[PHP] Re: Image resolution and php

2002-09-18 Thread Jome
ctive dimensions in inches. http://www.php.net/manual/en/function.getimagesize.php I'm sligthly confused about what you're looking for, but the above URL *could* be something. Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: image wrapper - graphs

2002-09-30 Thread Jome
> Does anyone know of image creation libraries that will generate graphs? http://www.aditus.nu/jpgraph/ Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: stuck n00b

2002-10-01 Thread Jome
> echo $HTTP_SERVER_VARS['userName']; > ?> Make it $_POST['userName'] (or $HTTP_POST_VARS['userName'], but that's deprecated). Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Math problem (222)

2002-10-02 Thread Jome
> What is wrong with it? Any help at all is greatly apreciated. Consider the differences between my code below and yours. And as far as I can see, there's no combination higher than eleven, lower than 987 which doesn't work out. Jome -- PHP General Mailing List (http://www

[PHP] Re: sending post without a form

2002-10-05 Thread Jome
> Did the individual trying to send post(ed) data without the use of a > form succeed? I tried doing this before and didn't have any luck with > it... And I eventually gave up. Check out Rasmus' solution: http://www.php-faq.com/postToHost.html Jome -- PHP General

[PHP] Re: IP addresses

2002-10-28 Thread Jome
>I've been away for a while but I'm back and have a question about IP addresses. >How do I retrieve / capture a users IP? I need to have it to process electronic payments. $_SERVER['REMOTE_ADDR'] Jome -- PHP General Mailing List (http://www.php.net/) T

[PHP] Re: Minutes to hours/days/monthes/years?

2002-11-17 Thread Jome
hours"; } > if ($minutes) { $string[] = ( $minutes == 1) ? "1 minute" : "$minutes > minutes"; } > return implode(", ",$string); > } I wrote a solution to the same problem, available at http://www.phpcoded.com/?DO=viewCode&ID=88 I do b

[PHP] Re: Expert Paid Help Needed

2002-11-19 Thread Jome
rs out there that > would be willing to help? If so, please send me privately the following: I think you would help yourself some by specifying what kind of work this is. Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: recusive functions

2002-07-13 Thread Jome
not just a function. Read more on http://php.net/exit -Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Animated GIFs

2002-07-14 Thread Jome
ck which has a function called combine, to create animated gifs. ImageMagick can be found on this URL: http://www.imagemagick.org/ -Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script Execution Time

2001-07-19 Thread Jome
= explode(" ",microtime()); return ((float)$usec + (float)$sec); } $time_start = getmicrotime(); ..and this at the end: $time_end = getmicrotime(); $time = $time_end - $time_start; $foo = round ($time, 2); echo "Execution took $foo seconds."; Hope this helps.

[PHP] Sessions and linking

2001-07-19 Thread Jome
link something like theinbox.php?PHPSESSID=thesessionid - it won't work tho. I use session_start() in theinbox.php Anyone who has any idea about what I'm doing wrong? Should I define the session id for session_start or something? Best regards, Jome -- PHP General Mailing List (http://w

Re: [PHP] mail with html

2001-07-23 Thread Jome
ail("email","subject",$content,"From: someone@someone\nMime-Version: 1.0\nContent-Type: text/html; charset=\"iso-8859-1\"\nContent-Transfer-Encoding: quoted-printable\n"); ?> This encodes the content so email readers like Microsoft Outlook can read th

[PHP] Speeding up MySQL querys

2001-07-23 Thread Jome
eyword%' I've tried setting INDEX but it didn't work out since I'm using BLOB-fields. Is there any other way than using INDEX? Thanks, Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: [PHP] IMAP and Attachments

2001-07-24 Thread Jome
ted with some extra code though. For downloading you use the same kind of thing, I guess it slightly more advanced and you have to do some decoding of the message. Best regards, Jome (looking for php-jobs, coding for $15/hour) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

Re: [PHP] Sending alots of mail

2001-08-16 Thread Jome
roblem with max execution time if you're using a bad mailserver but it can be solved by simply extending the max execution time in php.ini or in just the specific script. Best regards, Jome - Original Message - From: "Jimmy Bäckström" <[EMAIL PROTECTED]> To: <[E

Re: [PHP] regexp appears to be faulty!?

2004-02-24 Thread Jome
"Henry Grech-Cini" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Thanks for that Mike, > > I was getting lost. > > Is there anyway to say > > Any characters excluding the sequence > > so I could do something like > > /]*)>(.* whilst not <\/fieldset>)<\/fieldset>/i > > Or altern