RE: [PHP] Create Array??

2001-09-23 Thread Andrew Braund

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, 23 September 2001 15:39
 To: [EMAIL PROTECTED]
 Subject: [PHP] Create Array??
 
 
 Hi,
 
 If I have a value $num = 32; based on this how can I create an Array of 
 numbers 1 - 32, something like this...
 
 ?
 $num = 32;

 $num = 32;
 $iary = array();

 for ($i = 1; $i = $num; $i++)
 {

$iary[$i] = $i;
// if you actually wanted the array to contain 1 etc then try
// $iary[$i] = \$i\;

 // Do something
 }

// And now $iary = (1,2,3,etc

var_dump($iary);

 ?
 
 Any suggestions?? I cannot use array_push as this has to work on a PHP3 
 server.
 
 TIA
 Ade
 

-- 
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] Create Array??

2001-09-23 Thread Evan Nemerson

/* Untested */
$num = 32;
$i=Array();
for($x=1;$x=$num;$x++) {
$temp[$x]=0;
};
$i=array_keys($temp);
unset($temp);


On Saturday 22 September 2001 23:09, you wrote:
 Hi,

 If I have a value $num = 32; based on this how can I create an Array of
 numbers 1 - 32, something like this...

 ?
 $num = 32;
 for ($i = 1; $i = $num; $i++)
 {
 // Do something
 }
 // And now $i = (1,2,3,etc
 ?

 Any suggestions?? I cannot use array_push as this has to work on a PHP3
 server.

 TIA
 Ade

-- 
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] http authentication and php

2001-09-23 Thread Evan Nemerson

if you just want to output the file to the user, 
readfile(http://server.com/greendocks/locked/useradd.htm?user=blahpass=blah;); 
should work. If you want to play with the file first, file() will put it in 
an array, fopen() will create a file pointer to it, you could create your 
very own HTTP session (if you know the protocol) with fsockopen()... i'm sure 
there are more, but that's all you need (probably). I would probably use this:

$file=implode(\n,file(http://server.com/greendocks/locked/useradd.htm?user=blahpass=blah;));

if i wanted to place the whole thing in one variable, not an array.



On Saturday 22 September 2001 20:39, you wrote:
 I am trying to write a php script that will work around a http
 authentication that I do have access to. I am trying to do this so that a
 form process in my control panel can automatically have information sent to
 it from a form that a user will fill out. However, my problem is in trying
 to get PHP to automatically authenticate.


 for example:  I want to be able to call a url like this: 
 http://server.com/greendocks/locked/useradd.htm?user=blahpass=blahbut
 this url is behind a http authentication.  Is it possible to have this url
 called by a php script?

 And the second part of the question is can I do this process so it is
 completely invisible to the user that this page has been called? Because of
 course I don't want to allow users to have access to everything in my
 control panel.

 Hopefully someone knows what I'm getting at. Thanks for any help you may be
 able to provide.

 Jeff

-- 
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] Create Array??

2001-09-23 Thread Evan Nemerson

$i=Array(); would probably be better as $temp=Array(); although i THINK 
either one is redundant...

sorry

 /* Untested */
 $num = 32;
 $i=Array();
 for($x=1;$x=$num;$x++) {
   $temp[$x]=0;
 };
 $i=array_keys($temp);
 unset($temp);

 On Saturday 22 September 2001 23:09, you wrote:
  Hi,
 
  If I have a value $num = 32; based on this how can I create an Array of
  numbers 1 - 32, something like this...
 
  ?
  $num = 32;
  for ($i = 1; $i = $num; $i++)
  {
  // Do something
  }
  // And now $i = (1,2,3,etc
  ?
 
  Any suggestions?? I cannot use array_push as this has to work on a PHP3
  server.
 
  TIA
  Ade

-- 
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] Strange output by phpinfo()

2001-09-23 Thread Evan Nemerson

That is interesting. Code Red II doesn't trojan browsers, does it??? Hmm 
that's an interesting idea... Are you using a (malicious) proxy server?

That's all I can come up with...




On Saturday 22 September 2001 18:50, you wrote:
 While viewing my phpinfo() page, i got this:

 QUERY_STRING
 
 
 
 %u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucb
 d3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u%u00
 =a

 REQUEST_URI
 /default.ida?XXX
 
 
 X%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9
 090%u6858%ucbd3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0
 078%u%u00=a

 Of course I wasn't using this query for my phpinfo() page. Where did PHP
 get this information from? This info was under the header Environment
 Not that I have any troubles with this, but it seems weird to me.

 Thanks,

 Jeroen

 Ps. Of course I know what that QUERY is, but why is it in my phpinfo()
 output when I didn't use that query?

-- 
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] http authentication and php

2001-09-23 Thread Jeff Brtistow

Well the actual problem is that this file is behind a http authenticated
directory. I actually don't want the users to know the login and password
for it since it is the login for my control panel for my website. However, I
do want to be able to execute a url, this is to allow users to create their
own email addresses with pop access without requesting them from me all the
time.

I am just not sure if I can push the login and password for the
authentication window that would normally pop up, so the file is executed
behind the scenes, and the user would merely see a output of their username
and password and information on how to login to their account which would be
output as long as the file was able to be executed.

Any ideas?

Evan Nemerson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 if you just want to output the file to the user,

readfile(http://server.com/greendocks/locked/useradd.htm?user=blahpass=bla
h);
 should work. If you want to play with the file first, file() will put it
in
 an array, fopen() will create a file pointer to it, you could create your
 very own HTTP session (if you know the protocol) with fsockopen()... i'm
sure
 there are more, but that's all you need (probably). I would probably use
this:


$file=implode(\n,file(http://server.com/greendocks/locked/useradd.htm?use
r=blahpass=blah));

 if i wanted to place the whole thing in one variable, not an array.



 On Saturday 22 September 2001 20:39, you wrote:
  I am trying to write a php script that will work around a http
  authentication that I do have access to. I am trying to do this so that
a
  form process in my control panel can automatically have information sent
to
  it from a form that a user will fill out. However, my problem is in
trying
  to get PHP to automatically authenticate.
 
 
  for example:  I want to be able to call a url like this:
  http://server.com/greendocks/locked/useradd.htm?user=blahpass=blah
but
  this url is behind a http authentication.  Is it possible to have this
url
  called by a php script?
 
  And the second part of the question is can I do this process so it is
  completely invisible to the user that this page has been called? Because
of
  course I don't want to allow users to have access to everything in my
  control panel.
 
  Hopefully someone knows what I'm getting at. Thanks for any help you may
be
  able to provide.
 
  Jeff



-- 
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] Create Array?? More

2001-09-23 Thread KPortsmout

Ok, 

Thanks for the input, unfortunately it didn't help me solve my overall 
problem, so I will post that and see if anyone has any suggestions...

I am basically displaying the Usernames from a .htpasswd file like this...

$File=$Path$Directory1/.htpasswd;
$fd = fopen ($File, r);
$Content = fread ($fd, filesize ($File));
$Content=ereg_replace (\n,:, $Content);
// Explode the file using : as seperator
$MyContent = explode (:, $Content);
// Count it up
$LoU = count($MyContent)-1;
// Close the File
fclose($fd);

for ($a=0; $a  $LoU; $a+=2)
{
printf(\nTD%s/TD%sTD/TD, $MyContent[$a], $MyContent[$a+=2]);
}

This is working perfectly, but what I would like to do is display a number 
next to each one, at the moment it displays...

UserName1   UserName2
UserName3   UserName4

What I would like it to do is

1. UserName1   2. UserName2
3. UserName3   4. UserName4

I cannot figure a way to use $a because it has to skip by 2 in order not to 
display the encrypted passwords..any suggestions???

TIA
Ade

-- 
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] Create Array??

2001-09-23 Thread Alexander Skwar

So sprach »[EMAIL PROTECTED]« am 2001-09-23 um 02:09:17 -0400 :
 Hi,
 
 If I have a value $num = 32; based on this how can I create an Array of 
 numbers 1 - 32, something like this...
 
 ?
 $num = 32;
$arr = array();
 for ($i = 1; $i = $num; $i++)

$arr[] = $i;

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 3 days 19 hours 40 minutes

--
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] Create Array?? More

2001-09-23 Thread Andrew Braund

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, 23 September 2001 16:46
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP] Create Array?? More
 
 
 Ok, 
 
 Thanks for the input, unfortunately it didn't help me solve my overall 
 problem, so I will post that and see if anyone has any suggestions...
 
 I am basically displaying the Usernames from a .htpasswd file like this...
 
 $File=$Path$Directory1/.htpasswd;
 $fd = fopen ($File, r);
 $Content = fread ($fd, filesize ($File));
 $Content=ereg_replace (\n,:, $Content);
 // Explode the file using : as seperator
 $MyContent = explode (:, $Content);
 // Count it up
 $LoU = count($MyContent)-1;
 // Close the File
 fclose($fd);
 
 for ($a=0; $a  $LoU; $a+=2)
 {
 printf(\nTD%s/TD%sTD/TD, $MyContent[$a], $MyContent[$a+=2]);
 }
 
 This is working perfectly, 

