[PHP] help with GD

2005-04-03 Thread andreja
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

Re: [PHP] link problem - Apache or PHP?

2005-04-03 Thread Burhan Khalid
germ germ wrote: In my HTML file the HREF tag is: A HREF=www.google.com TARGET=_blankgoogle.com/A 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

Re: [PHP] Cannot connect to database when using Zend studio debugger

2005-04-03 Thread Burhan Khalid
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 --

[PHP] Fwd: installing phpMyAdmin on Windows 2000 using IIS Server

2005-04-03 Thread wan nordiana Wan Abd Kadir
Note: forwarded message attached. Do you Yahoo!? Make Yahoo! your home page ---BeginMessage--- hi..i wanna ask some question regarding the phpMyadmin installationon 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

[PHP] Problems compiling PHP-5.0.4 with cPanel.

2005-04-03 Thread Jordi Canals
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

[PHP] Re: How to insert and select images from postgres db

2005-04-03 Thread andreja
i have done this before, but with mysql here is the way: ? // you'l have to make file imageCreator.php // with this content // do not leave any content or blan spaces befor ? // at he begining of the code!!! // because of header information function createImageFromDatabase($someID){ $host

[PHP] Re: How to insert and select images from postgres db

2005-04-03 Thread andreja
same thing for inserting, or similar but youl have to read file s something like: ? $file = path/file.jpg; $handle = $fopen ($file, r); $size = filesize($file, $handle); $content = fread($handle, $size); $content = mysql_escape_string($content); // and now you can insert it into database ?

Re: [PHP] link problem - Apache or PHP?

2005-04-03 Thread BAO RuiXian
germ germ wrote: In my HTML file the HREF tag is: A HREF=www.google.com TARGET=_blankgoogle.com/A 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

[PHP] Re: image_type

2005-04-03 Thread andreja
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 uploaded

[PHP] eregi problem

2005-04-03 Thread emre
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'

[PHP] Re: eregi problem

2005-04-03 Thread andreja
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]

Re: [PHP] PHP 5 Status

2005-04-03 Thread Jason Barnett
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

[PHP] Re: eregi problem

2005-04-03 Thread andreja
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'; It

[PHP] Re: Signal 11 - php-5.0.1-dev - cygwin

2005-04-03 Thread Jason Barnett
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:

[PHP] Re: eregi problem

2005-04-03 Thread M. Sokolewicz
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

[PHP] Using header(0 to manage user inactivity

2005-04-03 Thread C Drozdowski
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 me

[PHP] Multiple Select Field

2005-04-03 Thread Robb Kerr
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

Re: [PHP] eregi problem

2005-04-03 Thread BAO RuiXian
[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 $,

[PHP] users online

2005-04-03 Thread Ryan A
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 of

Re: [PHP] users online

2005-04-03 Thread Ewout de Boer
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: instead of

[PHP] very good resource

2005-04-03 Thread andreja
http://www.downloadfreetrial.com/scripts/php/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] (noob) listing folder content

2005-04-03 Thread p80
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:

Re: [PHP] (noob) listing folder content

2005-04-03 Thread Justin Gruenberg
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 directory functions:

[PHP] Re: (noob) listing folder content

2005-04-03 Thread Jason Barnett
Read: http://php.net/manual/en/function.readdir.php ?php $some_value = 'some_value'; $dir = './rep'; $fh = opendir($dir); while(false !== ($file = readdir($fh))) { if ($file == $some_value) { echo $file; } } ? -- Teach a man to fish... NEW? |

[PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread nime
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

Re: [PHP] Multiple Select Field

2005-04-03 Thread Marek Kilimajer
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

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread Marek Kilimajer
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

Re: [PHP] eregi problem

2005-04-03 Thread Josip Dzolonga
[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

Re: [PHP] image_type

2005-04-03 Thread Josip Dzolonga
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,

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread nime
A kind of :-) https://nokiags.wdsglobal.com/bookmarkmanual?contractId=191phoneId=408captchaEnabled=truestep=details.vmbookmarkManualName=bookmarkManualURL=captchaKey=mobileNumber=siteLanguageId=118 I mean what sort of data remembers the pass code here? I see no hidden input value/url

Re: [PHP] How to insert and select images from postgres db

2005-04-03 Thread Josip Dzolonga
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

Re: [PHP] Recommendation for a MySql wrapper class

2005-04-03 Thread Kevin Coyner
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 list some

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread Ryan A
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=191phoneId=408captchaEnabled=truestep=detai ls.

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread Josip Dzolonga
nime wrote: A kind of :-) https://nokiags.wdsglobal.com/bookmarkmanual?contractId=191phoneId=408captchaEnabled=truestep=details.vmbookmarkManualName=bookmarkManualURL=captchaKey=mobileNumber=siteLanguageId=118 I mean what sort of data remembers the pass code here? I see no hidden input value/url

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread nime
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

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread nime
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.

Re: [PHP] Multiple Select Field

2005-04-03 Thread Tom Rogers
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. RK

[PHP] What's the going rate for making websites ?

2005-04-03 Thread -{ Rene Brehmer }-
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

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread Marek Kilimajer
nime wrote: A kind of :-) https://nokiags.wdsglobal.com/bookmarkmanual?contractId=191phoneId=408captchaEnabled=truestep=details.vmbookmarkManualName=bookmarkManualURL=captchaKey=mobileNumber=siteLanguageId=118 I mean what sort of data remembers the pass code here? I see no hidden input value/url

Re: [PHP] What's the going rate for making websites ?

2005-04-03 Thread Robby Russell
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 kinda

[PHP] A strange problem..

2005-04-03 Thread JoShQuNe \(TR\)
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

Re: [PHP] What's the going rate for making websites ?

2005-04-03 Thread Leif Gregory
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

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread andreja
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 kind of

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread andreja
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 PM, nime

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread nime
This url is the key. You may insert this img 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

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread nime
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,

Re: [PHP] What's the going rate for making websites ?

2005-04-03 Thread Miles Thompson
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 not

[PHP] php - set interval

2005-04-03 Thread Andrew
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

Re: [PHP] php - set interval

2005-04-03 Thread Rasmus Lerdorf
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

[PHP] functions vs classes

2005-04-03 Thread DuSTiN KRySaK
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

[PHP] How to call a static class and method dynamically

2005-04-03 Thread Dan Rossi
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

Re: [PHP] functions vs classes

2005-04-03 Thread Lars B. Jensen
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

Re: [PHP] functions vs classes

2005-04-03 Thread Domas Juknevicius / DEFORM GROUP
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. The