Re: [PHP] Too Advanced? Re: Cookies Hidden Image

2003-09-03 Thread Diego Fulgueira
Nothing is too advanced for this newgroup and there is not other better. I did not read your problem very carefully, but I think you are trying to set a cookie on a page that does a redirect, that is just impossible unless you do the redirect with a meta tag on the client. Anyway, if that

Re: [PHP] controlling winamp with COM

2003-07-21 Thread Diego Fulgueira
Look, i don't know if you already received a reply for your message, but i can tell you i know a lot about PHP and i have absolutely no idea how to do this. I will just remind you that PHP is intended to be used as a server to client technology and that it might have some indirect interaction

Re: [PHP] Sessions on win32, PHP and IIS

2003-03-19 Thread Diego Fulgueira
For session variables to work: Use the $_SESSION array instead of $HTTP_SESSION_VARS. Also, check your session_path (defined in php.ini, which should be under /WINNT). session_path should point to a directory where user IUSR_MYHOST has writing permissions. There, you should see a file created

[PHP] - IIS - More info

2003-03-19 Thread Diego Fulgueira
Did you checked my last message? Was it helpful? PHP under Apache exposes diferent global variables than PHP under IIS. It will be impossible for you to correct your errors without changing your code. Run phpinfo() to see what variables are available under IIS. About session variables... I

[PHP] Unable to install PHP4.2.3 + Apache 1.3 + Win2k

2003-03-14 Thread Diego Fulgueira
Hi. I followed the instructions in the php manual to install php as CGI module under apache, under windows. I get the following message when requesting a php file: Invalid URI in request GET /mydir/myfile.php HTTP/1.1 I believe this is because Apache is not getting the protocol:host part of the

[PHP] dl() issues. PHP 4.3.1 + WIN2K + APACHE 3.1

2003-03-13 Thread Diego Fulgueira
Hope to find someone to help me with this: I am trying to load a dynamic extension using the dl() function. The dll file resides in my web root directory (c:\inetpub\wwwroot). I have extension_dir = ./ in php.ini (the default). dl(_php.dll) doesn't seem to find the file when called from

[PHP] Unable to create COM objects on Win2k

2001-08-06 Thread Diego Fulgueira Pastor
Hi! I have the following problem: I am using IIS 5.0 on Win2k, and I am unable to create COM objects. For example, the following code will produce the script to halt: $myObject= new COM(CDONTS.NewMail); $myObject-to='[EMAIL PROTECTED]'; $myObject-send(); The script stops in the second line,

[PHP] Any good gif/jpg processing tool for PHP??

2001-08-06 Thread Diego Fulgueira Pastor
I am sure many of you have had this same problem. I want all uploaded images to my site (gifs and jpg) to be resized on the fly so that all have the same width and height. Does anyone knows about a tool (free, if possible) that can do this under Win2k, IIS 5.0 and that can be used with PHP 4.0?

[PHP] PHP4/IIS/WIN2: Cookies are not sent. HELP!!

2001-05-23 Thread Diego Fulgueira
Recently, I reinstalled Windows 2000 (IIS 5.0) and PHP 4.03pl1. Since then, no cookies are being sent to the clients. No error is being reported. I change the PHP installation to 4.04, but I still have the same problem. I can't do session handling or anything without cookies. HELP PLEASE. Any

[PHP] IIS5.0/PHP4.03 killing all sessions. HELP!!!!

2001-05-18 Thread Diego Fulgueira
Hi!. I have the following problem (we are going crazy about it!!) and i think there's many people out there that have experienced the same thing: A session created in one page is killed on the next one. Check an example: PAGE 1: session_start(); session_register(myvar);

RE: [PHP] Forms with Field Arrays and JavaScript

2001-05-02 Thread Diego Fulgueira
After several tries, I am convinced there is no way to do it. I went around the problem by using dinamic field names (var1, var2, var3, etc) and then reading them using $HTTP_POST_VARS[var.$i], where $i would be your former index to the array. For example: The form coud have HTML code like this:

RE: [PHP] Use of special characters in filenames results in IE problems

2001-04-20 Thread Diego Fulgueira
The is no function that i know specific to do that. But you can work it out with a RegExp. Try: $fileName=ereg_replace("_", "[^A-Za-z0-9_%]", $fileName); Cheers!! -Original Message- From: Floyd Piedad [mailto:[EMAIL PROTECTED]] Sent: Thursday, 19 April, 2001 11:24 PM To: [EMAIL

[PHP] Cache Control with forms

2001-04-19 Thread Diego Fulgueira
Hi everyone! I have the following problem: I don't want any of my site's pages to be saved on any browser's cache. Yet, I want all HTML forms to keep their data when the user changes to another page without submiting and then comes back using the back button. I have seen changing the

[PHP] Reading PHP.INI not from C:\WINNT

2001-04-02 Thread Diego Fulgueira
Hi! I can't make php.exe to read the configuration file, php.ini, from another path different from c:\winnt\. This location seems to be the default, but I want to change it to any other. I tried erasing php.ini from C:\winnt\ and I thought php.exe would read the php.ini siting next to it (in the

[PHP] XML Newbie. HELP!

2001-03-16 Thread Diego Fulgueira
Hi! Ok, this is not a question about PHP, but since this is such a great discussion forum, I am certain it is a good place to get started with a new technology. The thing is I have a DTD specification and I want to translate it into a DB schema, and then create an "add-delete-modify"

[PHP] XML Newbie.!

2001-03-16 Thread Diego Fulgueira
Hi! Ok, this is not a question about PHP, but since this is such a great discussion forum, I am certain it is a good place to get started with a new technology. The thing is I have a DTD specification and I want to translate it into a DB schema, and then create an "add-delete-modify"

[PHP] Php.exe doesn't load extensions when invoked from the command prompt.

2001-02-19 Thread Diego Fulgueira
Hi! Id like to run a script by typing the following line at the command prompt: php.exe -C myphp.ini -f c:\htdocs\mysite\myscript.php This works fine, except it doesn't load any extensions (dlls), even if myphp.ini is configured to do so. Therefore, It doesn't recognize functions such as

[PHP] Passing variables to a scripting engine... (like php)

2001-02-15 Thread Diego Fulgueira
Ok. I already posted a question asking how to pass parameters to php.exe when running it directly from the command prompt. However, i've noticed the matter is a bit more complex than i had thought. I will reformulate my question: How the h--- does any Web Server passes information like the URL

RE: [PHP] Passing variables to a scripting engine... (like php)

2001-02-15 Thread Diego Fulgueira
? JOE STUMP WROTE: Yeah - like I said php foo.php -url http://www.mydomain.com/myfile.php in foo.php echo $argc;// should be 3 echo $argv[0]; // will be the filename echo $argv[1]; // will be -url echo $argv[2]; // will be the url --Joe -Original Message- From: Diego Fulg

[PHP] mktime() not allowing dates before 1970

2001-01-25 Thread Diego Fulgueira
I know the UNIX epoch is 1/1/1970 and that mktime() returns the number of seconds between that date and the date specified by its parameters. If this date is before 1/1/1970, it always returns -1, not a large negative number, which would be more reasonable, i think. The question is: How can I

RE: [PHP] help me!! Cookie

2001-01-18 Thread Diego Fulgueira
When not explicitly set, a cookie works only for the domain where it was originally set. That means that if the user visits your website using the server IP address, he will receive a cookie that will not work when he uses the domain name instead of the IP address. Therefore, I recomend you set

[PHP] Forms with Field Arrays and JavaScript

2001-01-12 Thread Diego Fulgueira
Hi! I was wondering if someone knows, or can think of a way to go around this problem i have. The thing is i am working with a form with a field array. Each field is something like: input name="myfields[]" type="text" When i receive the posted data, I can access the "myfields" array. This is