Hello,
Quite good and short answer to your question:
http://answers.google.com/answers/threadview?id=207071
--
Domas Juknevicius
DuSTiN KRySaK wrote:
> Novice PHPer, and i am wondering why one would use a function instead of
> a class (or object)? They seem to server very similar in use.
>
> Th
Novice PHPer, and i am wondering why one would use a function instead of a
class (or object)? They seem to server very similar in use.
All depends on the specific use and situation - pros and cons by both
models, for speed and performance, I mostly use optimized functions sorted
out in structure
I was wonderiing how I would go about something like this
$class = 'classname';
return $class::staticMethod(); , not happy isnt working. Any ideas
lemme know.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Novice PHPer, and i am wondering why one would use a function instead
of a class (or object)? They seem to server very similar in use.
The way I see it, is a function if for repeated use in a project
specific manner, where as a class could be used for many projects.
is this correct?
Although on
None of this makes any sense. PHP is a server-side request-based
language. If you want to put a delay in between things on a request,
call sleep(), but it is still just a single request which is going to
take a finite amount of time to run.
The correct way to send a bunch of emails is to queu
hello,
i've been searching for a 'setInterval' function in php and haven't had
much luck.
in actionscript (which is similar to php) you can make a function which
calls another function at a set interval, and i was keen to do this with
php for a mail script so that rather than sending 500 emails
Leif,
Amen, amen and amen.
Miles
At 08:52 PM 4/3/2005, Leif Gregory wrote:
Hello -{,
Sunday, April 3, 2005, 4:51:29 PM, you wrote:
RB> What do y'all charge when you do sites for people ??? ... In the
RB> past I've only done pro-bono work (because they usually don't
RB> require much work, so it's no
I've checked it. While IE open, I've turned off my modem then on.
With a new IP, I've passed.
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Maybe the captcha string is stored based on ip address
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
This url is the key. You may insert this into your page at your own server
(event at your local machine) then send related form fields to remote site and
viola!
It accepts the code!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i am pretty new in all of this, but i added this sites to restricted web
sites in IE settings, so now it doesnt work at all
"Ryan A" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> check up on CAPTCHA on google or your favourite search engine
>
> -Ryan
>
>
> On 4/3/2005 11:35:03 P
did anyone tryed to paste this in address
https://nokiags.wdsglobal.com/imageservlet
"Ryan A" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> check up on CAPTCHA on google or your favourite search engine
>
> -Ryan
>
>
> On 4/3/2005 11:35:03 PM, nime ([EMAIL PROTECTED]) wrote:
>> A
Hello -{,
Sunday, April 3, 2005, 4:51:29 PM, you wrote:
RB> What do y'all charge when you do sites for people ??? ... In the
RB> past I've only done pro-bono work (because they usually don't
RB> require much work, so it's not a problem getting it done while
RB> working on other projects), but I've
Hi, i have a strange problem. In my site i have to counters for file
downloads. One is general, other is weekly. On the main page i
display a list sorted according to weekly hits. The problem is there:
i give this prompt mysql_query("SELECT * FROM table ORDER BY
weekly_hits DESC LIMIT 15") to displ
On Sun, 2005-04-03 at 16:51 -0600, -{ Rene Brehmer }- wrote:
> Hi gang
>
> Sorry for asking this question here, but I don't know where else to ask.
> And Goole'ing didn't help me much.
>
> My father-in-law has a friend in Alaska (and I'm in Canada) that needs a
> website done. Not sure what kin
nime wrote:
A kind of :-)
https://nokiags.wdsglobal.com/bookmarkmanual?contractId=191&phoneId=408&captchaEnabled=true&step=details.vm&bookmarkManualName=&bookmarkManualURL=&captchaKey=&mobileNumber=&siteLanguageId=118
I mean what sort of data remembers the pass code here?
I see no hidden input val
Hi gang
Sorry for asking this question here, but I don't know where else to ask.
And Goole'ing didn't help me much.
My father-in-law has a friend in Alaska (and I'm in Canada) that needs a
website done. Not sure what kinda site he wants done yet, or how much he
needs me to do for him (like webs
Hi,
Monday, April 4, 2005, 2:58:36 AM, you wrote:
RK> Please excuse the length and complexity of this post. I am facing a
RK> complicated problem and need to find a solution. Also, I have posted this
RK> on both PHP and MySQL boards so please overlook the possibly slightly
RK> off-topic subject.
I know the mechanism. Did you examine the url? In this situation I wonder how
they did coz
there is no cookie/no session cookie/no hidden input field.
https://nokiags.wdsglobal.com/bookmarkmanual?contractId=191&phoneId=408&captchaEnabled=true&step=details.vm&bookmarkManualName=&bookmarkManualURL=
I've already checked CAPTCHA thing. I have no clue how server remembers
the image. Imagine that you open two browser pages then go to captcha page.
You see two diffrerent numbers at both browsers. How does server decide which
connection established with two or more different browser pages (in this
nime wrote:
A kind of :-)
https://nokiags.wdsglobal.com/bookmarkmanual?contractId=191&phoneId=408&captchaEnabled=true&step=details.vm&bookmarkManualName=&bookmarkManualURL=&captchaKey=&mobileNumber=&siteLanguageId=118
I mean what sort of data remembers the pass code here?
I see no hidden input val
check up on CAPTCHA on google or your favourite search engine
-Ryan
On 4/3/2005 11:35:03 PM, nime ([EMAIL PROTECTED]) wrote:
> A kind of :-)
>
>
>
> https://nokiags.wdsglobal.
>
com/bookmarkmanual?contractId=191&phoneId=408&captchaEnabled=true&step=detai
ls.
>
vm&bookmarkManualName=&bookmarkMan
On Sat, Apr 02, 2005 at 01:08:30PM +0200, Marek Kilimajer wrote..
> >If anybody (with more experience) than I thinks I am wrong...please
> >tell me so and most prolly go with PEARs solution, another one high
> >on my list is the ADODB as I remember someone else talking about it
> >on the lis
Well take a look here http://www.php.net/base64_encode and here
http://www.php.net/base64_decode , so before you put the image in
database encode it first to get a string (with base64_encode), and when
you pull the image from the MySQL database, after you get the string
value decode it with bas
A kind of :-)
https://nokiags.wdsglobal.com/bookmarkmanual?contractId=191&phoneId=408&captchaEnabled=true&step=details.vm&bookmarkManualName=&bookmarkManualURL=&captchaKey=&mobileNumber=&siteLanguageId=118
I mean what sort of data remembers the pass code here?
I see no hidden input value/url val
William Stokes wrote:
> I was under impression that php automatically gives values to
image_type and
> image_name if one tries to upload image from a web form if the name
of the
> uploaded image field is image.
You mean it automatically gives values to variables $image_type and
$image_name ? No
[EMAIL PROTECTED] wrote:
if((eregi("[^a-zA-Z0-9]",$GP[sifre])
I think that the ^ anchor is your problem, it shall be out of the brackets :
if (eregi("^[a-zA-Z0-9]+$", $GP['sifre'])) echo 'true';
else echo 'false';
(the above is tested and works perfect)
P.S. Take a look here
http://www.php.net/man
nime wrote:
Is there any way to do a human check without sending any url/session
cookie/hidden input value
from server to browser?
Do you mean telepathy?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
FIND_IN_SET(str,strlist)
Returns a value 1 to N if the string str is in the string list
strlist consisting of N substrings. A string list is a string composed
of substrings separated by `,' characters. If the first argument is a
constant string and the second is a column of type SET, the
FIND_I
Is there any way to do a human check without sending any url/session
cookie/hidden input value
from server to browser?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Read: http://php.net/manual/en/function.readdir.php
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycrof
On Apr 3, 2005 3:32 PM, p80 <[EMAIL PROTECTED]> wrote:
> I have a folder let's call it "/rep" and would like to list all files in it
> and for each file $f I would like to check if "$f == $some_value" and if it
> does "echo $f" any idea how to do that?
>
> thanx in advance
>
> Pat
See the direct
I have a folder let's call it "/rep" and would like to list all files in it
and for each file $f I would like to check if "$f == $some_value" and if it
does "echo $f" any idea how to do that?
thanx in advance
Pat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
http://www.downloadfreetrial.com/scripts/php/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ryan A schreef:
> Hi,
> I have been searching the archives with little luck so I need a reminder
> here,
> I remember a little while ago someone asked how to implement the "users
> online" functionality
> that some sites have...now i have been asked to do exactly that but with a
> small twist:
> i
Hi,
I have been searching the archives with little luck so I need a reminder
here,
I remember a little while ago someone asked how to implement the "users
online" functionality
that some sites have...now i have been asked to do exactly that but with a
small twist:
instead of displaying "xx number
[EMAIL PROTECTED] wrote:
I m trying to check $GP[sifre] variable, $GP[sifre] must consist of alpha
numeric chars only. here, how I check the variable:
Try this:
if(eregi("^[a-zA-Z0-9]+$",$GP[sifre]))
The above say that between the beginning of the string "^" and the end
of the string "
Please excuse the length and complexity of this post. I am facing a
complicated problem and need to find a solution. Also, I have posted this
on both PHP and MySQL boards so please overlook the possibly slightly
off-topic subject.
I have got one table that contains personal information about us
I'd like to be able to "timeout" a user if they are inactive for X
minutes. Say, if they walk away from the browser leaving sensivive data
in plain view.
Is there any reason that using the header() function as below wouldn't
be a reliable way to do this (albeit user-unfriendly)? It "works for
you'd be better off with something like
if(preg_match('#^[a-z0-9]+$#i', $GP['sifre'])) {
echo 'contains only alphanumeric chars';
} else {
echo 'contains characters which are not alphanumeric';
}
- tul
[EMAIL PROTECTED] wrote:
I really dont know :)
<[EMAIL PROTECTED]> wrote in mess
Jason Barnett wrote:
> OK, so I built php-5.1.0-dev from source using cygwin / gcc.
>
> - buildconf ran ok
> - configure ran ok
> - make ran ok
> - make install failed. Output was:
>
> Installing PHP SAPI module: cgi
> Installing PHP CGI into: /usr/local/bin/
> Installing PEAR environment:
I really dont know :)
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I m trying to check $GP[sifre] variable, $GP[sifre] must consist of alpha
> numeric chars only. here, how I check the variable:
>
> if((eregi("[^a-zA-Z0-9]",$GP[sifre])
>echo 'true';
> else
>echo 'false';
Colin Ross wrote:
> Now, as far as I know though, there are still issues with Apache 2 and
> PHP-libraries, correct?
>
Yes, there are potential threading problems unless you use the pre-fork
version of Apache2.
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
S
i'm not familliar with regular expresions but i think that ^a-z - means
that variable must start witx a-z characters
you can chek it here:
http://www.php.net/manual/en/reference.pcre.pattern.syntax.php
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I m trying to check $GP[sifre
I m trying to check $GP[sifre] variable, $GP[sifre] must consist of alpha
numeric chars only. here, how I check the variable:
if((eregi("[^a-zA-Z0-9]",$GP[sifre])
echo 'true';
else
echo 'false';
It works if variable starts with alphabetic chars only.
for example this returns 'ok'
$GP[
I realy dont understand what are you saying :)
"William Stokes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I was under impression that php automatically gives values to image_type
> and image_name if one tries to upload image from a web form if the name of
> the up
germ germ wrote:
In my HTML file the HREF tag is: google.com
When clicked, the link in then directed to:
http://10.10.1.5/test-a/ref/www.google.com
Basically it seems like it appends the link to the URL
path.
Yes, guess you have a base tag on the page, which reads
http://10.10.1.5/test-a/ref. Pl
same thing for inserting, or similar
but youl have to read file s
something like:
"J.F.Kishor" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I am having a problem in storing and selecting images in and
> from postgres.
>
> My requirement is I have to select the image fro
i have done this before, but with mysql
here is the way:
now your link in other file , whitch will display a picture, would be
"J.F.Kishor" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I am having a problem in storing and selecting images in and
> from postgres.
>
>
Hi,
I have an VPS server wich runs cPanel. My PHP version currently
installed is 5.0.3 and had no problems until now.
I've been trying to upgrade my PHP version from 5.0.3 to 5.0.4 with no
success. I've tried doing it with WHM and also tried to do it manually
with ./configure and make.
Always I'
Note: forwarded message attached.
Do you Yahoo!?
Make Yahoo! your home page
--- Begin Message ---
hi..i wanna ask some question regarding the phpMyadmin installation on windows 2000. I am using IIS as the server. so far, when i searched in the internet on how to install phpMyadmin all i got
Supersky wrote:
Dear Richard,
Thanks.
After I swaped to PHP4 option in the preference of Zend Studio, I can
connect to the database. However, other problems arised. The problem might
be that my PHP version installed is 5.0.3 indeed.
You should post this stuff at the My Zend center at zend.com --
germ germ wrote:
In my HTML file the HREF tag is: google.com
When clicked, the link in then directed to:
http://10.10.1.5/test-a/ref/www.google.com
Basically it seems like it appends the link to the URL
path.
This sounds like a base href problem; nothing related to php or apache.
--
PHP General Mai
is there any way to edit and resize animated gifs in PHP?
with imagegif() i only get a static image
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
53 matches
Mail list logo