[PHP] installing php 5.2.1

2007-03-29 Thread Jay Jose
Its my first time to install and use php on my computer with IIS 5.1... I used the MSI of php 5.2.1 for intallation but every time i run the phpinfo(); ?> i always get the following result: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The he

[PHP] Where is phpm

2007-03-29 Thread Ben Roberts
I'm trying to download the phpm command line PHP documentation widget - all sources I can find point me to http://eide.org/?epc=php but there's nothing available here. Does anyone know where I can find phpm please ? Thanks Ben -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Timezone offset

2007-03-29 Thread Seak, Teng-Fong
Chris wrote: > Seak, Teng-Fong wrote: >> UK's timezone is GMT (+) while most other western European >> countries like Spain, France, Germany, etc are in GMT +1000. > > I'm sure you mean +0100 - +10 is Australia and other places ;) > Oh yes, of course +0100 instead of +1000. Mistyping o

Re: [PHP] installing php 5.2.1

2007-03-29 Thread Juergen Wind
maybe this helps: http://de.php.net/manual/en/install.windows.php#install.windows.installer.msi you can extract missing extensions from the php zip distribution. -- View this message in context: http://www.nabble.com/installing-php-5.2.1-tf3484942.html#a9729753 Sent from the PHP - General mailin

[PHP] Re: installing php 5.2.1

2007-03-29 Thread Joker7
In news: [EMAIL PROTECTED], Jay Jose wrote on : >> Its my first time to install and use php on my computer with IIS >> 5.1... I used the MSI of php 5.2.1 for intallation but every time i >> run the >> phpinfo(); >>> >> i always get the following result: >> CGI Error >> The specified CGI applicati

[PHP] Re: installing php 5.2.1

2007-03-29 Thread Joker7
In news: [EMAIL PROTECTED], "Joker7" wrote on : >> In news: [EMAIL PROTECTED], >> Jay Jose wrote on : Its my first time to install and use php on my computer with IIS 5.1... I used the MSI of php 5.2.1 for intallation but every time i run the phpinfo(); > i always ge

[PHP] Re: installing php 5.2.1

2007-03-29 Thread Sady Marcos
Change permissions... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Security!!! www.armorize.com

2007-03-29 Thread Jordan Forssman
Hi, I would like to introduce a new tool for verifying your PHP application's security. Our product uses the most advanced static source code analysis for identifying vulnerabilities in PHP code. Right now we are working with our version 1.17 which has improved functionality, speed and cover

Re: [PHP] Language detection with PHP

2007-03-29 Thread William Lovaton
Hi, Thanks to all of you who made suggestions. Stayman, I was aware of many of the things you said in your post but I wasn't aware of some details, thanks for being so specific. In my original post I was rather simplistic in explaining my approach of using spell checkers, it is in fact a little

[PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Ave, Does anyone know what I¹m doing wrong? $WHEN, $WHAT, $WHO"; mysql_query("INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')"; $result = mysql_query($sql) or die("Fatal Error :".mysql_error()); echo "~: message sent :~"; } ?> I have

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Angelo Zanetti
$result = mysql_query($sql) or die("Fatal Error :".mysql_error()); where do you define $sql? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rabih Tayyem
that's because your are not running the query!!! it has to be $sql = "INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')"; instead of mysql_query("INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')"; Regards, Rabih On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECT

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Oh I¹m sorry! I was messing with the code when I copied it to the mailing list. This is the actual code: $sql = mysql_query("INSERT INTO olivejuice (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')"); And the entire code: $WHEN, $WHAT, $WHO"; $sql = mysql_query("

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread cajbecu
are you sure $_POST['Submit'] is set? i mean, do you have an input named "Submit" that is set in your form? Rahul Sitaram Johari wrote: > Ave, > > Does anyone know what I¹m doing wrong? > > //Add Record Function > if($_POST['Submit']) { > $db = mysql_connect("localhost","usr","p

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread cajbecu
Angelo Zanetti wrote: > $result = mysql_query($sql) or die("Fatal Error :".mysql_error()); > > where do you define $sql? > or that... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 0x9f54

