[PHP] Question on the list() function

2001-09-09 Thread d
I am a newbie and having some problems with a function I found in a script: while(list($key,list($tag,$data))=each($array)) >From what I have read of list(), what I assume is happening here is that its takeing a 2 dimensional array and assigning the key value pairs accordingly, so that I can the

[PHP] Re: Question on the list() function

2001-09-10 Thread D
TED]>... >I don't think this is correct! > >You can't do this: > >list($a, $b) = variable! >which is the case in: list($key, list($tag, $data)) = each($array) > >you can use: list($key, $value) = each($array) > > >"D" <[EMAIL PROTECTED]> wrot

[PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread D. D. Brierton
ne point me in the right direction? TIA, Darren -- ========== D. D. Brierton[EMAIL PROTECTED] www.dzr-web.com Trying is the first step before failure (Homer Simpson)

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread D. D. Brierton
multipart content to a browser? -- ====== D. D. Brierton[EMAIL PROTECTED] www.dzr-web.com Trying is the first step before failure (Homer Simpson) =

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread D. D. Brierton
t "Content-Disposition: attachment; filename=foo.tar.gz\r\n\r\n"; > readfile("./foo.tar.gz"); > > print "---Boundary-12399--\r\n"; > print "\r\n"; > > ?> > > > Note the format of the "Boundary" headers, especi

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread D. D. Brierton
tar.gz\r\n\r\n"; > readfile("./foo.tar.gz"); > > print "---Boundary-12399--\r\n"; > print "\r\n"; > > ?> > > > Note the format of the "Boundary" headers, especially the dashes. -- == D. D. Brierton[EMA

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-22 Thread D. D. Brierton
dfile("./foo.tar.gz"); > > print "---Boundary-12399--\r\n"; > print "\r\n"; > > ?> > > > Note the format of the "Boundary" headers, especially the dashes. -- == D. D. Brierton

[PHP] Robustly using XSLT across different versions of PHP?

2005-04-20 Thread D. D. Brierton
://uk.php.net/manual/en/ref.xslt.php http://uk.php.net/manual/en/ref.xsl.php depending on their availability? TIA. Best, Darren -- == D. D. Brierton[EMAIL PRO

[PHP] What else can cause "unexpected T_SL" error other than heredoc?

2004-11-25 Thread D. D. Brierton
ings, nor does it contain anywhere the strings "<<" or ">>". So what could be the cause of the T_SL error? This is PHP 4.3.8 on Linux kernel 2.4.20 and Apache 1.3.31. TIA, Darren -- == D. D. Brie

Re: [PHP] What else can cause "unexpected T_SL" error other than heredoc?

2004-11-25 Thread D. D. Brierton
On Thu, 25 Nov 2004 06:26:22 -0600, Greg Donald wrote: > On Thu, 25 Nov 2004 12:17:01 +0000, D. D. Brierton <[EMAIL PROTECTED]> wrote: >> We've been getting the following error: >> >> [error] PHP Parse error: parse error, unexpected T_SL in >> /foo/bar.php

[PHP] strip php tags from code ?

2003-01-12 Thread David D
I only want to keep html code of a page. I want to remove php tags. Some tell that strip_tags is not adapted. sample of what i want to do: na -> na php tags can be : or or /i Merci. . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] include_path doesn't seem to work

2003-02-07 Thread Mike D
ssing something here? Thanks Mike D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form POST file upload mystery

2003-03-04 Thread Mike D
up in the $_FILES array arfter submitting... Array ( [userfile] => Array ( [name] => linker2_0_4.tar [type] => application/x-tar [tmp_name] => /temp/phpFSoKmc [size] => 0 ) ) thanks Mike D

[PHP] session not persisting

2003-06-03 Thread Eric D.
Hi, I have two very simple php scripts and the second srcipt is not seeing the variables session_registered by the first script. I'm running the latest version of php. And have both "register_globals" and "track_vars" set to "ON". Well, the first script prints out the session var fine, but not th

[PHP] php session not persisting

