Re: [PHP] change Style Sheet by programming

2007-03-06 Thread Casey Chu
I don't really understand your question, but... http://www.quirksmode.org/dom/changess.html http://www.quirksmode.org/book/examplescripts/dropdown/index.html On 3/6/07, Alain Roger <[EMAIL PROTECTED]> wrote: Hi, I'm creating a Class which should allow user to setup the default theme CSS file h

Re: [PHP] echo text - anti-spam-spider measure

2007-03-01 Thread Casey Chu
aas <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: > You could also use %XX in HEX on the mailto: you can actually randomly mix and match hex and entity encoding, which is what the function I posted elsewhere in the thread does. > > On Tue, February 27, 2007 11:09 pm, Casey Chu wrote:

Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread Casey Chu
http://themfund.com/snippets/test.php Has %HEX, &#entity;, and even a entity version of the hex! On 2/28/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, February 28, 2007 1:20 am, Stut wrote: > Of all the possible methods, entities are the easiest for bots to > handle. They just need to de

Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread Casey Chu
Try using Javascript? Or use all entities? For example: mailto:php-general@lists.php.net would turn into mailto:php-general@lists.php.net On 2/27/07, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: I need an anti-spam-spider measure for my site. Too many addresses are getting raked. In once in

Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread Casey Chu
^ So put that into a tag. On 2/27/07, Casey Chu <[EMAIL PROTECTED]> wrote: Try using Javascript? Or use all entities? For example: mailto:php-general@lists.php.net would turn into mailto:php-general@lists.php.net On 2/27/07, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: >

Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread Casey Chu
It works. =P I tested it. Try it here! =P http://themfund.com/snippets/test.php On 2/27/07, Casey Chu <[EMAIL PROTECTED]> wrote: I'm not sure with both of your questions. I'm too lazy to try. Untested: But to encode it, you would use preg_replace_callback('~([\d\w])~&

Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread Casey Chu
On 2/27/07, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: How do I encode it? And would the href tag work? Casey Chu wrote: > ^ So put that into a tag. > > On 2/27/07, Casey Chu <[EMAIL PROTECTED]> wrote: >> Try using Javascript? Or use all entities? For exampl

Re: [PHP] un include?

2007-02-10 Thread Casey Chu
Maybe you could make a separate PHP file, include it there, then pass the results to the main file? On 2/10/07, jekillen <[EMAIL PROTECTED]> wrote: Hello all; Is there a way to un include a file once it has been included in a script? I have a situation where I need to include a php file for a v

Re: [PHP] Writting a simple proxy in PHP