2007-03-29 Thread Man-wai Chang
Anyone knew how to insert this value into a char(2) column? -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Ubuntu 6.10) Linux 2.6.20.4 ^ ^ 22:19:01 up 5 days 9:31 0 users load average: 1.04 1.

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
My Apologies Everyone! I gave you all the wrong code Twice!! A pox on me - I tell you! This is the ACTUAL code that I'm working with - and it's not working: $WHEN, $WHAT, $WHO"; $sql = "INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')"; $result =

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Angelo Zanetti
Rahul Sitaram Johari wrote: Oh I¹m sorry! I was messing with the code when I copied it to the mailing list. This is the actual code: $sql = mysql_query("INSERT INTO olivejuice (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')"); And the entire code: $WHEN, $WHAT, $WHO";

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Dave Goodchild
Because of this: $sql = mysql_query("INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')"); $result = mysql_query($sql) or die("Fatal Error :".mysql_error()); ...you are running the query and assigning the results into $sql and then running mysql_query again in the line below. S

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
On 3/29/07 10:18 AM, "cajbecu" <[EMAIL PROTECTED]> wrote: > are you sure $_POST['Submit'] is set? i mean, do you have an input named > "Submit" that is set in your form? The Submit button in my form is named "Submit". The thing is, if the form is not submitted, this code is not executed (the e

[PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Ave, For total clarity, I¹m starting this post again. I messed up big time with my posts. So here¹s my actual code: $WHEN, $WHAT, $WHO"; $sql = "INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')"; $result = mysql_query($sql) or die("Fatal Error :".

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: My Apologies Everyone! I gave you all the wrong code Twice!! A pox on me - I tell you! This is the ACTUAL code that I'm working with - and it's not working: $WHEN, $WHAT, $WHO"; $sql = "INSERT INTO tbl (WHEN, WHAT, WHO) VALUES

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, For total clarity, I¹m starting this post again. I messed up big time with my posts. So here¹s my actual code: $WHEN, $WHAT, $WHO"; $sql = "INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')"; $result = m

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
BY THOR! That worked! "WHEN" Is a reserved word and that is what was causing the problem. Changed it to "THETIME" and query went through fine!! Can't thank you enough! This was driving me crazy! Look how many mistakes I made in just making this post in this mailing list! Honorable *bow* Thanks!

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Daniel I like your code ­ it¹s definitely cleaner and compact. I have a question for you ­ I have never used ³if($_POST) {³, instead, always felt I needed to specify the $Submit variable to check if form is submitted. So basically if I use ³if($_POST) {³, would it automatically mean it¹s checking

Re: [PHP] 0x9f54

2007-03-29 Thread Tijnema !
On 3/29/07, Man-wai Chang <[EMAIL PROTECTED]> wrote: Anyone knew how to insert this value into a char(2) column? Ok, what are you trying to do? you post a message with a single line, and we need to help you? I don't even think this is PHP related. You are trying to insert it into a database? My

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: BY THOR! That worked! "WHEN" Is a reserved word and that is what was causing the problem. Changed it to "THETIME" and query went through fine!! Can't thank you enough! This was driving me crazy! Look how many mistakes I made in just ma

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Awesome! This helps. I¹ll start using this method from now on ­ certainly seems a lot more compliant and also actually helps eliminating the ³Submit² button name confusion. Thanks! Appreciated. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: ht

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Zoltán Németh
2007. 03. 29, csütörtök keltezéssel 10.38-kor Rahul Sitaram Johari ezt írta: > Daniel I like your code ­ it¹s definitely cleaner and compact. > I have a question for you ­ I have never used ³if($_POST) {³, instead, > always felt I needed to specify the $Submit variable to check if form is > submitt

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Agreed, if there are multiple forms, I will definitely have to use either Submit name or some form of identifier. Thanks! On 3/29/07 10:47 AM, "Zoltán Németh" <[EMAIL PROTECTED]> wrote: > 2007. 03. 29, csütörtök keltezéssel 10.38-kor Rahul Sitaram Johari ezt > írta: >> Daniel I like your code

[PHP] Form Handler Script Security Discussion

2007-03-29 Thread Daniel Brown
Just wondering how many of you actually use any type of secure coding when doing form processing. I'm guilty of not doing it all the time myself, but I'm trying to get into the habit of doing so. For example, I don't want someone else modifying a form to auto-post values to my handler, so I w

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread cajbecu
> > if($_POST && eregi(getenv("SERVER_NAME"),getenv("HTTP_REFERER"))) { >// This is a safe POST >} elseif(!eregi(getenv("SERVER_NAME"),getenv("HTTP_REFERER"))) { >die("Illegal access. Your IP has been logged.\n"); >} > ?> > it is not safe. i can use curl (www.php.net

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread Arpad Ray
Many legitimate users will have their referrer blocked by proxies or by browser preference so you'll also have false negatives. Arpad cajbecu wrote: it is not safe. i can use curl (www.php.net/curl) and modify the referer of my script to pass this security check. i advise you to add i

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread Tijnema !
On 3/29/07, cajbecu <[EMAIL PROTECTED]> wrote: > > if($_POST && eregi(getenv("SERVER_NAME"),getenv("HTTP_REFERER"))) { >// This is a safe POST >} elseif(!eregi(getenv("SERVER_NAME"),getenv("HTTP_REFERER"))) { >die("Illegal access. Your IP has been logged.\n"); >} > ?>

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread cajbecu
> > And even then, some smart programmers are probably going to find a way > to read your image code :) > that, of course, if your app will be an interface to client`s bank account, with online management. :) cajb. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread tg-php
Good topic. It's touched on here and there in other questions, but always good to hit it head-on from time to time too. First, mysql_real_escape_string() for inserting into MySQL and whatever equiv you can find for whatever other database you may be using. addslashes() isn't so hot for databa

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread tg-php
You can pass session ID data via the URL. Ugly as it is, that's a viable option (that I see used a lot actually.. kinda drives me nuts but I understand it) for when you don't have people logging in and/or can't guarentee that cookies will be available. As was mentioned a few times, CAPTCHA met

[PHP] IP Geolocation Scripts

2007-03-29 Thread Daniel Brown
Does anyone have any recommendations for existing open source PHP scripts that use IP Geolocation? I was looking into creating a hook to use hostip.info's API, but it's still too new, and I've already had to add three IP address and a netblock. -- Daniel P. Brown [office] (570-) 587-7080 Ext.

[PHP] CURL questions

2007-03-29 Thread Angelo Zanetti
Hi all. I have a script on a server that does some processing, now I want to execute that script using cURL. This is a basic scenario and I assume its possible but its not working. The script is as follows: $url = "http://www/test.php";; $ch = curl_init(); curl_s

RE: [PHP] IP Geolocation Scripts

2007-03-29 Thread Brad Fuller
> -Original Message- > From: Daniel Brown [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 12:08 PM > To: php-general@lists.php.net > Subject: [PHP] IP Geolocation Scripts > > Does anyone have any recommendations for existing open source PHP > scripts that use IP Geolocation?

[PHP] Re: IP Geolocation Scripts

2007-03-29 Thread zerof
Daniel Brown escreveu: Does anyone have any recommendations for existing open source PHP scripts that use IP Geolocation? I was looking into creating a hook to use hostip.info's API, but it's still too new, and I've already had to add three IP address and a netblock. I use the GeoIP

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread tedd
At 5:18 PM +0200 3/29/07, Tijnema ! wrote: I've discussed the problems with using image code (CAPTCHA) in another post on this list. So then you would create a script of 100+ lines to do it :) And even then, some smart programmers are probably going to find a way to read your image code :) I'

[PHP] Audio CAPTCHA review request

2007-03-29 Thread tedd
Hi gang: If you people would be so kind as to review this: http://sperling.com/examples/captcha/ and tell me what you think (ease of use, if it works, security, etc.), I would appreciate it. The point is to be able to get to the "Congratulations" page by hearing and entering the key. If you

[PHP] Java Opportunity

2007-03-29 Thread Efrain Sarmiento
Maybe you know of friends in the New Jersey or New York area that are looking :) Non-Financial Java Developer (HIBERNATE / SPRING) MUST HAVE: 8-10 years experience. Java/JSP/JavaScript, XML, and Oracle 10g (10g is strongly preferred), Hibernate, Spring. These are straight coder positions. The

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Tijnema !
On 3/29/07, tedd <[EMAIL PROTECTED]> wrote: Hi gang: If you people would be so kind as to review this: http://sperling.com/examples/captcha/ and tell me what you think (ease of use, if it works, security, etc.), I would appreciate it. The point is to be able to get to the "Congratulations" pa

Re: [PHP] CURL questions

2007-03-29 Thread Tijnema !
On 3/29/07, Angelo Zanetti <[EMAIL PROTECTED]> wrote: Hi all. I have a script on a server that does some processing, now I want to execute that script using cURL. This is a basic scenario and I assume its possible but its not working. The script is as follows: $url = "http://www/test.ph

Re: [PHP] CURL questions

2007-03-29 Thread Erik Jones
On Mar 29, 2007, at 11:15 AM, Angelo Zanetti wrote: Hi all. I have a script on a server that does some processing, now I want to execute that script using cURL. This is a basic scenario and I assume its possible but its not working. The script is as follows: $url = "http://www/te

Re: [PHP] CURL questions

2007-03-29 Thread Angelo Zanetti
y Erik Jones wrote: On Mar 29, 2007, at 11:15 AM, Angelo Zanetti wrote: Hi all. I have a script on a server that does some processing, now I want to execute that script using cURL. This is a basic scenario and I assume its possible but its not working. The script is as follows: $url

Re: [PHP] 0x9f54

2007-03-29 Thread Seak, Teng-Fong
Tijnema ! wrote: > On 3/29/07, Man-wai Chang <[EMAIL PROTECTED]> wrote: >> Anyone knew how to insert this value into a char(2) column? > > Ok, what are you trying to do? you post a message with a single line, > and we need to help you? > I don't even think this is PHP related. You are trying to ins

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Jake McHenry
Not quite sure what you mean, what you posted is what you need to do to make the image a link... And that's what you wanted... So.. What are you asking? Jake > -Original Message- > From: Tana [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 1:02 PM > To: php-general@lists.php

RE: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Jake McHenry
Looks good to me... Had to use my laptop since none of my office sets have speakers, tested it, tried bunch of stuff and it only let me in when I typed in the code... So seems good :) Jake > -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 12:4

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Brad Fuller
> -Original Message- > From: Tana [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 1:02 PM > To: php-general@lists.php.net > Subject: [PHP] link on user uploaded pic > > Hi > > which is the best way to change this code > > > > to > >src="images/user_upload/akarmi.jpg">

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Tijnema !
It worked for you, Tij? My guess, then, since it's timing out, is it must be our corporate firewall blocking MP3s on my end. In which case, disregard my reponses with extreme prejudice. Yes it worked for me, it probably is a firewall, because it works for Jake too. On 3/29/07, Jake McHenr

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Brad Fuller
> -Original Message- > From: Brad Fuller [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 1:24 PM > To: 'Tana'; php-general@lists.php.net > Subject: RE: [PHP] link on user uploaded pic > > > -Original Message- > > From: Tana [mailto:[EMAIL PROTECTED] > > Sent: Thursday, M

[PHP] pdo::lastInsertId() error with SQL Server

2007-03-29 Thread Sady Marcos
hey.. I am not obtaining use the function pdo::lastInsertId() with sql My code: $db = new PDO("mssql:host=host;dbname=database","user","password"); $sql = "INSERT INTO users(name,status) VALUES('username','1)"; $db->query($sql); $db->lastInsertId(); Error: SQLSTATE[IM001]: Driver does not suppo

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Jason Pruim
Just a really quick check right now is all I have time for, but it looks good. The one thing you could do (And this is personal preference) Mark on it that they can replay the code if they didn't hear it the first time. I am in a loud environment at times and can't always hear things the fi

Re: [PHP] pdo::lastInsertId() error with SQL Server

2007-03-29 Thread Dan Shirah
use scope_identity() if you're using MS SQL Server 2000 or newer. scope_identity slects the last id within your current scope (The last record you entered in your current session) On 3/29/07, Sady Marcos <[EMAIL PROTECTED]> wrote: hey.. I am not obtaining use the function pdo::lastInsertId()

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread tg-php
It played the same sequence for me when I re-clicked the Play button.. until I went away for a min or two and my session probably timed out. Did it not play the same sequence for you? -TG = = = Original message = = = Just a really quick check right now is all I have time for, but it looks g

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread tg-php
Not bad. Seems to work nicely. No "OMGWTF!" obvious slips like naming the MP3 with the digits the user needs to enter. Worked fine in Firefox 1.5 too. Sometimes when audio is embedded in a page, it tries to load Windows Media Player or something which doesn't always work well in Firefox withou

Re: [PHP] Where is phpm

2007-03-29 Thread Ben Roberts
Ben Roberts wrote: I'm trying to download the phpm command line PHP documentation widget - all sources I can find point me to http://eide.org/?epc=php but there's nothing available here. Does anyone know where I can find phpm please ? Thanks Ben Any takers? Has anyone got a copy of phpm

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Jason Pruim
No, it replayed just fine. It just didn't seem to me to be obvious that hitting the "speak" button would replay the same code that I may have missed a digit out of. But then again, I've been trying to figure out how to do math with PHP and MySql all day so my brain is totally fried :P On

[PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Ave, I have a script where I have to provide a Download Link to a file associated with a record. The common thing between the record & filename is the phone number. But the filenames have dates & other symbols besides the phone number as well. They all do begin with a phone number though. How can

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Brad Bonkoski
Rahul Sitaram Johari wrote: Ave, I have a script where I have to provide a Download Link to a file associated with a record. The common thing between the record & filename is the phone number. But the filenames have dates & other symbols besides the phone number as well. They all do begin with a

[PHP] Gnome and MIME types

2007-03-29 Thread Nathan Ziarek
I'm having a hard time getting solid MIME Types of various files. On my Ubuntu/Apache2/PHP5 system, I first attempted to install fileInfo. That didn't go so well (on Safari even running "$finfo = finfo_open(FILEINFO_MIME);" causes it to complain that it lost the network connection; Firefox prompt

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
> -Original Message- > From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 9:12 PM > To: PHP > Subject: [PHP] Show Filename using Wildcards > > Ave, > > I have a script where I have to provide a Download Link to a file > associated > with a record. The co

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Ave, Yes well, I did kind of figure out that I have to scan through contents of a directory, pull up a file list, and then do some kind of pattern matching to narrow down to the files I need. But at this moment I'm kinda struggling with the directory & file functions - haven't really dwelled into

RE: [PHP] Gnome and MIME types

2007-03-29 Thread Peter Lauri
Is php safe mode on or off? Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free > -Original Message- > From: Nathan Ziarek [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 9:30 PM > To: php-ge

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Brad Bonkoski
Rahul Sitaram Johari wrote: Ave, Yes well, I did kind of figure out that I have to scan through contents of a directory, pull up a file list, and then do some kind of pattern matching to narrow down to the files I need. But at this moment I'm kinda struggling with the directory & file functions

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread tedd
At 2:02 PM -0400 3/29/07, Jason Pruim wrote: Just a really quick check right now is all I have time for, but it looks good. The one thing you could do (And this is personal preference) Mark on it that they can replay the code if they didn't hear it the first time. I am in a loud environment at

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Tijnema !
On 3/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Not bad. Seems to work nicely. No "OMGWTF!" obvious slips like naming the MP3 with the digits the user needs to enter. Worked fine in Firefox 1.5 too. Sometimes when audio is embedded in a page, it tries to load Windows Media Player or

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Peter, Believe it or not, but this is actually working. I'm on a Mac OS X, which is linux underneath, so I was hopeful about the command you provided. I ran this code: exec("find /Users/rjohari/Documents/XFER/espi/ -type f -name 33*.vox", $files); foreach ($files as $value) {

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Zoltán Németh
works fine on XP/IE7 but still tells me to install some unknown plugin on ubuntu/firefox greets Zoltán Németh 2007. 03. 29, csütörtök keltezéssel 12.41-kor tedd ezt írta: > Hi gang: > > If you people would be so kind as to review this: > > http://sperling.com/examples/captcha/ > > and tell me

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Tijnema !
On 3/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: works fine on XP/IE7 but still tells me to install some unknown plugin on ubuntu/firefox greets Zoltán Németh That unknown plugin would probably some audio player. Tijnema 2007. 03. 29, csütörtök keltezéssel 12.41-kor tedd ezt írta: > Hi

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Ben Roberts
Rahul Sitaram Johari wrote: So I have to accomplish two things: 1. I have to eliminate the filepath from the result 2. I need to specify the variable that holds the phone number, (like $row[ŒPHONE¹]) instead of the actual phone number in the ³exec² command. Thanks!! Much Appreciated! To get

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Ave, This Works!! "; } ?> THANKS! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/29/07 4:31 PM, "Peter Lauri"

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
Just do something like: $fileswithoutdir = array(); foreach($files AS $file) { $fileswithoutdir[] = basename($file); } Voila... Or you could do it more complicated in the foreach loop (but not recommended): $fileswithoutdir[] = preg_replace("/^.*\/(\d+\.vox)$/", "$1", $file); /P

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Zoltán Németh
2007. 03. 29, csütörtök keltezéssel 21.52-kor Tijnema ! ezt írta: > On 3/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > works fine on XP/IE7 > > but still tells me to install some unknown plugin on ubuntu/firefox > > > > greets > > Zoltán Németh > > That unknown plugin would probably some aud

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, This Works!! "; } ?> THANKS! I recommend using basename($value) instead of substr($value,35) If the directory changes, the basename would still return valid values, while substr wouldn't Tijnema

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
DON'T commit suicide mate :) What if you one day move the path? ;) > -Original Message- > From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 9:54 PM > To: Peter Lauri; PHP > Subject: Re: [PHP] Show Filename using Wildcards > > Ave, > > This Works!! >

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Awesome!! This Works!! "; } ?> THANKS! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] “I morti non sono piu soli ... The dead are no longer lonely” On 3/29/07 3:52 PM, "Ben Robe

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Tijnema !
On 3/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: 2007. 03. 29, csütörtök keltezéssel 21.52-kor Tijnema ! ezt írta: > On 3/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > works fine on XP/IE7 > > but still tells me to install some unknown plugin on ubuntu/firefox > > > > greets > > Zoltán

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Agreed! And definitely modified my code to use basename() "; } ?> Thanks! On 3/29/07 3:58 PM, "Tijnema !" <[EMAIL PROTECTED]> wrote: > On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: >> Ave, >> >> This Works!! >> >>>exec("find /Users/rjohari/Documents/XFER/es

Re: [PHP] Where is phpm

2007-03-29 Thread Matt Carlson
I don't know how much of it I have left. I know that I hacked it up quite a bit when I created an irc bot with the php reference manual. Unfortunately, there really isn't an easy way to get function information as such from inside of php, without parsing php's website. The phpdoc stuff wasn't

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
;) Point taken! "; } ?> :) Thanks ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/29/07 4:58 PM, "Peter Lauri"

Re: [PHP] Where is phpm

2007-03-29 Thread Ben Roberts
Matt Carlson wrote: I don't know how much of it I have left. I know that I hacked it up quite a bit when I created an irc bot with the php reference manual. Unfortunately, there really isn't an easy way to get function information as such from inside of php, without parsing php's website. T

Re: [PHP] Date/time format?

2007-03-29 Thread Jason Pruim
Thanks everyone for your suggestions, it turns out it was a unix time stamp and I can get it to parse out a normal date now. Now... on to the harder part What I am trying to do is learn... This is kind of just a pet project for me to figure out how I can do it. here is how the database i

[PHP] Link to download files on another part of system

2007-03-29 Thread Rahul Sitaram Johari
Ave, This is actually a continuation of my previous ³Show files using Wildcards² thread, but a different problem. Code: ".basenam e($value).""; } ?> The files I¹m linking to, in order to let the User download them, reside on a mounted share on my system. They are on in the Apache We

Re: [PHP] Gnome and MIME types

2007-03-29 Thread Nathan Ziarek
/etc/php5/apache2/php.ini has the uncommented line "safe_mode = Off" Assuming there isn't another file that can override that setting, my safe mode is off. Thanks, Nate On 3/29/07, Peter Lauri <[EMAIL PROTECTED]> wrote: Is php safe mode on or off? Best regards, Peter Lauri www.dwsasia.com -

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Rahul Sitaram Johari
Correction, please disregard previous post: Ave, This is actually a continuation of my previous ³Show files using Wildcards² thread, but a different problem. Code: ".basenam e($value).""; } ?> The files I¹m linking to, in order to let the User download them, reside on a mounted sh

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, This is actually a continuation of my previous ³Show files using Wildcards² thread, but a different problem. Code: ".basenam e($value).""; } ?> The files I¹m linking to, in order to let the User download them, reside on

Re: [PHP] Gnome and MIME types

2007-03-29 Thread Tijnema !
On 3/29/07, Nathan Ziarek <[EMAIL PROTECTED]> wrote: /etc/php5/apache2/php.ini has the uncommented line "safe_mode = Off" Assuming there isn't another file that can override that setting, my safe mode is off. Thanks, Nate better check this using phpinfo: Tijnema On 3/29/07, Peter Lauri <

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread tedd
tg: At 2:36 PM -0400 3/29/07, <[EMAIL PROTECTED]> wrote: 1. My biggest fear when relying on an audio CAPTCHA system is if the users doesn't have sound. No speakers, or can't play stuff at the office or something like that. I keep my system muted at work unless I'm playing music because some

Re: [PHP] Date/time format?

2007-03-29 Thread Zoltán Németh
2007. 03. 29, csütörtök keltezéssel 16.38-kor Jason Pruim ezt írta: > Thanks everyone for your suggestions, it turns out it was a unix time > stamp and I can get it to parse out a normal date now. > > Now... on to the harder part > > What I am trying to do is learn... This is kind of just a

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Zoltán Németh
2007. 03. 29, csütörtök keltezéssel 22.46-kor Tijnema ! ezt írta: > On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: > > Ave, > > > > This is actually a continuation of my previous ³Show files using Wildcards² > > thread, but a different problem. > > > > Code: > > > > >exec("find

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread tedd
At 9:45 PM +0200 3/29/07, Tijnema ! wrote: For example, i would go to the page and save the number that the CAPTCHA passed to my session. Then i would write down the code that i need to enter. So, next time i need to pass, i set the session value to the one i got first time, and i enter same code

Re: [PHP] Gnome and MIME types

2007-03-29 Thread Nathan Ziarek
Good call :-) Yes, safe mode is turned off. On 3/29/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/29/07, Nathan Ziarek <[EMAIL PROTECTED]> wrote: > /etc/php5/apache2/php.ini has the uncommented line "safe_mode = Off" > > Assuming there isn't another file that can override that setting, my > saf

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Rahul Sitaram Johari
Ave, I¹m going to try creating the sharepoint within my webserver, as suggested by you and tijnema. I think that¹s probably the easiest and quickest solution to this. I¹ll report back! Thanks! On 3/29/07 4:48 PM, "Daniel Brown" <[EMAIL PROTECTED]> wrote: > > Rahul, > > Your best bet

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread tedd
At 7:32 PM +0200 3/29/07, Tijnema ! wrote: Yes, it's nice made, i see you didn't stored anything in sessions except PHPSESSID, which you probably use to verify the code entered. Atleast, that's what i think, i hope you didn't use IP ;) No, it's just uses sessions to keep track of the visitor. H

Re: [PHP] Date/time format?

2007-03-29 Thread Roberto Mansfield
Jason Pruim wrote: > Thanks everyone for your suggestions, it turns out it was a unix time > stamp and I can get it to parse out a normal date now. > > Now... on to the harder part > > What I am trying to do is learn... This is kind of just a pet project > for me to figure out how I can do it

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Roberto Mansfield
Also, you should validate the phone number (make sure it contains only numerical digits) before using it on the command line. I wouldn't trust the data to build a command line. -Roberto Rahul Sitaram Johari wrote: > ;) > > Point taken! > > exec("find /Users/rjohari/Documents/XFER/espi

  1   2   >