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 suggestion doesn't do it for you, I once used the following
function to set cookies and it worked for me:

function MySetCookie
($CkyName, $CkyVal, $exp, $pth, $Domain)
{
 $exp = strftime("%A, %d-%b-%Y %H:%M:%S", $exp);
 $cookiestr = sprintf ("%s=%s; domain=%s; path=%s; expires=%s",
 $CkyName, $CkyVal, $Domain, $pth, $exp);
 $mycky = (isset($mycky) ? "$mycky\n" : "")."Set-Cookie: $cookiestr";
 header($mycky);
}


Cheers,
Diego

- Original Message -
From: "Nicole" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 03, 2003 3:57 PM
Subject: [PHP] Too Advanced? Re: Cookies & Hidden Image


> Is this question too advanced for this newsgroup? Is there a better
> newsgroup to post this one too?
>
> Thanks,
>
> --
> Nicole
>
>
> "Nicole" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> >
> > I am working on a script that uses cookie to store some info on the
client
> > side.  The user will click a link that contains info about where the
link
> > was placed. The script will then store that info so that when the user
> > returns later and makes a purchase, I can see where they came from.
> >
> > The problem I am having is this:
> >
> > The link is a redirect url that first goes to one domain where the
cookie
> is
> > created by. Then they are taken to the site where products are sold.
> >
> > Then, after they make a purchase, they are taken to a thank you page
that
> > has a hidden tracker to track that sale.
> >
> > http://trackerurl.com/?var=1&var=2&blahbla height=0 width=>
> >
> > The image loads the script from a different domain (where the cookie was
> > initialy created by).  The problem now is that the script gets a blank
> > cookie when using the hidden image to load the script.
> >
> > So does anyone know why this is happening?
> >
> > I have   setCookie('CookieName', $value, $expires);
> >
> > Then I try to retrieve that cookie again later with
> $_COOKIE['CookieName']
> > ... but the value stored is not there when the script is called from the
> > hidden image.  HOWEVER, the value is there when the script is called
> > directly.
> >
> > Any ideas?
> >
> > Thanks!!
> >
> > Nicole
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 winamp, but
only on the server.

What you need is a lower level techonolgy. To do this, i would try to
approach the problem with C/C++ or VisualBasic and then build an interface
to make it work from PHP. But this would be kinda messy.

Good luck. I really hope you don't give up on this, because i think noone
has ever done anything like it, and is always good to know that we people on
this mailing list, are each day more powerful.

CHEERS.
Diego.

- Original Message -
From: "John Herren" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 21, 2003 9:25 PM
Subject: [PHP] controlling winamp with COM


> Is there any way to control an open winamp application in php? I want to
> use php as a scheduler to play Winamp. The API has system calls to do
> so, but I don't know how to implement the windows calls.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 suggest you 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 each session.
Open this file in notepad and you should find names of session variables and
their values. If all this is correct, check what session cookies is sending
your browser to the server (Netscape is very suitable for doing this).
PHPSESSID should be one of them, if not, you are not registering your
session correctly.

Cheers.



- Original Message -
From: "Beauford.2002" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "'PHP General'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 12:44 PM
Subject: Re: [PHP] PHP and IIS - More info


> Further note that it is not just this script, but many PHP scripts that I
> run on IIS - they all work perfectly on Apache (on Windows and Linux)..
>
> - Original Message -
> From: "John W. Holmes" <[EMAIL PROTECTED]>
> To: "'Beauford.2002'" <[EMAIL PROTECTED]>; "'PHP General'"
> <[EMAIL PROTECTED]>
> Sent: Wednesday, March 19, 2003 12:21 PM
> Subject: RE: [PHP] PHP and IIS - More info
>
>
> > > These are some of the errors I am getting
> > >
> > > Notice: Undefined index: login in
> > > C:\Inetpub\wwwroot\..\login\checklogin.php on line 74
> > >
> > > and 75, and other similar errors.
> > >
> > > Line 74 is: $login = $HTTP_SESSION_VARS['login'];
> > > Line 75 is: $password = $HTTP_SESSION_VARS['password'];
> > >
> > > Another one is: echo $HTTP_ENV_VARS["QUERY_STRING"];
> >
> > There is no 'login' or 'password' index in the $HTTP_SESSION_VARS array.
> > How are you registering these variables? Try using the new method with
> > $_SERVER.
> >
> > ---John W. Holmes...
> >
> > PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> > today. http://www.phparch.com/
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 each session.
Open this file in notepad and you should find names of session variables and
their values. If all this is correct, check what session cookies is sending
your browser to the server (Netscape is very suitable for doing this).
PHPSESSID should be one of them, if not, you are not registering your
session correctly.