perhaps not for odd numbers of users?

Try; (untested!)

echo tr\n;
for ($i=0; $i*2  $LoU; $i++){
   printf(td%d./tdtd%s/TD, $i, $MyContent[$i*2]);
   if( $i % 2){ // new line after each two entries
echo /trtr\n;
   }
}
echo /tr\n;


but what I would like to do is display a number 
 next to each one, at the moment it displays...
 
 UserName1   UserName2
 UserName3   UserName4
 
 What I would like it to do is
 
 1. UserName1   2. UserName2
 3. UserName3   4. UserName4
 
 I cannot figure a way to use $a because it has to skip by 2 in order not to 
 display the encrypted passwords..any suggestions???
 
 TIA
 Ade


-- 
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] Disk Usage

2001-09-23 Thread Scott Poarch

Well, it's an intriquing idea, but I'm not getting any success out of it.
thanks for the suggestion. I'll keep plugging away.
-- 
Scott Poarch
http://www.globalhost.com
 - - - - - - - - - - - -

 From: Matthew Loff [EMAIL PROTECTED]
 Organization: Willetts Systems
 Date: Sat, 22 Sep 2001 23:13:25 -0400
 To: 'Scott Poarch' [EMAIL PROTECTED], 'Steve Werby'
 [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: RE: [PHP] Disk Usage
 
 
 Yes, that's exactly what I'm suggesting...
 
 Say output of du -sk is:
 
 1022  .
 
 The dot represents the current directory.  By typecasting it to an
 integer, using (int), PHP will drop the dot and whitespace in between...
 
 So, typecasting 1022  . to int gives you 1022 by itself.
 
 Good luck!
 -Matt
 
 
 -Original Message-
 From: Scott Poarch [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, September 22, 2001 10:37 PM
 To: Matthew Loff; 'Steve Werby'; [EMAIL PROTECTED]
 Subject: Re: [PHP] Disk Usage
 
 
 I appreciate the help.
 
 I understand the 'du -sk', but what's the (int) all about. Are you
 suggesting using:
 
 $usage = (int)`du -sk`;
 
 in the PHP code, as in:
 
 chdir($basedir); 
 $usage = (int)'du -sk';
 print($usage is usage);
 
 ?
 
 Thanks,
 -- 
 Scott Poarch
 http://www.globalhost.com
 - - - - - - - - - - - -
 
 From: Matthew Loff [EMAIL PROTECTED]
 Organization: Willetts Systems
 Date: Sat, 22 Sep 2001 22:07:26 -0400
 To: 'Scott Poarch' [EMAIL PROTECTED], 'Steve Werby'
 [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: RE: [PHP] Disk Usage
 
 $usage = (int)`du -sk`;
 
 


-- 
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] Making session last

2001-09-23 Thread Martin

Hello!

The sessions-functions works really fine. But I got one Problem: How can
I make the php-session last more then a browser-session? When the users
closes the browser, the php-session is lost, but I want to save it for
some days and the user should get the thame session, when he returns.

I have no access to the php.ini-file. session_set_cookie_params (int
lifetime) didn't work.

Any ideas?

Martin



-- 
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] RE: MySQL and PHP problem

2001-09-23 Thread Ben Edwards

4.0.6, yes, douse this mean you have a possible solution -:)

At 06:54 A 23/09/01 , you wrote:
SpamCop - Report spam:
http://members.spamcop.net/mcgi?action=logreportid=10282302

I assume you mean PHP 4.06?

--
Billy Cravens

-Original Message-
From: Ben Edwards [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 22, 2001 7:48 PM
To: [EMAIL PROTECTED]
Subject: MySQL and PHP problem

[Reposting cos left error message out, sorry] Had a fully working
installation of MySQL 3.23 with PHP 6.0.6.  I then foolishly installed
PGP
which included PGPNet and I cant access my MySQL database from PHP.
When I
try to connect I get error 'Access denied for user: '@GREEN' to database

'subvert_cd'
', another strange thing is under MyODBC it says 'Not Found'.  I have
re-installed both PHP and MySQL (actually installed 3.23.42) after first

de-installing PHP but still no luck.

Regards,
Ben
--
This Email account is protected by http://www.spamcop.net
ALL spam is reported to ISP and there network provider
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
* Ben Edwards [EMAIL PROTECTED]   +352 091 429995 *
* Homepagehttp://www.gifford.co.uk/~bedwards *
* i-Contact Progressive Videohttp://www.videonetwork.org *
* Smashing the Corporate image http://www.subvertise.org *
* Bristol's radical newshttp://www.bristle.co.uk *
* Open Directory Project http://www.dmoz.org *
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+

-
Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




--
This Email account is protected by http://www.spamcop.net
ALL spam is reported to ISP and there network provider
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
* Ben Edwards [EMAIL PROTECTED]   +352 091 429995 *
* Homepagehttp://www.gifford.co.uk/~bedwards *
* i-Contact Progressive Videohttp://www.videonetwork.org *
* Smashing the Corporate image http://www.subvertise.org *
* Bristol's radical newshttp://www.bristle.co.uk *
* Open Directory Project http://www.dmoz.org *
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+

-- 
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] Search in Progress

2001-09-23 Thread Christian Reiniger

On Saturday 22 September 2001 14:41, Alexis Antonakis wrote:

 I am developing a simple site, in PHP4, which has three frames on it.

 The first gives you the search options and the second two, the results.

 What I was wondering was, while the database is being searched, is it
 possible to display some text in the 'results' frame stating that the
 search is in progress?

Little thing to think about: is your search so slow that you need to (or 
that it makes sense to) display an in progress text?

Go to 
http://www.google.com/search?q=e
and look at the info in the upper right corner of the page. That's how a 
search should work :)

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

These are the people who proudly call themselves hackers --
not as the term is now abused by journalists to mean a computer
criminal, but in its true and original sense of an enthusiast,
an artist, a tinkerer, a problem solver, an expert.

- ESR

--
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] Assistance Please - Two-Dimension Arrays

2001-09-23 Thread Christian Reiniger

On Sunday 23 September 2001 06:54, Jason G. wrote:
 Mark,

 PHP, at this point, does not support MultiDimension arrays.  However,
 you can get around this by placing array's inside arrays.

 Thus:

 $myarray[0] = array(element00, element01,element02);
 $myarray[1] = array(element10, element11,element12);
 $myarray[2] = array(element20, element21,element22);

 You would refrence element11 by
 $myarray[1][1];

Congratulations. You just described a multidimensional array :)

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

These are the people who proudly call themselves hackers --
not as the term is now abused by journalists to mean a computer
criminal, but in its true and original sense of an enthusiast,
an artist, a tinkerer, a problem solver, an expert.

- ESR

--
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] Upload_tmp for somebody

2001-09-23 Thread Radek Krejca

Hello,
I have question for safe mode. I can allow for some users file upload with
safe mode. In httpd.conf I have eg.:

VirtualHost xx.xx.xx.xx
ServerAdmin webmaster@somedomain
DocumentRoot /home/someuser/www
ServerName name
php_admin_value upload_tmp_dir /home/someuser/tmp
/VirtualHost

But this isn't working. Server is looking for tmp files only in /tmp.
What's wrong?
Thanks
Radek

---
Bc. Radek Kreja
www: www.ceskedomeny.cz
e-mail: [EMAIL PROTECTED]
tel: +42 0608 / 470 980
---


-- 
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] 404 error

2001-09-23 Thread Richard Baskett

I know how to get the web page that created the 404 error, but how do I get
the link that created the 404 error?  Is there a way of doing this?  Im sure
there is and that's why I am coming to you wonderful people! :)

Rick


-- 
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] Writing newlines in files

2001-09-23 Thread Big5ive

Hi!

$FTP_FILE=d:\programme\serv-u\ServUDaemon.ini;
$fp = fopen($FTP_FILE, a);
$data=\n\n[USER=$username|1]\nPassword=$pw\nHomeDir=d:\\nLoginMesFile=c:\wi
ndows\profiles\flo\my
documents\msg.txt\nDiskQuota=1|301443514202|24963514202\nAccess1=D:\-=Upload
s=-|RWLCP\nAccess2=D:\Moviez|RLP\nAccess3=D:\Music|RLP;
fwrite($fp,$data);
fclose($fp);

That's my code and i want to make newlines in the text file..the file is
text//plain but instead of a newline there are some awesome letters..

Please help me..

--
Big5ive



-- 
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] 404 error

2001-09-23 Thread Alexander Skwar

