Re: [PHP] Cant right click

2004-05-31 Thread Terence
Under IE->View->Source and Bingo. It's probably a javascript script. Easy to bypass. PHP related...err no. - Original Message - From: "Brent Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 2:49 PM Subject: [PHP] Cant right click Hi all On the link pro

[PHP] Cant right click

2004-05-31 Thread Brent Clark
Hi all On the link provided below, I noticed that you cant right click. Therefore you cant get "View source code" or "Copy link" etc (Depenind on the browser used of course) http://www.full.xtremedl.com/6.htm Would anyone know how to do this. I see that you cant even right click on the pic Wei

Re: [PHP] Cannot find MySQL header files under

2004-05-31 Thread Curt Zirzow
* Thus wrote Jough P ([EMAIL PROTECTED]): > Greetings, when compiling PHP with the 'with-mysql' option I get an > warning against using the built-in mysql support. So, I tried > '--with-mysql=/path/to/mysql.so and got the following error: > Cannot find MySQL header files under... The with optio

[PHP] Cannot find MySQL header files under

2004-05-31 Thread Jough P
Greetings, when compiling PHP with the 'with-mysql' option I get an warning against using the built-in mysql support. So, I tried '--with-mysql=/path/to/mysql.so and got the following error: Cannot find MySQL header files under... What are the names of the mysql header files this message is tal

[PHP] RE: GD Library Upgrade

2004-05-31 Thread Ryan Schefke
Any thoughts on this? I'm working with a host on a Linux box with PHP 4.2.2. The version of GD Library they have is 1.8.4. I was uploading some pictures using a script that leveraged GD Library 2+. Using the php version with the newer GD library seemed to produce a better quality image. I h

[PHP] Calender code help

