[PHP] Re: writing source code to file

2004-08-17 Thread Josh Acecool M
file_get_contents(http://www.yoursite.com/script.php;); using http:// causes it to get the html source. Hannes Magnusson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] http://www.php.net/manual/en/ref.outcontrol.php On Mon, 16 Aug 2004 10:35:42 -0400 [EMAIL PROTECTED] (Doug Parker)

Re: [PHP] System Tray Icon

2004-08-16 Thread Josh Acecool M
Hmm, Simply make a RSS feed or something, md5 the last changed date of all files combined every say 30 mins and put that in the rss file, have the systray icon program look at that file every 5 mins or so, if the file has changed, flash.. John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] base64_decode an image, works on blank page, not on page where text is..

2004-08-09 Thread Josh Acecool M
If I try to base64_decode an image which was encoded with base64_encode on a blank page, it works, if I try on a page with stuff already on it, it just shows me the source code to the image... Example: Run this code as a blank page, no spaces before or after the ? then run it again with a space

Re: [PHP] Local version works - production breaks [SOLVED]

2004-08-08 Thread Josh Acecool M
Glad to hear turning reg globals off made it work :-) I had suspected that because people often use the same variables for different things and with globals on, well it can overwrite other vars. Josh Acecool M [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] That might be something

[PHP] Re: Local version works - production breaks

2004-08-07 Thread Josh Acecool M
Did you check the phpinfo on each server, make sure your server settings are same as local? Andre Dubuc [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have re-written a very basic website to use sessions (switching to https) for login to special areas of a site. After

[PHP] Re: Security Code w/o Image PHP

2004-08-07 Thread Josh Acecool M
You could make a few randomly named images (more = better security but wont be very secure since the names can be put in a spam bot...) make them show up, each name has a specific number etc... Eugene Voznesensky [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How to generate and check

Re: [PHP] Re: Local version works - production breaks

2004-08-07 Thread Josh Acecool M
news:[EMAIL PROTECTED] Josh, Aside from the differences in php versions, the only difference is thta the local version has register_globals=off. I'm really stumped. Andre On Sunday 08 August 2004 06:07 am, Josh Acecool M wrote: Did you check the phpinfo on each server, make sure your server

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Josh Acecool M
Try adding if (!function_exists(function_name)) { function function_name ($blah) { // Function Code } } for each function. That will fix the redeclare problem which happens if you call your cards.php file in more than 1 file.. Andre Dubuc [EMAIL PROTECTED] wrote in message

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-06 Thread Josh Acecool M
I dont have magic_quotes etc on, so when I use file_get_contents the EXACT, yes, EXACT file gets placed. Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Josh Acecool M: You dont understan.. Not anymore. Honestly I haven't had a clue what was going on till

[PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Josh Acecool M
Stop E-Mailing me. http://www.acecoolco.com/legal.php - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 06, 2004 2:10 AM Subject: IMPORTANT: Please Verify Your Message html head meta http-equiv=Content-Type content=text/html;

[PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Josh Acecool M
I've requested that you do not contact me again. http://www.acecoolco.com/legal.php Please read the E-mail section properly. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 06, 2004 3:10 AM Subject: IMPORTANT: Please Verify Your Message html

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
from the included file wont get parsed or anything, and the variables set to it by the first file, or the class dont work at all. John Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Josh Acecool M wrote: var $The_Template_Sys; $this - The_Template_Sys = file_get_contents

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
5.0.0 Include WORKS, but using INCLUDE with PREG_REPLACE does NOT work, the text you want to replace gets deleted and the INCLUDE includes on the top of the page... Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 5 Aug 2004 09:51:10 -0700, Josh Acecool M [EMAIL

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
= preg_replace('/something/', file_get_contents(something.php), $text); eval(? . $text . ?) Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 5 Aug 2004 21:42:58 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: 5.0.0 Include WORKS, but using INCLUDE with PREG_REPLACE

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
Acecool M: but, I am doing this. $text = file_get_contents('templateFile.php'); $text = preg_replace('/something/', file_get_contents(something.php), $text); eval(? . $text . ?) This is rather an odd thing to do, kinda like taking an html document converting it to xml, add an element

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-04 Thread Josh Acecool M
Any ideas? John Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Josh Acecool M wrote: var $The_Template_Sys; $this - The_Template_Sys = file_get_contents($The_Template_File); $this - Sub_Template = TRUE; Please respond to the list and not me personally. you say

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
It has a preg_match in there that looks for \$variable = blah; I cant help that a file works without Eval, and then to eval it, it messes it up... John Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Josh Acecool M wrote: var $The_Template_Sys; $this - The_Template_Sys

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
Also, variables do not get passed correctly from the engine to the evaluated pages. Josh Acecool M [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It has a preg_match in there that looks for \$variable = blah; I cant help that a file works without Eval, and then to eval

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
supposed to me.) And using buffer is 8x slower than eval. Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 3 Aug 2004 12:11:02 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: It has a preg_match in there that looks for \$variable = blah; I cant help

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
Another note: I code for globals off. Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 3 Aug 2004 12:11:02 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: It has a preg_match in there that looks for \$variable = blah; I cant help that a file works without