So sprach »Richard Baskett« am 2001-09-23 um 05:40:52 -0700 :
 I know how to get the web page that created the 404 error, but how do I get
 the link that created the 404 error?  Is there a way of doing this?  Im sure

Check the referer.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 3 hours 59 minutes

--
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] Arrays Data

2001-09-23 Thread Alawi Albaity

hi

how can I remove duplicted values (Data) in my array ?




__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger. 
http://im.yahoo.com

-- 
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] Strange output by phpinfo()

2001-09-23 Thread Jeroen Geusebroek

 While viewing my phpinfo() page, i got this:

 QUERY_STRING







%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucb

d3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u%u00
 =a

That is interesting. Code Red II doesn't trojan browsers, does it???
Hmm 
that's an interesting idea... Are you using a (malicious) proxy server?

Nope, no trojaned browser and no malicious proxy server. I think it
maybe a bug in PHP or Apache. I tried it again a few times today and now
the output was ok. Really weird.

Jeroen




-- 
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] Arrays Data

2001-09-23 Thread Alexander Skwar

So sprach »Alawi Albaity« am 2001-09-23 um 07:00:22 -0700 :
 how can I remove duplicted values (Data) in my array ?

array_unique

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 4 hours 35 minutes

--
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] Apache2/PHP: Undefined server variables

2001-09-23 Thread Art Boulatov

Hi,

sorry if this is a dumb question (I think I've read the docs :)

I 've just set up Apache-2.0.26-dev with php-4.0.8-dev both from CVS,
and now when I try to access the server variables like:

?php echo $SERVER_NAME  ? or ?php echo $HTTP_USER_AGENT  ?

I got Undefined variable: in the logs.

The same is for:

?php echo $HTTP_SERVER_VARS[SERVER_NAME]  ?

I played with php.ini with no effect.

Could you please tell me if this happens due to misconfiguration of 
php/apache, or thats a known issue with Apache-2.0 and php?

Also, under phpinfo() I cannot see any server variables at all, only those 
from  the shell environment.

Thanks a lot,
Art.

-- 
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] Re: Running virtualhosts under different users

2001-09-23 Thread Zenith

Can you use group and user directives under virtualhost directive??
From the apache manual, group and user directive can be used under
virtualhost directives
It can control the uid and gid of the running httpd process, with different
uid and gid...

Right, you can try it.

Adam Plocher [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I realize this is more of an apache question, not a php question, but I
 thought you guys of all people, would be able to help me...

 I have an apache server setup, hosting a number of sites.  I need one site
 to be ran under a different user so it can execute shell commands via
 system() under that user.  Does anybody know how I can do this?  I
installed
 the suexec module for apache, and either it doesn't work the way I need it
 to, or I just misconfigured it.

 I'm baffled, any information would be greatly appreciated.

 Thanks
 -Adam




-- 
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] NONE

2001-09-23 Thread Tero Tielinen

Hello!

Firs of all, sorry about my bad english.

I have a broblem, which i've tried to solve about two days now.

I have an  two-dimenssional array like this:

$array[0][id] = 2;
$array[1][id] = 3;
$array[2][id] = 4;
$array[3][id] = 5;
$array[4][id] = 6;
$array[5][id] = 7;
$array[6][id] = 8;
$array[7][id] = 9;
$array[8][id] = 10;

$array[0][kat_id] = 1;
$array[1][kat_id] = 1;
$array[2][kat_id] = 1;

$array[3][kat_id] = 3;
$array[4][kat_id] = 3;
$array[5][kat_id] = 3;

$array[6][kat_id] = 4;
$array[7][kat_id] = 4;
$array[8][kat_id] = 1;

I want to sort the array by using the id and kat_id values. I've 
tried loop like this (among many others):

for($i = 0; $i  sizeof($array); $i++)
{
   $father = $array[$i][id];
   for($j = $i; $j  sizeof($array); $j++)
   {
 if($father == $array[$j][kat_id])
 {
return_array[] = $father;
return_array[]   = $array[$j][$id];
 }
 else
 {
return_array[] = $father;
 }
   }

}

The loop dont't work. And i now the broblem in theorrtical level. The loop should test 
does the latter value in if-part ($array[$j][$id]) have any child values, but i just 
can't 
get it to work. I want the result array, in this  case, to look like this:

$array[0][kat_id] = 1;
$array[1][kat_id] = 1;
$array[3][kat_id] = 3;
$array[4][kat_id] = 3;
$array[6][kat_id] = 4;
$array[7][kat_id] = 4;
$array[5][kat_id] = 3;
$array[8][kat_id] = 1;


Can anybody help me?

Thanks,

Tero




-- 
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] OT need ImageMagick utility

2001-09-23 Thread Daniel Baldoni

G'day folks,

After telling my client that they'd quite happily install anything on their
virtual host that was needed, the chosen hosting company has now renegged and
refuses to install ImageMagick.  To make matters worse, they haven't given us
shell access so we can't compile up our own.  And, as we don't have access to
various directories (e.g. /usr/local/lib), we can't install a pre-built
dynamically-linked version.

What we really need is a statically linked copy of ImageMagick's convert
program.  If anybody can point me at such a beast, I'd much appreciate it.
If not, do you know of another utility (again, we need a prebuilt statically
linked binary) which can resize an arbitrary image into a thumbnail?

Either way, the solution needs to be compiled for FreeBSD 4.3 on an Intel
platform.

Thanks for any help.

Ciao.

-- 
---+-
Daniel Baldoni BAppSc, PGradDipCompSci |  Technical Director
require 'std/disclaimer.pl'|  LcdS Pty. Ltd.
---+  856B Canning Hwy
Phone/FAX:  +61-8-9364-8171|  Applecross
Mobile: 041-888-9794   |  WA 6153
URL:http://www.lcds.com.au/|  Australia
---+-
Any time there's something so ridiculous that no rational systems programmer
 would even consider trying it, they send for me.; paraphrased from King Of
 The Murgos by David Eddings.  (I'm not good, just crazy)

-- 
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] Re: Strange output by phpinfo()

2001-09-23 Thread Elias Santiago

That's the request string of the W32Nimda worm, it has propagated very fast
in the Internet.

Info and tool for removing it are at:
http:[EMAIL PROTECTED]

If you are running under an IIS webserver, it could be the server itself
that could be infected and sending the request string to itself.   The worm
sends various strange requests to ALL servers found with port 80 open,
including the infected server.


Jeroen Geusebroek [EMAIL PROTECTED] wrote in message
01c143d2$293ad840$0101a8c0@pipi">news:01c143d2$293ad840$0101a8c0@pipi...

 While viewing my phpinfo() page, i got this:

 QUERY_STRING
 
 
 
 %u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucb
 d3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u%u00
 =a

 REQUEST_URI
 /default.ida?XXX
 
 
 X%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9
 090%u6858%ucbd3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0
 078%u%u00=a

 Of course I wasn't using this query for my phpinfo() page. Where did PHP
 get this information from? This info was under the header Environment
 Not that I have any troubles with this, but it seems weird to me.

 Thanks,

 Jeroen

 Ps. Of course I know what that QUERY is, but why is it in my phpinfo()
 output when I didn't use that query?




-- 
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 and PHP4 w/ EAPI sharing same libs

2001-09-23 Thread Brian Curtis

Hello,

Just wondering if it's possible to have both standard PHP and PHP w/
EAPI (Apache + mod_ssl) share the same install dir (/usr/local/php/)?
Both are compiled as DSOs, if that matters.

I am running non-secure and secure Apache processes separately, hence
the two different PHP DSOs.

Thanks.

-- 
Best regards,
 Brian Curtis


-- 
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] how to get the total disk space used in a directory

2001-09-23 Thread sagar N Chand

hi all,

is there any way to get the total disk space used under a directory
including its subdirectories and all the contents.

/sagar




[PHP] Re: NONE

2001-09-23 Thread Gaylen Fraley

Why not just use the PHP function array_multisort ?

--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts

Tero Tielinen [EMAIL PROTECTED] wrote in message
1103_1001260674@hunajapuristin">news:1103_1001260674@hunajapuristin...
 Hello!

 Firs of all, sorry about my bad english.

 I have a broblem, which i've tried to solve about two days now.

 I have an  two-dimenssional array like this:

 $array[0][id] = 2;
 $array[1][id] = 3;
 $array[2][id] = 4;
 $array[3][id] = 5;
 $array[4][id] = 6;
 $array[5][id] = 7;
 $array[6][id] = 8;
 $array[7][id] = 9;
 $array[8][id] = 10;

 $array[0][kat_id] = 1;
 $array[1][kat_id] = 1;
 $array[2][kat_id] = 1;

 $array[3][kat_id] = 3;
 $array[4][kat_id] = 3;
 $array[5][kat_id] = 3;

 $array[6][kat_id] = 4;
 $array[7][kat_id] = 4;
 $array[8][kat_id] = 1;

 I want to sort the array by using the id and kat_id values. I've
 tried loop like this (among many others):

 for($i = 0; $i  sizeof($array); $i++)
 {
$father = $array[$i][id];
for($j = $i; $j  sizeof($array); $j++)
{
  if($father == $array[$j][kat_id])
  {
 return_array[] = $father;
 return_array[]   = $array[$j][$id];
  }
  else
  {
 return_array[] = $father;
  }
}

 }

 The loop dont't work. And i now the broblem in theorrtical level. The loop
