"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
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
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
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
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
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
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
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
>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
> 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
> 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
> 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
> 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
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
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
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
> 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
> 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
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
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
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
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
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
#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
(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
`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
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
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
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
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
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
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
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
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
= 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.
35 matches
Mail list logo