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
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
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)
multipart
content to a browser?
--
======
D. D. Brierton[EMAIL PROTECTED] www.dzr-web.com
Trying is the first step before failure (Homer Simpson)
=
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
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
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
://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
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
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
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
ssing something here?
Thanks
Mike D
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
{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
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
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"
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"
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
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
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
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
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
> 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
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
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
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
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
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);
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
>
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]
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
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
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
contents of the email to the
php script...
Thanks in advance!
mike D
found nothing.
Msytified,
Mike D
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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!