should test does the latter value in if-part ($array[$j][$id]) have any
child values, but i just can't
 get it to work. I want the result array, in this  case, to look like this:

 $array[0][kat_id] = 1;
 $array[1][kat_id] = 1;
 $array[3][kat_id] = 3;
 $array[4][kat_id] = 3;
 $array[6][kat_id] = 4;
 $array[7][kat_id] = 4;
 $array[5][kat_id] = 3;
 $array[8][kat_id] = 1;


 Can anybody help me?

 Thanks,

 Tero






-- 
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] File permitions

2001-09-23 Thread recognize

I've a web-site developed in Perl and, now, I'm 
converting it to PHP.
I've a private directory in my site where I store the 
counter data (number of visitors, since when, last 
date) and other information like name, e-mail address, 
etc. of people who fill a form into the site. In Perl 
those files were created automatically, even the 
directory had 700 on permitions, in PHP I've to set 
it to 777, opening the access to those files to 
everyone.
Is there any possibility to write to files as httpd 
or system (which can write to files even with 000 
permitions)?

Thank you,

Manuel Silva
[EMAIL PROTECTED]
-
Visite http://www.lusoweb.pt

-- 
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] Disk Usage

2001-09-23 Thread Matthew Loff


Try removing the typecast to (int)...

$usage = `du -sk`;


See if that works.  If not, then either your backtick operators aren't
working (is safe mode on?) or du isn't being executed (not in the PATH
environment variable?).


-Original Message-
From: Scott Poarch [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, September 23, 2001 4:11 AM
To: Matthew Loff; 'Steve Werby'; [EMAIL PROTECTED]
Subject: Re: [PHP] Disk Usage


Well, it's an intriquing idea, but I'm not getting any success out of
it. thanks for the suggestion. I'll keep plugging away.
-- 
Scott Poarch
http://www.globalhost.com
 - - - - - - - - - - - -

 From: Matthew Loff [EMAIL PROTECTED]
 Organization: Willetts Systems
 Date: Sat, 22 Sep 2001 23:13:25 -0400
 To: 'Scott Poarch' [EMAIL PROTECTED], 'Steve Werby' 
 [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: RE: [PHP] Disk Usage
 
 
 Yes, that's exactly what I'm suggesting...
 
 Say output of du -sk is:
 
 1022  .
 
 The dot represents the current directory.  By typecasting it to an 
 integer, using (int), PHP will drop the dot and whitespace in 
 between...
 
 So, typecasting 1022  . to int gives you 1022 by itself.
 
 Good luck!
 -Matt
 
 
 -Original Message-
 From: Scott Poarch [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, September 22, 2001 10:37 PM
 To: Matthew Loff; 'Steve Werby'; [EMAIL PROTECTED]
 Subject: Re: [PHP] Disk Usage
 
 
 I appreciate the help.
 
 I understand the 'du -sk', but what's the (int) all about. Are you 
 suggesting using:
 
 $usage = (int)`du -sk`;
 
 in the PHP code, as in:
 
 chdir($basedir);
 $usage = (int)'du -sk';
 print($usage is usage);
 
 ?
 
 Thanks,
 --
 Scott Poarch
 http://www.globalhost.com
 - - - - - - - - - - - -
 
 From: Matthew Loff [EMAIL PROTECTED]
 Organization: Willetts Systems
 Date: Sat, 22 Sep 2001 22:07:26 -0400
 To: 'Scott Poarch' [EMAIL PROTECTED], 'Steve Werby' 
 [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: RE: [PHP] Disk Usage
 
 $usage = (int)`du -sk`;
 
 


-- 
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] how to get the total disk space used in a directory

2001-09-23 Thread Alexander Skwar

So sprach »sagar N Chand« am 2001-09-23 um 22:51:49 +0530 :
 is there any way to get the total disk space used under a directory
 including its subdirectories and all the contents.

Either execute du, or sum up the sizes of all the files manually in PHP.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 8 hours 48 minutes

--
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] File permitions

2001-09-23 Thread Alexander Skwar

So sprach »[EMAIL PROTECTED]« am 2001-09-23 um 19:08:20 +0100 :
 Is there any possibility to write to files as httpd 
 or system (which can write to files even with 000 
 permitions)?

With 000 permissions?  Is system an alias for root?  If not, then it's
not possible.

But normally the files should only need access for the group running the
webserver process.  Here at home, it's apache/apache.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 8 hours 49 minutes

--
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] 404 error

2001-09-23 Thread Richard Baskett

I don't think I said it clear enough :)  Sorry abou that.  This is what I
did:

?
echo Page with error: $HTTP_REFERERbr;
echo Error Link: $PHP_SELF;
?

This definitely did not work.  $HTTP_REFERER did not output anything and if
I understand correctly this just gives me the page that has the link that
was clicked on.

$PHP_SELF I was hoping would give me the link that gave the error since in
your browser it shows the address of the broken link, but alas this gave me
my 404.htm page instead, which was expected.

What I want is that a person on index.htm clicks on a link hello.htm,
that file is not found so at this point I want to be able to echo

Page with error: index.htm
Error Link: hello.htm

I hope that was a little clearer :)

Rick


 So sprach »Richard Baskett« am 2001-09-23 um 05:40:52 -0700 :
 I know how to get the web page that created the 404 error, but how do I get
 the link that created the 404 error?  Is there a way of doing this?  Im sure
 
 Check the referer.
 
 Alexander Skwar
 -- 
 How to quote:http://learn.to/quote (german) http://quote.6x.to (english)
 Homepage:http://www.digitalprojects.com   |   http://www.iso-top.de
  iso-top.de - Die günstige Art an Linux Distributionen zu kommen
 Uptime: 3 hours 59 minutes
 


--
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] http authentication and php

2001-09-23 Thread Don Read


On 23-Sep-2001 Jeff Bristow wrote:
 I am trying to write a php script that will work around a http
 authentication that I do have access to. I am trying to do this so that a
 form process in my control panel can automatically have information sent to
 it from a form that a user will fill out. However, my problem is in trying
 to get PHP to automatically authenticate.
 
 
 for example:  I want to be able to call a url like this: 
 http://server.com/greendocks/locked/useradd.htm?user=blahpass=blahbut
 this url is behind a http authentication.  Is it possible to have this url
 called by a php script?
 
 And the second part of the question is can I do this process so it is
 completely invisible to the user that this page has been called? Because of
 course I don't want to allow users to have access to everything in my
 control panel.
 

$host='server.com';
$url='/greendocks/locked/useradd.htm?user=blahpass=blah';

$authuser='foo';  // blah ?
$authpass='baz';  // blah ?

$authenc=base64_encode($authuser:$authpass);

$hdr =sprintf(GET %s HTTP/1.0\r\n, $url);
$hdr .=Accept: text/html\r\nAccept: text/plain\r\n;
$hdr .=User-Agent: Mozilla/1.0 (PHP spoof)\r\n;
$hdr .=Authorization: Basic $authenc\r\n\r\n;

$fp = fsockopen($host , 80, $errno, $errstr, 30);
if (!$fp) {
die $host open error: $errstr $errno .\n;
   }
fputs($fp,$hdr);
while(!feof($fp)) {
$buff=fgets($fp,1024);
  ... do yer thang
}
fclose($fp);


Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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 Dreamweaver / Fireworks

2001-09-23 Thread Dana Holt

Sometimes I find it easier to build web tables inside fireworks, but I also
need to embed PHP code into the table (ie. to display the date, logged in
user, etc). Well, this is a pain because fireworks overwrites the entire PHP
file every time I make a change to it. If there's no PHP to embed I just
require the HTML file with the fireworks output in it.

I am tired of cutting and pasting my PHP code! ;-)

How do you guys handle things like this?

Thanks.

--
Dana Holt / [EMAIL PROTECTED]
Xenos Online
http://www.xenosonline.com/
---
http://www.theydidmewrong.com/
http://www.shedidmewrong.com/
http://www.hedidmewrong.com/
--



-- 
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] Re: Vintage Cars

2001-09-23 Thread Rusty

Get A Permanent, Life-Time OffLine 
Ad for Only $29.95 

Less Than The Cost of a One-Day, One-Time Classified Ad in Your Local Newspaper.

See Vintage Cars by clicking on the 
thumbnail sketches at this site.