2003-06-03 Thread Eric D.
Hi, I have two very simple php scripts and the second srcipt is not seeing the variables session_registered by the first script. I'm running the latest version of php. And have both "register_globals" and "track_vars" set to "ON". Well, the first script prints out the session var fine, but not th

Re: [PHP] php session not persisting

2003-06-04 Thread Eric D.
{echo "false";} echo "sess_var = $_SESSION[sess_var]"; echo "The content of \$sess_var is $sess_var"; // session_unregister("sess_var"); ?> "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday

[PHP] php session not persisting from page to page

2003-06-04 Thread Eric D.
Hi, I have two very simple php scripts and the second srcipt is not seeing the variables session_registered by the first script. I'm running PHP-4.3.1. And have both "register_globals" and "track_vars" set to "ON". Well, the first script prints out the session var fine, but not the second one. As

Re: [PHP] php session not persisting

2003-06-04 Thread Eric D.
Thanks Kirk! I have all of the conditions you set out met. And still doesn't work. I also added session__is_registered("sess_var") to check and it tells me that it's not registered. 1st script - page1.php: "; //echos fine here ?> Next page 2nd script - page2.php: ";} else {echo "false"

Re: [PHP] php session not persisting

2003-06-04 Thread Eric D.
Thanks Kirk! I have all of the conditions you set out met. And still doesn't work. I also added session__is_registered("sess_var") to check and it tells me that it's not registered. 1st script - page1.php: "; //echos fine here ?> Next page 2nd script - page2.php: ";} else {echo "false"

Re: [PHP] php session not persisting

2003-06-04 Thread Eric D.
Thanks again Kirk. session_id() is not being passed correctly. The two pages contain different page ids. I had "display_errors = ON" in php.ini and received the following msgs: Notice: Undefined index: sess_var in D:\Program Files\Apache Group\Apache2\htdocs\page2.php on line 13 sess

[PHP] vpopmail functions

2003-06-23 Thread David D
on my machine ... i d like to manage account via php ... Is there any extension to do so ? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] please, php vpopmail windows

2003-06-24 Thread David D
Hi, Can someone compile vpopmail extension for me ? http://www.ionium.org/php/php_vpopmail-0.1.tar.gz I need a php_vpopmail.dll ... I have nothing for compiling this, so if someone can do easily ... Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] an array_key_exists() substitute for php 4.0> <4.1 ?

2002-07-25 Thread David D
hello all, I download a gni script path2vars that manipulate query_string for web crawlers. But I have php 4.06 that doesnt support function : uses array_key_exists() (PHP >= 4.1.0). Is there a way to substitude it ? Is there a way to detect php version and incluse the functions or it substitute

[PHP] I didnt understand the how work pathtovars, a php gpl script

2002-07-25 Thread David D
Hello, I was looking for a query_string wrapper for web crawlers I found pathtovars : http://www.phpclasses.org/browse.html/package/561.html English is not my native language. I didnt manage to use efficently this script ! Even with the sample ! I don't know how to map url ? How to generate an

Re: [PHP] I didnt understand the how work pathtovars, a php gpl script

2002-07-25 Thread David D
> would look like this: > http://www.domain.com/script.php?var1=value1&var2=value2 > there would be a document name << script.php >> > followed by the << ? >> > then variable and value pairs << var1=value1 >> > separate each variable/value pair with an ampersand << & >> > > Hope this helps > > Bre

[PHP] Re: I didnt understand the how work pathtovars, a php gpl script

2002-07-25 Thread David D
I make my own : What u think about : begin "; echo "REQUEST_URI $REQUEST_URI "; echo "SCRIPT_NAME $SCRIPT_NAME "; echo "PATH_INFO $PATH_INFO "; echo "PATH_TRANSLATED $PATH_TRANSLATED "; // Array ( ) Array ( ) PHP_SELF /path2vars/index.php/var1,val

[PHP] $http_host use case

2002-08-08 Thread David D
Hi all, I make 2 sites with 2 domain names that use same scripts, Each has got its html templates in a special dir selected judgging from $HTTP_HOST values. I was wondering me how a web crawler (search engine robot) could refer those pages. Would crawler bring that parameter in order to refer we