2007-02-06 Thread Casey Chu
Try using cUrl. On 2/6/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Alessandro Vernet wrote: > I would like to forward on the server side (also called "proxy" or > "server-side redirect") some queries that get to my PHP script. A naive > approach is to do: > > print(implode("", file("http://localh

Re: [PHP] DATE

2007-01-27 Thread Casey Chu
Read http://us3.php.net/manual/en/function.strtotime.php. It might help. On 1/27/07, Ron Piggott <[EMAIL PROTECTED]> wrote: I have date in the variable $date_reference in the format -MM-DD. How do I find out the date before this and the date after this? Ron -- PHP General Mailing List (ht

Re: [PHP] Validating a link in php

2007-01-25 Thread Casey Chu
Try changing that url to www.youtube.com:80/v/JqO8ZevPJNk On 1/25/07, Robert Porter <[EMAIL PROTECTED]> wrote: Frank Arensmeier wrote: >Did you take a look at the error numbers / messages returned by >fsockopen? What do they say? Actually, I only get warnings, not errors, but here's what they

Re: [PHP] Javascript detection , working version

2007-01-13 Thread Casey Chu
That book is so cool! =P Anyways, it said that browsers with Javascript, but not a recent enough Javascript would not display the Noscript. On 1/13/07, tedd <[EMAIL PROTECTED]> wrote: At 9:32 PM -0800 1/11/07, Jürgen Wind wrote: >tedd wrote: >>index.php, jstest110.php) , make it one. >ok >---8<

Re: [PHP] password protecting files, only allowing authorized users

2007-01-11 Thread Casey Chu
This is impossible with only PHP. You might need a combination of PHP and AJAX [Javascript]. On 1/11/07, Dave <[EMAIL PROTECTED]> wrote: Hello, I'm using php and apache2 on a freebsd box. I know about .htaccess that the web server can provide, but i'm looking for something php can do, i want

Re: [PHP] PHP Manipulation of WMV

2007-01-07 Thread Casey Chu
Okay, sorry if I wasn't clear. I need to get frames from a WMV dynamically with PHP. If the way to do is not a native PHP function, I need to use an include() to get the functions because I can't use extensions. On 1/7/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Casey Chu wr

[PHP] PHP Manipulation of WMV

2007-01-07 Thread Casey Chu
Hello. Is there a way to manipulate WMV files with PHP? I need to do so with an include(). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Access array data in foreach?

2007-01-06 Thread Casey Chu
$value holds the value of the current array element. On 1/6/07, William Stokes <[EMAIL PROTECTED]> wrote: Hello, I Have an array $toplevel containing arrays: Array ( [0] => Array ( [0] => 1 [1] => 1 [2] => eka [3] => eka.php ) [1] => Array (

Re: [PHP] software recommendation: ServiceCapture

2007-01-03 Thread Casey Chu
I already have one, but this one looks better! I don't want to pay though... On 1/2/07, Paul Novitski <[EMAIL PROTECTED]> wrote: I've recently discovered a tool that I recommend for web work: ServiceCapture by Kevin Langdon http://kevinlangdon.com/serviceCapture/ It acts as an HTTP proxy, inser

Re: [PHP] Pushing a file to the browser

2007-01-02 Thread Casey Chu
What do you mean by `pushing`? On 9/15/06, Mike Mannakee <[EMAIL PROTECTED]> wrote: Hello, I have a script I've created which takes a file upload, monkeys with the data in it, and needs to push the new file out to the browser. Everything is coded and working up to that last point, but I've nev

Re: [PHP] Chocked

2006-12-29 Thread Casey Chu
He probably meant "shocked" and "shocking". On 12/29/06, Jim Lucas <[EMAIL PROTECTED]> wrote: Peter Lauri wrote: > I was chocked when I got my additional dedicated server from my server > provider. I assumed everyting would have been the same as I ordered the > server with same package name etc.

Re: [PHP] New User Sign up Notification

2006-12-23 Thread Casey Chu
I still do not understand. Isn't that what your script already does? On 12/23/06, Casey Chu <[EMAIL PROTECTED]> wrote: What do you mean by "now"? On 12/22/06, JMCS Niagara (Jeff) <[EMAIL PROTECTED]> wrote: > hi there. I'm looking to create a new user si

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Casey Chu
Yeah, try testing. Maybe something like this: Execute"; if ($_POST['code']) { echo ""; $time_start = microtime_float(); eval($_POST['code']); $time_end = microtime_float(); echo "Loading took: ". $time_end - $time_start. ''; } echo "$form"; // Note: This script is extremely dangerous and

Re: [PHP] New User Sign up Notification

2006-12-23 Thread Casey Chu
What do you mean by "now"? On 12/22/06, JMCS Niagara (Jeff) <[EMAIL PROTECTED]> wrote: hi there. I'm looking to create a new user signup. So when someone signs up, it emails admin the Username, Real Name, and IP address. I have this code called newusersignupnotification.php ". "Username: ".$_

Re: [PHP] Excluding apostrophe's

2006-12-22 Thread Casey Chu
It should be like this: On 12/22/06, Paul Novitski <[EMAIL PROTECTED]> wrote: >RAFMTD (Ian) wrote: ... >>$name = mysql_real_escape_string ($_POST['name']); ... >>mysql_connect("humbug",$username,$password); ... >>the script fails with the following report Warning: >>mysql_real_escape_string()

Re: [PHP] Video question

2006-12-19 Thread Casey Chu
Maybe you could try some complicated file splitting thing? Like [dynamically] split the video into 10 pieces and send them in a jumbled mess, and decode them using something like flash? On 12/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: To view a video, you do have to download it. But yo

Re: [PHP] heredoc

2006-12-18 Thread Casey Chu
I usually use an include rather than a heredoc. On 12/18/06, Paul Novitski <[EMAIL PROTECTED]> wrote: At 12/18/2006 10:14 PM, clr wrote: >Please can someone advise me on heredoc and its shortcommings, > >I am designing a complex site and elected to use DIV's as opposed to frames. >Heredoc seems

Re: [PHP] Re: ECHO

2006-12-18 Thread Casey Chu
You could try to manipulate what the echo's output by ob_start(), etc. Or maybe you could change the standard output? On 12/18/06, Fahad Pervaiz <[EMAIL PROTECTED]> wrote: I have written a framework for internationalization. Now i have incoorperate it into and existing system that is huge and it

Re: [PHP] ECHO

2006-12-18 Thread Casey Chu
Why do you need to change its functionality? On 12/18/06, Fahad Pervaiz <[EMAIL PROTECTED]> wrote: ECHO is a language construct but still is there any work around to override it or change its functionality??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] simplest way in php to get our content on another site / included javascript question

2006-12-17 Thread Casey Chu
If this is about search engine optimization, I'd suggest using Javascript. Something like : http://www.yoursite.com/include.php?article=1536f";>http://www.yoursite.com"; id="yoursite">Provided by YourSite And inside the script, Ajax to fetch and display the content, and also add if (var li

Re: [PHP] problem loading phpinfo

2006-12-17 Thread Casey Chu
You probably didn't install PHP correctly. On 12/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Please, Could you tell me if this problem has been resolved: I am using php-5.2X and has this problem, I also had this problem when I was using php-5.1.X. My Apache is httpd-2.2.3. Here is th

Re: [PHP] Re: php redirection..

2006-12-16 Thread Casey Chu
I believe it's spelled non-sequitur. =) On 12/16/06, Jonesy <[EMAIL PROTECTED]> wrote: On Fri, 15 Dec 2006 21:07:44 -0800, Casey Chu wrote: > Well... They skip all 's, so they skip <!-- //-->'s. Wow! You get The Prize for the best non sequitor of the da

Re: [PHP] POST in Apache server

2006-12-15 Thread Casey Chu
Hmmm... there's something wrong with the form sending its values. Try echo ""; print_r($GLOBALS); echo ""; On 12/15/06, Emiliano <[EMAIL PROTECTED]> wrote: ok, this is what I get: Array ( ) PHP Notice: Undefined index: val1 in /net/people/user/public_html/cgi-bin/mail.php on line 18 PHP No

Re: [PHP] POST in Apache server

2006-12-15 Thread Casey Chu
On your script page, add echo ""; print_r($_REQUEST); echo ""; and tell us the result. On 12/15/06, Emiliano <[EMAIL PROTECTED]> wrote: Yes Casey, I'm using the submit button -emiliano > >> On Fri, December 15, 2006 7:39 pm, Emiliano wrote: > >> > PHP Notice: Undefined index: val1 in > >>

Re: [PHP] php redirection..

2006-12-15 Thread Casey Chu
Well... They skip all 's, so they skip <!-- //-->'s. On 12/15/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, December 15, 2006 10:28 pm, Casey Chu wrote: > Actually... Search engines don't have a JavaScript interpreter. Actually... You don't know for

Re: [PHP] POST in Apache server

2006-12-15 Thread Casey Chu
Did you add a submit button to the page? On 12/15/06, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Fri, December 15, 2006 7:39 pm, Emiliano wrote: >> > PHP Notice: Undefined index: val1 in >> > /net/people/user/public_html/cgi-b= >> > in/script.php on line 14 >> >> http://php.net/isset >> O

Re: [PHP] php redirection..

2006-12-15 Thread Casey Chu
Actually... Search engines don't have a JavaScript interpreter. On 12/15/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, December 12, 2006 12:51 pm, Stut wrote: > bruce wrote: >> hey stut... > > Please don't reply to me directly, always include the mailing list. > >> thanks for the reply...

Re: [PHP] php redirection..

2006-12-13 Thread Casey Chu
It's usually OK if it's 8 seconds or more, but that would take too long. See here for info: http://www.netmechanic.com/news/vol4/promo_no15.htm On 12/13/06, Budi Setiawan <[EMAIL PROTECTED]> wrote: > basically: > > cat.php > -echo " test content" > -echo " more test content" > > //redirect us

Re: [PHP] php redirection..

2006-12-13 Thread Casey Chu
Search Engines don't like the META tag. Use location.href='foobar.php';Foo Bar On 12/13/06, tedd <[EMAIL PROTECTED]> wrote: At 9:02 PM +0100 12/12/06, Tim wrote: >Just a quick question regarding this issue. > >Considering bruce wants to be able to display the data and then change >location aft

Re: [PHP] Distinguishing between a mouse click and a refresh?

2006-12-04 Thread Casey Chu
Oooh... now that I think about it, it doesn't work. Sorry =( On 12/4/06, Paul Novitski <[EMAIL PROTECTED]> wrote: Hi Casey, Yes, I can see that your javascript function adds a random number to the href of a clicked link, but how does that help PHP distinguish between a page loaded that way and