http://rustyrose.com/primelinx/home1.htm
--
To be Removed From This List Send Reply 
With Remove In The Subject Line To:
[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]




RE: [PHP] how to get the total disk space used in a directory

2001-09-23 Thread Don Read


On 23-Sep-2001 sagar N Chand wrote:
 hi all,
 
 is there any way to get the total disk space used under a directory
 including its subdirectories and all the contents.
 
 /sagar
 

$duse=`du -sk /usr/foo`;
echo $duse, 'br';

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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] Search Engines

2001-09-23 Thread Don Read

cc's trimed

On 23-Sep-2001 Heidi Belal wrote:
 Hi All,
 this may be a bit off topic, but i need/advise on
 where and how i can register a site in the top search
 engines.  I know there are all these sites where you
 can do it but do you have recommendations?
 My other question is, why do we have to pay for this,
 or what does paying provide from those where you don't
 have to pay do?
 

Yahoo, Google, Netscape, Lycos, MSN, etc. all have a submit your link 
page that you can add it yourself; or you can pay somebody to do it for you.

 I thought there were robots that go around linking
 from page to page and indexing the webpages..so that
 when a search is run the pages relevant are found, so
 what does paying do?
 

Their time to submit the link(s), the knowledge of where to submit 'em, 
their time to answer your questions.

 thanks!
 Heidi
 

Yer welcome.
That'll be $45.00, please.

-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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] formatting - generating tables with php

2001-09-23 Thread rico

I have an intermediate process that allows you to add table rows with input
fields; and while this works, for some reason, it is adding extra white
space before the table, even though the generated html does not show
additional br's or p's.

whats going on?

attached are the files in question.

TIA

--
-
Click here for Free Video!!
http://www.gohip.com/free_video/



begin 666 arrayprocr.php
M/AT;6P^#0H\:5A9#X-CQT:71L93Y!G)A2!0F]C97-S;W(\+W1I=QE
M/@T*/%-464Q%(%194$4](G1E'0O8W-S(CX\(2TM#0I!('L@=5X=UD96-O
MF%T:6]N.B!N;VYE.R!]#0I!.FAO=F5R('L@=5X=UD96-OF%T:6]N.B!U
M;F1EFQI;F4[('T-D@Q('L@9F]N=UF86UI;'DZ(%R:6%L+AE;'9E=EC
M82QS86YS+7-EFEF.R!F;VYT+7-IF4Z(#$X'0[(9O;G0M=V5I9VAT.B!B
M;VQD.WT-D@R('L@9F]N=UF86UI;'DZ(%R:6%L+AE;'9E=EC82QS86YS
M+7-EFEF.R!F;VYT+7-IF4Z(#$T'0[(9O;G0M=V5I9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^#0H\+V)O9'D^#0H\+VAT;6P^
`
end

begin 666 addtoarray.php
M/AT;6P^#0H\:5A9#X-CQT:71L93Y!G)A2!P;W!U;%T;W(\+W1I=QE
M/@T*/%-464Q%(%194$4](G1E'0O8W-S(CX\(2TM#0I!('L@=5X=UD96-O
MF%T:6]N.B!N;VYE.R!]#0I!.FAO=F5R('L@=5X=UD96-OF%T:6]N.B!U
M;F1EFQI;F4[('T-D@Q('L@9F]N=UF86UI;'DZ(%R:6%L+AE;'9E=EC
M82QS86YS+7-EFEF.R!F;VYT+7-IF4Z(#$X'0[(9O;G0M=V5I9VAT.B!B
M;VQD.WT-D@R('L@9F]N=UF86UI;'DZ(%R:6%L+AE;'9E=EC82QS86YS
M+7-EFEF.R!F;VYT+7-IF4Z(#$T'0[(9O;G0M=V5I9VAT.B!B;VQD.WT-
MD)/1%DL5$0@R!F;VYT+69A;6EL3H@87)I86PL:5L=F5T:6-A+'-A;G,M
MV5R:68[(9O;G0MVEZ93H@,3!P=#L@?0T*5$@@R!F;VYT+69A;6EL3H@
M87)I86PL:5L=F5T:6-A+'-A;G,MV5R:68[(9O;G0MVEZ93H@,3%P=#L@
M9F]N=UW96EG:'0Z()O;0[('T-B\O+2T^/]35%E,13X-CPO:5A9#X-
MCQB;V1Y/@T*#0H\:#(^07)R87D@4]P=6QA=]R/]H,CX-@T*/9OFT@
M86-T:6]N/6%RF%Y;6%K97(NAP(UE=AO9#UP;W-T/@T*#0H-CP_#0IE
M8VAO((\:6YP=70@;F%M93U(F%D9'1O7(@VEZ93TS/B([#0IE8VAO((\
M:6YP=70@='EP93US=6)M:70^(CL-C\^#0H\+V9OFT^#0H\+V)O9'D^#0H\
+VAT;6P^
`
end


-- 
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] Re: formatting - generating tables with php

2001-09-23 Thread rico

never mind hehe

--
-
Click here for Free Video!!
http://www.gohip.com/free_video/

Rico [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have an intermediate process that allows you to add table rows with
input
 fields; and while this works, for some reason, it is adding extra white
 space before the table, even though the generated html does not show
 additional br's or p's.

 whats going on?

 attached are the files in question.

 TIA

 --
 -
 Click here for Free Video!!
 http://www.gohip.com/free_video/







-- 
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] Re: formatting - generating tables with php

2001-09-23 Thread rico

wait no, arraymaker.php displays the additional table rows correctly after
adding rows with addtoarray.php, but then once submitted, arrayprocr.php
displays new additional white space before beginning the table, yet w/ no
HTML br's or p's added.

so the question still stands.

--
-
Click here for Free Video!!
http://www.gohip.com/free_video/

Rico [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 never mind hehe

 --
 -
 Click here for Free Video!!
 http://www.gohip.com/free_video/

 Rico [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I have an intermediate process that allows you to add table rows with
 input
  fields; and while this works, for some reason, it is adding extra white
  space before the table, even though the generated html does not show
  additional br's or p's.
 
  whats going on?
 
  attached are the files in question.
 
  TIA
 
  --
  -
  Click here for Free Video!!
  http://www.gohip.com/free_video/
 
 
 
 





-- 
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] Language translation

2001-09-23 Thread Gaylen Fraley

What is the most accepted method for translating an application from one
language to another?  Is it done by a table that does a search and replace,
i.e. one-to-one translation?  Or does one actually translate the code
verbatim?  Is there a white paper somewhere?

Thanks,

--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts




-- 
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] Language translation

2001-09-23 Thread Rasmus Lerdorf

Read up on gettext

On Sun, 23 Sep 2001, Gaylen Fraley wrote:

 What is the most accepted method for translating an application from one
 language to another?  Is it done by a table that does a search and replace,
 i.e. one-to-one translation?  Or does one actually translate the code
 verbatim?  Is there a white paper somewhere?

 Thanks,

 --
 Gaylen
 [EMAIL PROTECTED]
 http://www.gaylenandmargie.com
 PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts







-- 
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] Re: Sessions and include()...

2001-09-23 Thread Richard Lynch

There is no magic way for the cookies to transfer from server to server --
Cookies were specifically designed *NOT* to be transferrable, for consumer
privacy reasons.

You'll need to pass the cookie back and forth from your server to theirs by
hand

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Matthew Walker [EMAIL PROTECTED]
To: 'Richard Lynch' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, September 22, 2001 4:38 PM
Subject: RE: [PHP] Re: Sessions and include()...


 Alright. If that's the case, how do you make sure a cookie gets set for
 the remote domain? I'm working on a project to write a hosted shopping
 cart, but we want people to have the ability to include pieces of the
 display functionality on their own pages, if their host supports PHP.
 But those pieces would need to use the same session as if they were on
 /our/ server.

 -Original Message-
 From: Richard Lynch [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 21, 2001 10:25 PM
 To: Matthew Walker
 Cc: [EMAIL PROTECTED]
 Subject: [PHP] Re: Sessions and include()...

 I believe:

 include() gets parsed and executed on the server that is doing the
 include-ing, not the remote server...

 If that file has session_xxx() in it, you'll have started a session and
 whatnot on the local server.

 The remote server doesn't even have to have PHP on it at all, and its
 configuration is irrelevant, other than allowing you to read some file
 that
 happens to have PHP source code in it...  Which, by the way, is a very
 scarey concept unless you have complete security control over the remote
 server...

 --
 WARNING [EMAIL PROTECTED] address is an endangered species -- Use
 [EMAIL PROTECTED]
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm
 - Original Message -
 From: Matthew Walker [EMAIL PROTECTED]
 Newsgroups: php.general
 To: [EMAIL PROTECTED]
 Sent: Friday, September 21, 2001 11:48 AM
 Subject: Sessions and include()...


  What happens if you use include() to include a file from another
 server,
  and that file sets a session? Does the session get set for the domain
 of
  the wrapper page, or does it get set for the domain of the included
  page?
 
  --
  Matthew Walker
  Ecommerce Project Manager
  Mountain Top Herbs
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001
 
 


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

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.280 / Virus Database: 147 - Release Date: 9/11/2001

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.280 / Virus Database: 147 - Release Date: 9/11/2001



-- 
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] Strange File write Problem

2001-09-23 Thread Gary

The code below works on every server that I have tried it on, till now. 
On this server it will create the file name but will not write to it. If 
you create a file and upload it, it will erase everything but not write. 
Any Ideas why?

?php

   $filename = /path/to/file/free.txt;

  $handle= fopen($filename,'w+');

 fputs($handle, $free);

 fclose($handle);
?

TIA
Gary


-- 
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] Re: Apache2/PHP: Undefined server variables

2001-09-23 Thread Richard Lynch

Check httpd.conf to see what, if anything, is in there that might be set to
alter Apache's server variables.

If phpinfo() aren't showing them, it's probably Apache isn't sending them.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Art Boulatov [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Sunday, September 23, 2001 9:27 AM
Subject: Apache2/PHP: Undefined server variables


 Hi,

 sorry if this is a dumb question (I think I've read the docs :)

 I 've just set up Apache-2.0.26-dev with php-4.0.8-dev both from CVS,
 and now when I try to access the server variables like:

 ?php echo $SERVER_NAME  ? or ?php echo $HTTP_USER_AGENT  ?

 I got Undefined variable: in the logs.

 The same is for:

 ?php echo $HTTP_SERVER_VARS[SERVER_NAME]  ?

 I played with php.ini with no effect.

 Could you please tell me if this happens due to misconfiguration of
 php/apache, or thats a known issue with Apache-2.0 and php?

 Also, under phpinfo() I cannot see any server variables at all, only those
 from  the shell environment.

 Thanks a lot,
 Art.


-- 
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] Re: Is there a way to override safe mode to be able to read a etc/passwd file

2001-09-23 Thread Richard Lynch

You'll have to routinely copy /etc/passwd into your own directory or
something.

The whole *POINT* of safe mode is to block actions like that...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Richard Kurth [EMAIL PROTECTED]
Newsgroups: php.general
To: php [EMAIL PROTECTED]
Sent: Saturday, September 22, 2001 9:56 PM
Subject: Is there a way to override safe mode to be able to read a
etc/passwd file


 How can I read the /etc/passwd file when safe mode is turned on. is
 there a work around on this. Hear is a function I use to check if a
 username is already in use on the system. This works fine when safe
 mode is off but when it is on it gives this error.
 Warning: SAFE MODE Restriction in effect. The script whose uid is 110 is
not allowed to access /etc/passwd
 owned by uid 0 in /home/sites/home/inc/function.inc on line 462
 Warning: file(/etc/passwd) - Success in
/home/sites/home/inc/function.inc on line 462


 function pass() {
 $pass=file(/etc/passwd);
 for ($i=0; $icount($pass); $i++) {
   $pwentries=explode(:,$pass[$i]);
   if ($username == $pwentries[0]) {
  print_error(
 h2The Username $Username is already being used on this system/h2
);
exit;
 }}
 }








 Best regards,
  Richard
 mailto:[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] Re: timeouts on loops

2001-09-23 Thread Richard Lynch

No, but you can use a more general 'for' or 'while' loop and set up any
constraints your heart desires:

$start = time();
$limit = 10; # 10 second time-out
while ($start + $limit = time()  list($key, $value) = each($whatever)){
}

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Evan Nemerson [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Sunday, September 23, 2001 1:01 AM
Subject: timeouts on loops


 Is there a way to put a timeout on each iteration of a loop (foreach, to
be
 more specific)?


-- 
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] Re: Making session last

2001-09-23 Thread Richard Lynch

Your change to the setting would have to happen *before* the session_start()
and if php.ini is set to always do sessions, you can't get in before that.

You may be able to use http://php.net/setcookie to provide a time-limit for
the session id cookie so that it won't expire when the browser closes.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Martin [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Sunday, September 23, 2001 4:36 AM
Subject: Making session last


 Hello!

 The sessions-functions works really fine. But I got one Problem: How can
 I make the php-session last more then a browser-session? When the users
 closes the browser, the php-session is lost, but I want to save it for
 some days and the user should get the thame session, when he returns.

 I have no access to the php.ini-file. session_set_cookie_params (int
 lifetime) didn't work.

 Any ideas?

 Martin




-- 
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] 404 error

2001-09-23 Thread Christian Reiniger

On Sunday 23 September 2001 20:46, Richard Baskett wrote:
 I don't think I said it clear enough :)  Sorry abou that.  This is what
 I did:

 ?
 echo Page with error: $HTTP_REFERERbr;
 echo Error Link: $PHP_SELF;
 ?

Try $REQUEST_URI

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

Those who will not reason, are bigots,
those who cannot, are fools,
and those who dare not, are slaves.

- George Gordon Noel Byron (1788-1824), [Lord Byron]

--
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] All domains