Re: [PHP] $http_host use case

2002-08-09 Thread David D
You re right i will make a if statement ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] counting number of records in a MySQL table; how do I get

2002-10-03 Thread Jason D
An alternative way is to add a primary or unique key and make the code snippet like this: mysql_query("INSERT ignore into AuthNum (FirstNum, LastNum, NextNum, KeyField) VALUES (1,2,3,1)",$dblink); mysql_query("Update AuthNum Set FirstNum = 1, LastNum = 2, NextNum = 3",$dbLink); If there is a r

Re: [PHP] reg exp matching/replacing

2002-10-03 Thread Jason D
Jen, Don't use eregi_replace when str_replace will do. $contents = str_replace($matches[0][$i], $blah, $contents); Also the dots should be escaped or gif and jpg without dots before them will be matched. preg_match_all('{\/*[A-z0-9_/-]+(\.gif|\.jpg)}', $contents, $matches);

[PHP] RE: Incrementing the value

2002-10-04 Thread Jason D
It's not very clear what you want but the following could be it: > i have written code such that initially it will display the value > correspond to the value 1..after every click it will increment the value > 2,3...so on..but now it is displaying the value 1 and for after each click >

[PHP] PHP include dir

2002-11-13 Thread Mike D
How do I find the PHP include dir? I looked in the .ini file but it appears that the include dir directive is commented out, here it is: ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" Do I need to uncomment this? Thanks Mike Mike Dunlop Webmaster - AWN, Inc. [E] [EMAIL PROTECTED]

[PHP] Mail Question

2002-11-13 Thread Mike D
Does anyone know of a way to achieve the following on linux/apache/qmail/php server > I want to have an email address that when people send a message to, a php script is triggered and the data of the email is extracted and inserted into a DB for use in a ticketing system. I know how to do all

Re: [PHP] PHP include dir

2002-11-13 Thread Mike D
in your web document directory HTH On Wed, 2002-11-13 at 19:48, Mike D wrote: How do I find the PHP include dir? I looked in the .ini file but it appears that the include dir directive is commented out, here it is: ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" Do I nee

Re: [PHP] Mail Question

2002-11-13 Thread Mike D
Yes we are using qmail. So all I have to do is create the .qmail-info file and have that point to a php script? - MD On Wednesday, November 13, 2002, at 12:35 PM, Jason Wong wrote: On Thursday 14 November 2002 04:12, Mike D wrote: Does anyone know of a way to achieve the following on linux

[PHP] Qmail / PHP question

2002-11-13 Thread Mike D
contents of the email to the php script... Thanks in advance! mike D

[PHP] PHP apache module question

2002-11-14 Thread Mike D
found nothing. Msytified, Mike D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] STDIN question

2002-11-14 Thread Mike D
a DB for a ticketing system. Thanks Mike D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] STDIN question

2002-11-14 Thread Mike D
2, at 05:18 AM, BigDog wrote: You would have to pass it through the "get" method... You can only pass stdin to the binary... On Thu, 2002-11-14 at 20:05, Mike D wrote: Is it possible to pass STDIN data to a php script via wget or lynx (cuz Apache is not installed in CGI mode, so

Re: [PHP] STDIN question

2002-11-14 Thread Mike D
Thanks again Jason. - MD On Thursday, November 14, 2002, at 12:38 PM, Jason Wong wrote: On Friday 15 November 2002 04:27, Mike D wrote: Thanks for the feedback BigDog and Jason Wong (you guys rock!) That's what I thought as far as the STDIN goes... My host has told me that it would scr

[PHP] Controlling CVS with PHP...

2002-06-13 Thread d gibbs
hi, I was wondering if any one had managed to controll CVS with php. I'm wanting to add/update/remove/checkin/checkout files not just view. cheers dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php + javascript hard day together ?

2002-07-13 Thread David D
Hi all, I can manage this script to work. Js warn about listid[], he doesnt like [] in a var name ! Php needs them to collect an array from form checkboxes. Here is my source : Title here!