2004-05-31 Thread Ryan A
Hey, Thanks to you guys on the list I have started to tweak the simple calender which I posted earlier...but have run into problems ;-) (I didnt go with the PEAR one coz we don't have PEAR installed on all our shared hosting accounts) What I am trying to do is, have some dates be clickable (linke

[PHP] Re: drop down menu populated from a directory

2004-05-31 Thread Dustin Krysak
Ok - here is the relevant Quicktime code: http://www.apple.com/qtactivex/qtplugin.cab";> http://www.apple.com/quicktime/download/indext.html";> http://www.apple.com/quicktime/download/indext.html"; target="myself"> Now I figure - getting the file name in there would be prett

[PHP] kill a script...plz help

2004-05-31 Thread CurlyBraces Technologies \( Pvt \) Ltd
sorry for asking such questions , ... If u all don't have codings for such cases , could u plz direct me with some steps ?   Thank u     # i used this script to run that abc.pl in command prompt. It is perfectly running.     //$Exhibit

Re: [PHP] Secure login script

2004-05-31 Thread Raj Shekhar
On Mon, 31 May 2004 16:11:07 -0600, René Fournier <[EMAIL PROTECTED]> wrote: > If I MUST learn these two things in order to copy the > security of the sample script, I will, but is it really necessary in > your opinion? Let me see. Will you let a surgeon who does not know how to handle a scalpel t

[PHP] Re: Text Streaming in PHP

2004-05-31 Thread Manuel Lemos
On 05/31/2004 04:28 PM, Stephen Lake wrote: I know I asked this before a couple of weeks ago, but I need a good swift kick in the right direction :D I need to know how to do a text stream in PHP. I have tried the following: while loop with flush and sleep functions HTTP/1.1 Connection: Stream (seem

[PHP] Re: Socket w/SSL Issues

2004-05-31 Thread Manuel Lemos
Hello, On 05/31/2004 10:14 AM, Steve Douville wrote: PHP is installed without openssl here at pair. I want to make a socket call to port 443 on a server and I'm getting an error from fsocketopen() that no ssl support is built in, of course. I thought that using "ssl://" might work around this, but

Re: [PHP] compiling php with mysql ver3 or 4

2004-05-31 Thread Rachel Rodriguez
--- Richard Kurth <[EMAIL PROTECTED]> wrote: > Hello , > > How can I compile PHP so that it does not mater > what version of > mysql is installed. > If I compile it for mysql 3.X and then upgrade > mysql to ver 4 > PHP will not install. > I get error while loading shared libraries: > li

[PHP] compiling php with mysql ver3 or 4

2004-05-31 Thread Richard Kurth
Hello , How can I compile PHP so that it does not mater what version of mysql is installed. If I compile it for mysql 3.X and then upgrade mysql to ver 4 PHP will not install. I get error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file this is how

Re: [PHP] shortcut if

2004-05-31 Thread John W. Holmes
Bob Lockie wrote: No syntax error but this always returns 's'. $add = $delete_count > 0 ? "s" : "x"; Hmm.. that's odd because if(false) { return false; } always returns false for me... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP

Re: [PHP] shortcut if

2004-05-31 Thread Marek Kilimajer
Bob Lockie wrote: No syntax error but this always returns 's'. $add = $delete_count > 0 ? "s" : "x"; That means $delete_count is always greater than 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Secure login script

2004-05-31 Thread René Fournier
The link I posted previously is causing me some grief, apparently because I don't know the first thing about object-oriented PHP or PEAR. Here's the thing: If I MUST learn these two things in order to copy the security of the sample script, I will, but is it really necessary in your opinion? .

[PHP] shortcut if

2004-05-31 Thread Bob Lockie
No syntax error but this always returns 's'. $add = $delete_count > 0 ? "s" : "x"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP login script

2004-05-31 Thread René Fournier
I'm looking for some good, secure login code, and found the following article: http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/ Not being much of a security expert, I was wondering if anyone here could say whether this code is any good? Or if there's a better one elsewhere? (I

php-general@lists.php.net

2004-05-31 Thread Chris
The ampersand indicates that the function is returning by reference: http://www.php.net/references.return Chris René Fournier wrote: Oops... I mean, what's the difference between function &myfunction() { } and function myfunction() { } ? -- PHP General Mailing List (http://www.php.net/) To

php-general@lists.php.net

2004-05-31 Thread René Fournier
Oops... I mean, what's the difference between function &myfunction() { } and function myfunction() { } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general@lists.php.net

2004-05-31 Thread René Fournier
What's the difference between function &myfunction() { } and function &myfunction() { } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Text file

2004-05-31 Thread John W. Holmes
alantodd wrote: What would be the easiest way to open a text file, remove a line if the line begins with a word from an array of words (there are 5 words I will be looking for) then write that back to the text file with everything removed $filedata = file('yourfile.txt'); foreach($filedata as $key

[PHP] Receiving an associative array from Flash

2004-05-31 Thread Radek Zajkowski
Hey what would the syntax look like if I was receiving an array from flash. Assume that it is inside a class with a proper contructor class receiveRemoting{ function receiveRemoting{ //ALL THE CONFIG STUFF } function receiveArrayFromFlash($arrayFromFlash){ //THIS IS WHERE

[PHP] Slightly OT Mysql question

2004-05-31 Thread Dave Carrera
Hi List, Sorry for this question being slightly OT but its is to due with my Php script in a way. MySql has stopped adding rows since the db table hit 1mb... Anyone know why ? I have search mysql.com docs and other web resources but can not figure it out. Running FreeBSD 4.7 and MySql 3.23.58

Re: [PHP] Text Streaming in PHP

2004-05-31 Thread Robert Cummings
On Mon, 2004-05-31 at 15:28, Stephen Lake wrote: > Hey All, > > I know I asked this before a couple of weeks ago, but I need a good swift > kick in the right direction :D > > I need to know how to do a text stream in PHP. > I have tried the following: > > while loop with flush and sleep function

[PHP] How to verify that data is in a blob?

2004-05-31 Thread phil
I want to verify that there is data (doesn't matter whether it's valid data or not) inside a MySQL blob using a PHP function. How do I do this? Thanks!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Text Streaming in PHP

2004-05-31 Thread Stephen Lake
Hey All, I know I asked this before a couple of weeks ago, but I need a good swift kick in the right direction :D I need to know how to do a text stream in PHP. I have tried the following: while loop with flush and sleep functions HTTP/1.1 Connection: Stream (seems to work in the above while loo

Re: [PHP] Referer problem

2004-05-31 Thread John W. Holmes
Merlin wrote: I am trying to prevent hotlinking of images by other servers. Pictures are generated on the fly by a php script, where I have included this code to prevent hot linking: $haystack = $_SERVER['HTTP_REFERER']; $needle = 'globosapiens'; $pos = strpos($haystack, $needle); if ($pos

Re: [PHP] triggering php scripts...

2004-05-31 Thread hitek
At 10:19 PM 5/30/2004, you wrote: Chris Wagner wrote: i am wondering if there is a good way to trigger a php script from a web page *without* sending the user to a new page or opening a new browser windows. for instance, suppose you wanted to make a button/link on a web page that, when clicked, wou

[PHP] Test Files

2004-05-31 Thread alantodd
What would be the easiest way to open a text file, remove a line if the line begins with a word from an array of words (there are 5 words I will be looking for) then write that back to the text file with everything removed Thanks Alan

[PHP] Text file

2004-05-31 Thread alantodd
What would be the easiest way to open a text file, remove a line if the line begins with a word from an array of words (there are 5 words I will be looking for) then write that back to the text file with everything removed Thanks Alan

[PHP] Re: drop down menu populated from a directory

2004-05-31 Thread Torsten Roehr
"Dustin Krysak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ok, I added brackets and made my code to: > > if ($handle = opendir('../../../mov')) { > while (false !== ($file = readdir($handle))) { > > if ($file != '.' && $file != '..') { > > $fileName = str

[PHP] Re: drop down menu populated from a directory

2004-05-31 Thread Dustin Krysak
ok, I added brackets and made my code to: if ($file != '.' && $file != '..') { $fileName = str_replace('.mov', '', $file); echo '' . $fileName . ''; } } closedir($handle); } ?> when viewing my page in a browser, it worked! Now what I am hoping to do is

Re: [PHP] Referer problem

2004-05-31 Thread Marek Kilimajer
Merlin wrote: Hi there, I am trying to prevent hotlinking of images by other servers. Pictures are generated on the fly by a php script, where I have included this code to prevent hot linking: $haystack = $_SERVER['HTTP_REFERER']; $needle = 'globosapiens'; $pos = strpos($haystack, $needle);

[PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Torsten Roehr
"Dustin Krysak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I gave it a go, and I got the error: > "Parse error: parse error, unexpected '}'" Sorry there are some braces missing. Please try this: if ($handle = opendir('../../../mov')) { while (false !== ($file = readdir($han

Re: [PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Daniel Clark
With the SELECT drop down, you'd need a submit button, and then the value of $file would be passed to the next page and read. There you could open that file. >>So I made my code: >> >>>if ($handle = opendir('../../../mov')) { >>while (false !== ($file = readdir($handle))) >> >>if ($

[PHP] Referer problem

2004-05-31 Thread Merlin
Hi there, I am trying to prevent hotlinking of images by other servers. Pictures are generated on the fly by a php script, where I have included this code to prevent hot linking: $haystack = $_SERVER['HTTP_REFERER']; $needle = 'globosapiens'; $pos = strpos($haystack, $needle); if ($pos ===

[PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Dustin Krysak
I gave it a go, and I got the error: "Parse error: parse error, unexpected '}'" This was on the last "}". Now I am brand new at php, but should there not be an opening and closing curly bracket? in this code there are one "{" and three "}" So I made my code: if ($file != '.' && $file !=

[PHP] GD Library Upgrade

2004-05-31 Thread Ryan Schefke
I'm working with a host on a Linux box with PHP 4.2.2. The version of GD Library they have is 1.8.4. I was uploading some pictures using a script that leveraged GD Library 2+. Using the php version with the newer GD library seemed to produce a better quality image. I have two questions: 1 -

Re: [PHP] multiple checkbox help

2004-05-31 Thread John W. Holmes
Bob Lockie wrote: I tried this HTML: $_REQUEST['deleteID'] === the last box checked. so I did a google search and changed my HTML to: Now the code: for ($i = 0; $i < count($_REQUEST['deleteID']); $i++){ echo "deleting '" . $value . "'"; } has the right count but how do I get the values out?

Re: [PHP] Re: duplicating a row

2004-05-31 Thread Bob Lockie
On 05/31/04 11:42 Craig spoke: http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html "Bob Lockie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I want to duplicate a row (back it up - copy to a table with the same schema) regardless of the table schema. This in MySQL but I need a solut

Re: [PHP] duplicating a row

2004-05-31 Thread Daniel Clark
INSERT INTO new_table (column1, column2, ...) SELECT column1, column2, ... FROM original_table >>I want to duplicate a row (back it up - copy to a table with the same >>schema) regardless of the table schema. >>This in MySQL but I need a solution that can be made easily portable to >>other data

[PHP] Re: duplicating a row

2004-05-31 Thread Craig
http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html "Bob Lockie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I want to duplicate a row (back it up - copy to a table with the same > schema) regardless of the table schema. > This in MySQL but I need a solution that can be made ea

[PHP] duplicating a row

2004-05-31 Thread Bob Lockie
I want to duplicate a row (back it up - copy to a table with the same schema) regardless of the table schema. This in MySQL but I need a solution that can be made easily portable to other databases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] R: [PHP] multiple checkbox help

2004-05-31 Thread Alessandro Vitale
I usually use this approach: . . --- foreach($_REQUEST['myName'] as $id => $value) { if($value == "CHECKED") array_push($idArray, $id); } if something is not clear, let me know cheers, A. -Messaggio originale- Da: Bob Lockie [mailto:[EMAIL PROTECTED] Inviato: l

Re: [PHP] multiple checkbox help

2004-05-31 Thread Bob Lockie
Thanks to all those who responded. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multiple checkbox help

2004-05-31 Thread Daniel Clark
Change $_REQUEST to $_POST (a little more secure). foreach( $deleteID as $key => $value) { echo 'deleting ' . $value . '' ; } >>I tried this HTML: >> >> >> >>$_REQUEST['deleteID'] === the last box checked. >>so I did a google search and changed my HTML to: >> >> >> >> >>Now the code: >>for

[PHP] Re: multiple checkbox help

2004-05-31 Thread Thomas Seifert
On Mon, 31 May 2004 10:50:52 -0400 [EMAIL PROTECTED] (Bob Lockie) wrote: > I tried this HTML: > > > > $_REQUEST['deleteID'] === the last box checked. > so I did a google search and changed my HTML to: > > > > > Now the code: > for ($i = 0; $i < count($_REQUEST['deleteID']); $i++){ > ec

[PHP] multiple checkbox help

2004-05-31 Thread Bob Lockie
I tried this HTML: $_REQUEST['deleteID'] === the last box checked. so I did a google search and changed my HTML to: Now the code: for ($i = 0; $i < count($_REQUEST['deleteID']); $i++){ echo "deleting '" . $value . "'"; } has the right count but how do I get the values out? -- PHP General Ma

[PHP] BUTTONS

2004-05-31 Thread Brent Clark
Hi all I came across this on freshmeat, I thought I must share it http://phpbutton.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] installing php4 in windows 2000

2004-05-31 Thread Daniel Clark
Is your php.ini in the windows or winnt directory? >>i have configured apache 2.0.49 in my system and included the following lines of >>code in my http:conf file >> >>LoadModule php4_module "c:/php/sapi/php4apache2.dll" >>AddType application/x-httpd-php .php >> >>i have also configured the php.i

[PHP] Socket w/SSL Issues

2004-05-31 Thread Steve Douville
PHP is installed without openssl here at pair. I want to make a socket call to port 443 on a server and I'm getting an error from fsocketopen() that no ssl support is built in, of course. I thought that using "ssl://" might work around this, but I guess not. Any ideas for me? $host = "my.host.com

[PHP] Anyone interested in freelance/part time job?

2004-05-31 Thread Davis Tan
Hi, we have a few projects which requires suitable people to provide coding work for PHP/MySQL and HTML. If you are interested, please email me so that I can provide you with more info. FYI, system analysis and design is completed. Only require development work. Thanks! Davis. -- PHP General Ma

[PHP] Re: installing php4 in windows 2000

2004-05-31 Thread Johan Holst Nielsen
Rohit Mohta wrote: i have configured apache 2.0.49 in my system and included the following lines of code in my http:conf file LoadModule php4_module "c:/php/sapi/php4apache2.dll" AddType application/x-httpd-php .php i have also configured the php.ini file and created a test script(phpinfo.php,pla

[PHP] installing php4 in windows 2000

2004-05-31 Thread rohit mohta
i have configured apache 2.0.49 in my system and included the following lines of code in my http:conf file LoadModule php4_module "c:/php/sapi/php4apache2.dll" AddType application/x-httpd-php .php i have also configured the php.ini file and created a test script(phpinfo.php,placed it in my htd

[PHP] Re: Simple calender

2004-05-31 Thread Craig
Ryan, with a bit of tweaking you can edit that script to what you want. heres an example = "; $calendar_html .= "" . $month_name . " " . $year . ""; $calendar_html .= ""; $calendar_html .=

Re: [PHP] PEAR Mail/smtp sending problem

2004-05-31 Thread Burhan Khalid
Christopher J. Mackie wrote: I'm following the PEAR docs to use Mail/SMTP. Below is the code I use, swiped directly from the docs--I've changed the authorization data to protect privacy, but otherwise it's identical (and email sent from a client on this same machine using the same settings works fi

Re: [PHP] Re: PHP Coding Standards

2004-05-31 Thread Torsten Roehr
"Travis Low" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have to say I like everything about the PEAR coding standards except for the > K&R bracing style. I much prefer: > >if( foo ) >{ > blah; >} > > to > >if( foo ) { > blah; >} > > > The latter

[PHP] Re: Simple calender

2004-05-31 Thread Torsten Roehr
"Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey, > > been looking at a lot of calenders most of them are either too big for my > use (whole page), not free, in javascript or too complicated. > > I require a calender that is simple, loads fast,small and not javascript, >