2001-09-23 Thread Marius Pertravius

Sveiki, php-general,

  I want to get all doamins, that end with ru, lv, ch or lt. Is there
  any possibility to do that?


 
 2001.09.23, sekmadienis
 Marius Pertravèius
 iCQ: #125733984
 [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] Problem with paths GRR!

2001-09-23 Thread jalist

I'm getting this error message when accessing phpinfo.php ( ? phpinfo();
? ) in my root dir ...

Warning:  Failed opening '/var/www/html/phpinfo.php' for inclusion
(include_path='/var/www/html/includes/') in Unknown on line 0

I think it's something to do with the include_path or maybe doc_root in
php.ini, but whatever I set them to I get the same error. Include_path is
set to /var/www/html/includes/ (which is where my includes folder is) and
I've left doc_root blank, but as I've said I've tried pretty much every
combination I can think of. If I put the same file in a subdir it works ...

Please help - I dont have much hair left to pull out heheh.

Thanks in advance.

Steve Dunstan
[EMAIL PROTECTED]
http://ls2k.org


-- 
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] 404 error

2001-09-23 Thread Richard Baskett

Thank you :)  Yeah someone mentioned using phpinfo() to figure out what I
wanted and it worked beautifully and $REQUEST_URI was indeed the one I
needed.  Thank you!

Rick

 On Sunday 23 September 2001 20:46, Richard Baskett wrote:
 I don't think I said it clear enough :)  Sorry abou that.  This is what
 I did:
 
 ?
 echo Page with error: $HTTP_REFERERbr;
 echo Error Link: $PHP_SELF;
 ?
 
 Try $REQUEST_URI
 
 -- 
 Christian Reiniger
 LGDC Webmaster (http://lgdc.sunsite.dk/)
 
 Those who will not reason, are bigots,
 those who cannot, are fools,
 and those who dare not, are slaves.
 
 - George Gordon Noel Byron (1788-1824), [Lord Byron]
 
 -- 
 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] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread rico

Attached are the files in question.  They are used in order as such:
arraymaker.php - add more keys:elements via addtoarray.php -
arraymaker.php - arrayprocr.php

the code works.

The problem is in the final formatting in arrayprocr.php.  I notice that
whenever a new tr is added to the final table, it gets pushed further down
the page, almost as if a br has been added for each new tr...but there
is not.

I've looked it over, it looks clean.  The resulting HTML in arrayprocr.php
is clean and devoid of any extra br's or p's.

Why would this be happening?  anyone? please help.

TIA

rico

--
-
Click here for Free Video!!
http://www.gohip.com/free_video/




-- 
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] Re: formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread rico

oops, forgot to add the files in

--
-
Click here for Free Video!!
http://www.gohip.com/free_video/

Rico [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Attached are the files in question.  They are used in order as such:
 arraymaker.php - add more keys:elements via addtoarray.php -
 arraymaker.php - arrayprocr.php

 the code works.

 The problem is in the final formatting in arrayprocr.php.  I notice that
 whenever a new tr is added to the final table, it gets pushed further
down
 the page, almost as if a br has been added for each new tr...but there
 is not.

 I've looked it over, it looks clean.  The resulting HTML in arrayprocr.php
 is clean and devoid of any extra br's or p's.

 Why would this be happening?  anyone? please help.

 TIA

 rico

 --
 -
 Click here for Free Video!!
 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2T^/]35%E,13X-CPO:5A9#X-
MCQB;V1Y/@T*#0H\:#(^07)R87D@4]P=6QA=]R/]H,CX-@T*/9OFT@
M86-T:6]N/6%RF%Y;6%K97(NAP(UE=AO9#UP;W-T/@T*#0H-CP_#0IE
M8VAO((\:6YP=70@;F%M93U(F%D9'1O7(@VEZ93TS/B([#0IE8VAO((\
M:6YP=70@='EP93US=6)M:70^(CL-C\^#0H\+V9OFT^#0H\+V)O9'D^#0H\
+VAT;6P^
`
end


-- 
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] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread Matt Greer

On Sunday 23 September 2001 17:01, rico wrote:

 The problem is in the final formatting in arrayprocr.php.  I notice that
 whenever a new tr is added to the final table, it gets pushed further
 down the page, almost as if a br has been added for each new tr...but
 there is not.

I cant look at your files as they always arrive as gibberish. How are you 
encoding them? Generally attachments on a mailing list is a faux pas however.

But extra space in tables can happen if you allow a carriage return or white 
space between the td element and what it contains. So instead of:

td
data here
/td

have

tddata here/td

this is especially true of images

I have no idea if that's your problem, but its worth a shot.

Matt

-- 
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] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread rico

Ah, ok, didnt know about the faus pax re: attachments. Lo siento!

Anyway, Ill give that a try, thx.  ill post back yay or nay.

--
-
Click here for Free Video!!
http://www.gohip.com/free_video/

Matt Greer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Sunday 23 September 2001 17:01, rico wrote:

  The problem is in the final formatting in arrayprocr.php.  I notice that
  whenever a new tr is added to the final table, it gets pushed further
  down the page, almost as if a br has been added for each new
tr...but
  there is not.
 
 I cant look at your files as they always arrive as gibberish. How are you
 encoding them? Generally attachments on a mailing list is a faux pas
however.

 But extra space in tables can happen if you allow a carriage return or
white
 space between the td element and what it contains. So instead of:

 td
 data here
 /td

 have

 tddata here/td

 this is especially true of images

 I have no idea if that's your problem, but its worth a shot.

 Matt



-- 
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] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread rico

nope, no go...still getting extra lines after taking out all instances of \n

--
-
Click here for Free Video!!
http://www.gohip.com/free_video/

Rico [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Ah, ok, didnt know about the faus pax re: attachments. Lo siento!

 Anyway, Ill give that a try, thx.  ill post back yay or nay.

 --
 -
 Click here for Free Video!!
 http://www.gohip.com/free_video/

 Matt Greer [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  On Sunday 23 September 2001 17:01, rico wrote:
 
   The problem is in the final formatting in arrayprocr.php.  I notice
that
   whenever a new tr is added to the final table, it gets pushed
further
   down the page, almost as if a br has been added for each new
 tr...but
   there is not.
  
  I cant look at your files as they always arrive as gibberish. How are
you
  encoding them? Generally attachments on a mailing list is a faux pas
 however.
 
  But extra space in tables can happen if you allow a carriage return or
 white
  space between the td element and what it contains. So instead of:
 
  td
  data here
  /td
 
  have
 
  tddata here/td
 
  this is especially true of images
 
  I have no idea if that's your problem, but its worth a shot.
 
  Matt





-- 
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] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread rico

OMG, never mindim an idiot.

clear as day a br i had left in the middle of an echo statement after
/td

doy!

--
-
Click here for Free Video!!
http://www.gohip.com/free_video/

Matt Greer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Sunday 23 September 2001 17:01, rico wrote:

  The problem is in the final formatting in arrayprocr.php.  I notice that
  whenever a new tr is added to the final table, it gets pushed further
  down the page, almost as if a br has been added for each new
tr...but
  there is not.
 
 I cant look at your files as they always arrive as gibberish. How are you
 encoding them? Generally attachments on a mailing list is a faux pas
however.

 But extra space in tables can happen if you allow a carriage return or
white
 space between the td element and what it contains. So instead of:

 td
 data here
 /td

 have

 tddata here/td

 this is especially true of images

 I have no idea if that's your problem, but its worth a shot.

 Matt



-- 
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] File permitions

2001-09-23 Thread recognize

Maybe I wasn't clear in my previous message:
What I want to do is: when you fill the form, record it 
to a file without 666 permitions. I mean: I don't want 
to have the file opened to everybody. In Perl it was 
possible (because it uses directly system user, which 
is similar to root), I want to make it possible using 
PHP. E.G.: The PHP-script receives the form, makes an 
internal authentication and creates or writes the file 
with 600 permitions.

Thank you,

Manuel Silva


Quoting Alexander Skwar [EMAIL PROTECTED]:

 So sprach »[EMAIL PROTECTED]« am
 2001-09-23 um 19:08:20 +0100 :
  Is there any possibility to write to files as
 httpd 
  or system (which can write to files even
 with 000 
  permitions)?

 With 000 permissions?  Is system an alias for
 root?  If not, then it's
 not possible.

 But normally the files should only need access
 for the group running the
 webserver process.  Here at home, it's
 apache/apache.

 Alexander Skwar
 -- 
 How to quote: http://learn.to/quote (german)
 http://quote.6x.to (english)
 Homepage: http://www.digitalprojects.com   |  
 http://www.iso-top.de
iso-top.de - Die günstige Art an Linux
 Distributionen zu kommen
   Uptime: 8 hours 49 minutes

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

 

-
Visite http://www.lusoweb.pt

-- 
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] File permitions

2001-09-23 Thread rico

im definitely not a guru, but perhaps this might help

http://www.php.net/manual/en/html/function.chmod.html
http://www.php.net/manual/en/html/function.chown.html

those are the doc pages on usage of similar process for setting permissions
(i believe)

GL

--
-
Click here for Free Video!!
http://www.gohip.com/free_video/

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Maybe I wasn't clear in my previous message:
 What I want to do is: when you fill the form, record it
 to a file without 666 permitions. I mean: I don't want
 to have the file opened to everybody. In Perl it was
 possible (because it uses directly system user, which
 is similar to root), I want to make it possible using
 PHP. E.G.: The PHP-script receives the form, makes an
 internal authentication and creates or writes the file
 with 600 permitions.

 Thank you,

 Manuel Silva


 Quoting Alexander Skwar [EMAIL PROTECTED]:

  So sprach »[EMAIL PROTECTED]« am
  2001-09-23 um 19:08:20 +0100 :
   Is there any possibility to write to files as
  httpd
   or system (which can write to files even
  with 000
   permitions)?
 
  With 000 permissions?  Is system an alias for
  root?  If not, then it's
  not possible.
 
  But normally the files should only need access
  for the group running the
  webserver process.  Here at home, it's
  apache/apache.
 
  Alexander Skwar
  --
  How to quote: http://learn.to/quote (german)
  http://quote.6x.to (english)
  Homepage: http://www.digitalprojects.com   |
  http://www.iso-top.de
 iso-top.de - Die günstige Art an Linux
  Distributionen zu kommen
  Uptime: 8 hours 49 minutes
 
  --
  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]
 
 

 -
 Visite http://www.lusoweb.pt



-- 
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] File permitions

2001-09-23 Thread rico

looks pretty straightforward with php's caveat to be careful to use octal...

chmod (/somedir/somefile, 0755);  // octal; correct value of mode


--
-
Click here for Free Video!!
http://www.gohip.com/free_video/

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Maybe I wasn't clear in my previous message:
 What I want to do is: when you fill the form, record it
 to a file without 666 permitions. I mean: I don't want
 to have the file opened to everybody. In Perl it was
 possible (because it uses directly system user, which
 is similar to root), I want to make it possible using
 PHP. E.G.: The PHP-script receives the form, makes an
 internal authentication and creates or writes the file
 with 600 permitions.

 Thank you,

 Manuel Silva


 Quoting Alexander Skwar [EMAIL PROTECTED]:

  So sprach »[EMAIL PROTECTED]« am
  2001-09-23 um 19:08:20 +0100 :
   Is there any possibility to write to files as
  httpd
   or system (which can write to files even
  with 000
   permitions)?
 
  With 000 permissions?  Is system an alias for
  root?  If not, then it's
  not possible.
 
  But normally the files should only need access
  for the group running the
  webserver process.  Here at home, it's
  apache/apache.
 
  Alexander Skwar
  --
  How to quote: http://learn.to/quote (german)
  http://quote.6x.to (english)
  Homepage: http://www.digitalprojects.com   |
  http://www.iso-top.de
 iso-top.de - Die günstige Art an Linux
  Distributionen zu kommen
  Uptime: 8 hours 49 minutes
 
  --
  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]
 
 

 -
 Visite http://www.lusoweb.pt



-- 
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] interbase x php

2001-09-23 Thread edney

Hi. 

I need help to insert blob fiedls into interbase with php. 

Thank You.
ICQ: 109374340

-- 
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] IMAP - create user?

2001-09-23 Thread Tom Malone

Is there a way to create a new user with an email address on my mail server
(for a web mail app i'm writing) using an IMAP or some other PHP function?

Tom Malone
Web Designer
http://www.tom-malone.com


-- 
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] IMAP - create user?

2001-09-23 Thread Kath

http://phpclasses.upperdesign.com/browse.html/file/766

Try that class.

- k



- Original Message -
From: Tom Malone [EMAIL PROTECTED]
To: PHP Users [EMAIL PROTECTED]
Sent: Sunday, September 23, 2001 10:07 PM
Subject: [PHP] IMAP - create user?


 Is there a way to create a new user with an email address on my mail
server
 (for a web mail app i'm writing) using an IMAP or some other PHP function?

 Tom Malone
 Web Designer
 http://www.tom-malone.com


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




Re: [PHP] Arrays Data

2001-09-23 Thread Christian Dechery

At 07:00 23/9/2001 -0700, you wrote:
hi

how can I remove duplicted values (Data) in my array ?

there are several solutions to this problem, you can:

1 - use the function array_count_values() to find all the values that occur 
more then once and then loop trough the result array and removing all the 
duplicates.
2 - you can copy you array to a new one, but only copy values that aren't 
there... something like..

$your_array;
$new_array=array(); // this is the one that should have no copies...

foreach($your_array as $value)
{
 if( !in_array($value,$new_aray) )
 {
 $new_array[]=$value;
 }
}

at the end of this loop $new_array contains all data from $your_array with 
no duplicates...

_
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br


-- 
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] Arrays Data

2001-09-23 Thread Christian Dechery

At 07:00 23/9/2001 -0700, Alawi Albaity wrote:
hi

how can I remove duplicted values (Data) in my array ?

my bad... I didn't check the manual... there's a function that does exactly 
that:

http://www.php.net/manual/en/function.array-unique.php

sorry... :)

_
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br


-- 
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] ucwords added functionality?

2001-09-23 Thread Jack Dempsey

i could roll my own, and for now will just use a str_replace after ucwords,
but would it be possible to add an optional parameter to ucwords which would
be an array of words to skip? i would think this would be useful to
many.

any thoughts?


-- 
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] FW: Undelivered Mail Returned to Sender

2001-09-23 Thread Jack Dempsey

and to whoever asked this a few weeks ago, yes i'm getting this too, and yes
its annoying..any possibility of deleting it from the list?

-Original Message-
From: Mail Delivery System
[mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 23, 2001 11:17 PM
To: [EMAIL PROTECTED]
Subject: Undelivered Mail Returned to Sender


This is the Postfix program at host mail.aaz-netmarketing.com.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to postmaster

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

[EMAIL PROTECTED]: can't create user output file. Command
output: procmail: Error while writing to /var/spool/mail/dtt


Reporting-MTA: dns; mail.aaz-netmarketing.com
Arrival-Date: Mon, 24 Sep 2001 05:16:39 +0200 (CEST)

Final-Recipient: rfc822; [EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; can't create user output file. Command output:
procmail: Error while writing to /var/spool/mail/dtt



i could roll my own, and for now will just use a str_replace after ucwords,
but would it be possible to add an optional parameter to ucwords which would
be an array of words to skip? i would think this would be useful to
many.

any thoughts?


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


RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux - remote oracle

2001-09-23 Thread Jeffrey Iskandar Ahmad

I have reinstalled but still cannot work.

How i compile:
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs \
--with-ldap=/home/jeffrey/download/directory/install --with-oci8=/home/oracl
e

Apache server stop and started.
Im using redhat 7. Oracle 8i installed as programmer, apache_1.3.14. Remote
oracle server version is 8.0.5

My bash env as below:
ORACLE_HOME=/home/oracle
TNS_ADMIN=$ORACLE_HOME/network/admin
PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/bin
LD_LIBRARY_PATH=$ORACLE_HOME/lib
ORA_NLS33=/home/oracle/ocommon/nls/admin/data

my php content:
putenv('TNS_ADMIN=/home/oracle/network/admin');
putenv(ORACLE_HOME=/home/oracle);
$db =  (DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = patin)(PORT =
1521))
)
(CONNECT_DATA =
(SID = I32)
)
);
$c1 = ocilogon(ims,ims,$db);
if ($c1 == false){
echo OCIError($c1).;
}
else
{
echo success;
}

I still get the same error
OCISessionBegin: Error while trying to retrieve text for error ORA-03106
meening : fatal two-task communication protocol error)

I have tested using sqlplus(same php server) connect to remote server, there
is no problem.

Do you have sample configuration how to do it.. please.. :)

Jeffrey Iskandar Ahmad
System Engineer
Technology Division
TIME dotNet


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 11:31 PM
To: Jeffrey Iskandar Ahmad; [EMAIL PROTECTED]
Subject: RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle
onLinux - remote oracle


Ensure that this is sent in the envrionment before compiling php and
starting apache as well.

Cheers,
Andrew

 -Original Message-
 From: Jeffrey Iskandar Ahmad [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 21, 2001 11:50 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle
 onLinux - remote oracle



 I did but didnt work.

 Jeffrey Iskandar Ahmad
 System Engineer
 Technology Division
 TIME dotNet


 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 21, 2001 9:09 PM
 To: Jeffrey Iskandar Ahmad; [EMAIL PROTECTED]
 Subject: RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle
 onLinux - remote oracle


 Jeffrey,

 Set your ORACLE_HOME environment variable.
 putenv(ORACLE_HOME=/path/to/oracle/home/dir);

 etc.

 HTH

 Best regards,
 Andrew Hill
 Director of Technology Evangelism
 OpenLink Software  http://www.openlinksw.com
 Universal Data Access  Data Integration Technology Providers

  -Original Message-
  From: Jeffrey Iskandar Ahmad [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 21, 2001 5:47 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux
  - remote oracle
 
 
  I cannot connect to remote oracle database. I get the error below.
 
  OCISessionBegin: Error while trying to retrieve text for error ORA-03106
  (meening : fatal two-task communication protocol error)
 
  My env is all correct.
 
  My test.php:
  $db =  (DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = patin)(PORT =
  1521))
  )
  (CONNECT_DATA =
  (SID = I32)
  )
  );
 
  $c1 = ocilogon(ims,ims,$db);
 
  if ($c1 == false){
  echo OCIError($c1).;
  exit;
  }
  else
  {
  echo success;
  }
 
 
  Jeffrey Iskandar Ahmad
  System Engineer
  Technology Division
  TIME dotNet
 
 
  --
  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 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] Help! Large File Uploads, max file sizes and timeouts

2001-09-23 Thread Weston Houghton


Does no one have a clue on this one? I'm really in need of leads here.

Thanks,
Wes

 
 Hey all,
 
 Two related questions. If I remember correctly this has been beaten to death
 before on the list, but here I am having issues with it, and ending up at
 somewhat of a loss still.
 
 I've built a media management system for a video company. It is built to
 handle large data assets, such as extended full size video files. As such,
 I've set the max upload file size in the php.ini file to around 3GB.
 
 I'm running into a bug where the system seems to think that the file upload
 is done at about 140MB on a 300MB file. Everything seems to close out fine
 within the system, acting like the file was originally 140MB and it uploaded
 just fine in the system. But it really is a 300MB file, I promise. Does this
 ring any bells with anyone? This is all over a local network, so I'm not
 inclined to believe that it is network lag triggering the connection to
 close...
 
 Second, can anyone point me in the right direction within the documentation
 to tell how to override the php.ini fiole on a particular page to allow a
 larger file upload size and a longer session timeout?
 
 Thanks all,
 Wes
 
 


-- 
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] Writing newlines in files

2001-09-23 Thread ReDucTor

put \n at the end

- Original Message -
From: Big5ive [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 23, 2001 11:36 PM
Subject: [PHP] Writing newlines in files


 Hi!

 $FTP_FILE=d:\programme\serv-u\ServUDaemon.ini;
 $fp = fopen($FTP_FILE, a);

$data=\n\n[USER=$username|1]\nPassword=$pw\nHomeDir=d:\\nLoginMesFile=c:\wi
 ndows\profiles\flo\my

documents\msg.txt\nDiskQuota=1|301443514202|24963514202\nAccess1=D:\-=Upload
 s=-|RWLCP\nAccess2=D:\Moviez|RLP\nAccess3=D:\Music|RLP;
 fwrite($fp,$data);
 fclose($fp);

 That's my code and i want to make newlines in the text file..the file is
 text//plain but instead of a newline there are some awesome letters..

 Please help me..

 --
 Big5ive



 --
 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] Spawning an Expect Script

2001-09-23 Thread Chris Aitken

Hi all,

Is there any tips you can point me at on spawning off an Expect script with 
agruments. Here is a sample of the command I want to be spawned.

/usr/local/bin/expect /location/of/script.exp arg1 Arg Number 2

I would also like it to be able to report the output of the expect script 
back to the browser when its called.


Any suggestions ?



Thanks


Chris

--
 Chris Aitken - Administration/Database Designer - IDEAL Internet
  email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
  __-__
   *** Big Brother ***
It just shows that the dull will rule the world. And we will be watching it.


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