Cheers.


- Original Message -
From: "Beauford.2002" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 10:38 AM
Subject: [PHP] PHP and IIS - More info


> These are some of the errors I am getting
>
> Notice: Undefined index: login in
> C:\Inetpub\wwwroot\..\login\checklogin.php on line 74
>
> and 75, and other similar errors.
>
> Line 74 is: $login = $HTTP_SESSION_VARS['login'];
> Line 75 is: $password = $HTTP_SESSION_VARS['password'];
>
> Another one is: echo $HTTP_ENV_VARS["QUERY_STRING"];
>
>
> Thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 request
(in this case: http://localhost/). I don't know why this happens.

Something else: The PHP manual recommends adding the line:

ScriptAlias /php/ "c:/php/"

to the http.conf file. But I don't want ONLY the files under /php/  to be
interpreted
as scripts. Rather, I want ALL the files in my documentRoot directory to be
interpreted as scripts.

Any ideas? Thanks in advance


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 a script that 
resides in the same directory as the extension file (_php.dll). Also, I've tried 
setting extension_dir = c:\inetpub\wwwroot  without success.

Any ideas, please?
Thanks in advance.


[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?  A
php extension (dll) would be great. If it works only for one format (gif or
jpg) is fine.
Thanks in advance for any tip.

Cheers, Diego.




[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, when i try to access the object's
methods and properties. No error message is displayed.

Help, please! I need this funcionality not only to send mails, but for a
bunch of other things.

Any ideas will be greatly appreciated.
Cheers and thanks in advance,
Diego.





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 (should appear using
phpinfo()).
3. Make sure a file named with the value of the PHPSESSID cookie exists on
the server.

I solved the problem by turning off session.auto_start on php.ini and then
using the following code to start the session:

function MySetCookie
($CkyName, $CkyVal, $exp, $pth, $Domain)
{ 
$exp = strftime("%A, %d-%b-%Y %H:%M:%S", $exp); 
$cookiestr = sprintf ("%s=%s; domain=%s; path=%s; expires=%s", 
$CkyName, $CkyVal, $Domain, $pth, $exp); 
$mycky = (isset($mycky) ? "$mycky\n" : "")."Set-Cookie: $cookiestr"; 
header($mycky); 
} 
session_start();
MySetCookie("PHPSESSID",session_id(),0, "/", "");

Make sure this code appears before any header is sent, that is, before any session, 
cookie or header instruction.
If you do all this and still have the same problem, try registering each session 
variable that you are going to use just after starting the session. I don't know why, 
but sometimes PHP requires all session variables registered before you can access 
their values.

Hope it's been of some help.
Cheers, 
Diego.



-Original Message-
From: Tjelvar Eriksson [mailto:[EMAIL PROTECTED]]
Sent: Monday, 25 June, 2001 7:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Session-problems in linux


Hi everyone,
I can't get the sessions working in linux.

I changed:
/usr/local/lib/php.ini session.auto_start = 1

so when the browser go to the page, a cookie is recieved.

In the /tmp-dir a file is created and everything looks great.

However, when I register a variable and set it to a value,
only the name, not the value is stored. I've tried to store
strings, arrays, integers but no luck.

I do:
session_register("foo");
$foo="Great day";

and the file will only contain ":foo|" with no accompanying value.

I'm really stuck here, and everything works fine in windows
but not in RH7.1. I would be very greatful for any hints here.

/t eriksson




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 clues will be greatly appreciated.
Thanks in advance,
Cheers,
Diego.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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");
$myvar="hello";
PAGE 2:
session_start();//A new session_id is generated...!!
//...Instead of using the already created one...!
//...Even when PHPSESSID is passed on as a 
get-variable!!.
echo $myvar;  //$myvar does not exist!!!.
echo $HTTP_SESSION_VARS["myvar"]; //$HTTP_SESSION_VARS["myvar"] does not
exist either!!!.

Here are some configuration parameters I am using:

session.use_cookies ON (I tried OFF also without success).
session.auto_start  OFF (I tried ON also without success).
session.use_trans_sid ON (I tried OFF also without success).
register_globals ON
track_vars ON

HERE ARE SOME CLUES:
1.The session files in the server are being written fine, their contents
look fine MOST of the time, although sometimes not all session vars or
values are being written or files are empty. Read and write permissions in
the directory have been double checked.

2.Sometimes sessions last trough one or two pages after the first
session_start(), but then they are killed on each and every page.


HELP PLEASE!!
Any ideas will be greatly appreciated since I've tried almost all that has
come to my mind.

THANKS A LOT IN ADVANCE.
Cheers to everyone,
Diego.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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:





Each field can be referenced by JavaScript code like this:

document.myform.myvar1.value="hello";

Or dynamically like this:

myfield=new array();
for(i=0;;i++)


if(!eval("document.myform.myvar"+i)) break;
myfield[i]=eval("document.myform.myvar"+i);
}
myfield[1].value="hello";

When the form is submitted, asuming, method=POST, then you get the field
values like this:

$myvars=array();
for($i=0;;$i++)
{
if(empty($HTTP_POST_VARS["myvar".$i]) break;
$myvars[$i]=$HTTP_POST_VARS["myvar".$i];
}

Hope it helps.
Cheers, Diego.
  -Original Message-
  From: Utopia [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, 01 May, 2001 10:32 PM
  To: [EMAIL PROTECTED]
  Subject: Re: [PHP] Forms with Field Arrays and JavaScript


  Hello,

  I see you sent this back in January. I'm having the very same problem.

  Could you PEEEAAASSEEE tell me how to assign a value to the
'myfields[]' text field using JavaScript. I can't make it happen.


  Thanks.

  Tiffany
  
  THIS WAS YOUR MESSAGE ON THE BOARD
  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 have client JavaScript code to validate
the
  form data. But I can't make reference to a form object called myfields[]
or
  myfields[5] or just myfields. The property name of the javascript object
is
  set to "myfields[]", but reference to myfields[][5] or
  document.myform.fields["myfields[]"] doesn't work either.


  Any suggestions will be greatly appreciated.
  Thanks in advance.





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 PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] Use of special characters in filenames results in IE
problems


Hi,

I discovered a bug in my program for uploading files, which stores the
filename in the database in order to create a link for it on the web page in
the future.  The bug is when the filename makes use of special characters
(e.g. Oplæg).  When I create a link to the file, the link works with
Netscape.  With IE however, it says that file is not found.  I discovered
that
if I use the "encoded" version of the file name ("Opl%e6g") it works on both
IE and Netscape.  What function or code is used to convert to this format?

Thanks!
Floyd


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Cache Control with forms

2001-04-20 Thread Diego Fulgueira

Rasmus, thanks a lot!! Your information has been very helpful because now I
know more ways to play with the headers!.
Still, I am almost sure that it's possible to do what I want to do because I
think I've seen such behaviour in other websites, for example Yahoo! Mail
(note that the site does not have to be programmed in PHP because we are
talking about then client behaviour, not the server's).

Thanks a lot again, I am sure with your information I'll be able to work it
out... and then I'll post the solution here!

Cheers, Diego.

-Original Message-
From: 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 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.cache_limiter configuration option to
> 'private' instead of 'nocache' works to make all forms keep their data,
but
> then all pages are diplayed from the browser's cache even after refreshing
> several times!. I want a point in between, but I don't know how to get
> there.
>
> By the way, do you know what do the values that session.cache_limiter  can
> take mean? (nocache, private and public)

When you set it to 'nocache' you get a set of HTTP headers that look like
this:

Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache

That forces things to not be cached anywhere.

The 'private' setting sends these headers:

Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: private, max-age=10800, pre-check=10800

The expires header is set to a time in the past to force non-HTTP 1.1
compliant caches not to cache the page.  For HTTP-1.1 caches that
understand the cache-control header the page will be cached only in
private caches (ie. the end-user http-1.1 compliant browser) for the time
specified by the session.cache_expire setting.


The 'public' setting sends headers like this:

Expires: Thu, 19 Apr 2001 20:57:16 GMT
Cache-Control: public, max-age=10800

Basically this means that the page is allowed to be cached in both public
(like AOL's proxy-cache) and private caches for the time specified by
session.cache_expire

And no, I don't know of a way to do what you want.  I don't think you can
have the back button working and at the same time not allow private
caching.

-Rasmus


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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.cache_limiter configuration option to
'private' instead of 'nocache' works to make all forms keep their data, but
then all pages are diplayed from the browser's cache even after refreshing
several times!. I want a point in between, but I don't know how to get
there.

By the way, do you know what do the values that session.cache_limiter  can
take mean? (nocache, private and public)

Thanks a lot you are all very kind.
Cheers, Diego.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 same directory), but it didn't. It sees
php.exe just doesn't read ANY php.ini if it does not find it in c:\winnt\.

This problem is important for me because I want to work with different
configuration files for each of my sites.

Any clue?

Thanks a lot.
Cheers.
Diego.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

OK!! It might seem I am asking too much, but I don´t even know if this can
be done, so any comments will appreciated. It would be great if you just
gave me a link to a good XML and DTD tutorial.

I also want to know if I can create XML documents with PHP, what kind of
software do i need to parse those documents, and how can I put the data in
my DB. Any clue, and I mean ANY, will be appreciated.

THANKS A LOT IN ADVANCE!
Cheers, Diego.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

OK!! It might seem I am asking too much, but I don´t even know if this can
be done, so any comments will appreciated. It would be great if you just
gave me a link to a good XML and DTD tutorial.

I also want to know if I can create XML documents with PHP, what kind of
software do i need to parse those documents, and how can I put the data in
my DB. Any clue, and I mean ANY, will be appreciated.

THANKS A LOT IN ADVANCE!
Cheers, Diego.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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_query(). (I'm using an NT platform).

Can any one help?

Thanks a lot.
Cheers, Diego.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-02-15 Thread Diego Fulgueira

...But a scripting engine can process A LOT of information (think about how
much information can be sent with a HTML form in posted variables). Apache
and IIS do not call PHP.EXE sending all posted variables inside command line
arguments... So, how do THEY do it???

Thanks a lot for the patience...
Cheers Diego.

Michael Geier WROTE:

you can pass the $ARGV array as command line parameters

/script.php arg1 arg2

script.php
#!/path/to/php -q



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 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)


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 being
processed, posted variables, etc, etc, to a scripting engine???

I've noticed it is not through command line arguments... Could it be using
enviroment variables...?

The initial purpose of this was to schedule a script to be executed on a
periodic basis... but know I am very curious!!
Still, i will greatly appreciate workarounds.

THANKS A LOT AGAIN.

Cheers, Diego.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 being
processed, posted variables, etc, etc, to a scripting engine???

I've noticed it is not through command line arguments... Could it be using
enviroment variables...?

The initial purpose of this was to schedule a script to be executed on a
periodic basis... but know I am very curious!!
Still, i will greatly appreciate workarounds.

THANKS A LOT AGAIN.

Cheers, Diego.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 how to pass the URL and other parameters needed.

THANKS A LOT!!!
Cheers, Diego.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 the number of seconds ellapsed between any
date in the past and today?

Thanks in advance.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 the
domain property of the cookie to the name of your domain (not the IP or
"localhost"). This way, you will make explicit in which enviroment the
cookie works.
I am not familiarized with the sintax you are using, I usually use setcookie
and session_register for a similar purpouse.

Hope I'd been of any help.
Cheers.

PD. Why don't you publish your problem to the whole php list?
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, 18 January, 2001 9:59 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] help me!! Cookie


  this is not a span mail i wanna only ask you a question of php argument,
please help me! i'm working with php3 and IIS, i had set cookie with: name,
$session->cookie, $session->timeid+3600, "/"); ?> but these cokkie work
right only on localhost and not on the others computer of the LAN, the
options setting of internet enable Cookie, where is the problem? thank you
!!!

  Per disattivarsi dalla mailinglist :
  http://www.e-smtech.com/service/multimail/delvis.php3




[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 have client JavaScript code to validate the
form data. But I can't make reference to a form object called myfields[] or
myfields[5] or just myfields. The property name of the javascript object is
set to "myfields[]", but reference to myfields[][5] or
document.myform.fields["myfields[]"] doesn't work either.

Any suggestions will be greatly appreciated.
Thanks in advance.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





[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-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]