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 suggesti

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 with

[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 sugges

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 for

[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 r

[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 fro

[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] 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 li

RE: [PHP] Session-problems in linux

2001-06-25 Thread Diego Fulgueira Pastor
I had EXACTLY the same problem about a month a go, but using IIS on Win2k. The session file contains only ":foo|", so it's just the same. There are a couple of things to check: 1. Make sure the browser is receiving the cookie. 2. Make sure the browser is returning the cookie (shoul

[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 clue

[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 PROTECTE

RE: [PHP] Cache Control with forms

2001-04-20 Thread Diego Fulgueira
m: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, 19 April, 2001 8:34 PM To: Diego Fulgueira Cc: Php-General Subject: Re: [PHP] Cache Control with forms > Hi everyone! I have the following problem: > I don't want any of my site's pages to be saved on any browser's cac

[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 session.cac

[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.!

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" application.

[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" application.

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

2001-02-19 Thread Diego Fulgueira
Hi! I´d 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 mysql_

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

2001-02-15 Thread Diego Fulgueira
[0]; // will be the filename echo $argv[1]; // will be -url echo $argv[2]; // will be the url --Joe -Original Message- From: Diego Fulgueira [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 4:45 PM To: Php-General Subject: [PHP] Passing variables to a scripting engine... (like

[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 be

[PHP] Using PHP from the command line

2001-02-15 Thread Diego Fulgueira
Hi!! I was wondering if anyone knows how to pass parameters to PHP.EXE when invoked from the command line (DOS prompt). I know this shouldn't differ too much from the Linux version, so anyone who has scheduled scripts to run using CRON should have an idea, i guess. In particular, I don't know ho

[PHP] Indexing Engine

2001-02-06 Thread Diego Fulgueira
I was wondering if anyone around knows of a tool (free if possible) to index all the pages of my website and implement a search engine. I prefer it to run on NT. THNKS!! Diego Fulgueira. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[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 know

[PHP] Some Code for Uploading Images...

2001-01-23 Thread Diego Fulgueira
Hi! I know how to upload images. But I will be very grateful if anyone around has some code to do that and is willing to share it with me. I have all kind of algorithms in PHP I could share too, just tell me what you need. By the way, do you know of a site with PHP samples? Thanks a lot!. -- PH

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 th

[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: When i receive the posted data, I can access the "myfields" array. This is fine. The problem is within my form i

[PHP] For RegExp Experts.

2001-01-10 Thread Diego Fulgueira
Does anyone around knows the regular expression that matches all the ocurrences of a word (p.e. "needle") not within PHP code, i.e., outside the tags? By the way, is there a good online tutorial or reference on regular expressions? Thanks a lot. -- PHP General Mailing List (http://www.php.ne

[PHP] Each site with its php.ini?

2001-01-10 Thread Diego Fulgueira
Hi. Does anybody knows how to have different configuration options, that is, different php.ini files, for several different sites that reside on the same server? I have IIS and the CGI version of PHP 4.04. Thanks in advace. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma