[PHP] Re: PHPdoc web interface

2004-02-29 Thread Andre Cerqueira
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i think you are talking about this: http://www.phpdoc.de/
while this newsgroups is about this: http://www.php.net/
you may find what you want to now here, but maybe you would have more 
luck here: http://www.phpdoc.de/doc/
or here: http://www.phpdoc.de/feedback.html (where the author said it 
would be very hard to find him here)



[EMAIL PROTECTED] wrote:
Has anyone tried out the new version ? I've never managed to make it work
without having to make ini files for each directory i want to document. I
tried just making my options in the form, but it doesnt work here is the
output
Parsing Files ...
PHP Version 4.3.1
phpDocumentor version 1.3.0RC2
Parsing configuration file phpDocumentor.ini...
done
using tokenizer Parser
ERROR: nothing parsed
I also like to make a introduction page and some comments and links to
other documentation, has anyone done this sought of thing ?
- -- 
André Cerqueira
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAQaR3axdA/5C8vH8RAmGnAJoCRjm8fpeJoCLVGLLyXbQQ8BOBDQCgzMmE
q7BtHM6WqQORvv16/yZaR5U=
=I0dx
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: PHPdoc web interface

2004-02-29 Thread electroteque
nah man, i was asking if anyone has tried this, it is documenting php code
right ?, i think so :D. I've alread tried him, all i get is RTFM, i think
its a bug.

-Original Message-
From: Andre Cerqueira [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 29, 2004 7:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHPdoc web interface


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

i think you are talking about this: http://www.phpdoc.de/
while this newsgroups is about this: http://www.php.net/

you may find what you want to now here, but maybe you would have more
luck here: http://www.phpdoc.de/doc/
or here: http://www.phpdoc.de/feedback.html (where the author said it
would be very hard to find him here)



[EMAIL PROTECTED] wrote:
 Has anyone tried out the new version ? I've never managed to make it work
 without having to make ini files for each directory i want to document. I
 tried just making my options in the form, but it doesnt work here is the
 output

 Parsing Files ...
 PHP Version 4.3.1
 phpDocumentor version 1.3.0RC2

 Parsing configuration file phpDocumentor.ini...
 done
 using tokenizer Parser
 ERROR: nothing parsed


 I also like to make a introduction page and some comments and links to
 other documentation, has anyone done this sought of thing ?

- --
André Cerqueira
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAQaR3axdA/5C8vH8RAmGnAJoCRjm8fpeJoCLVGLLyXbQQ8BOBDQCgzMmE
q7BtHM6WqQORvv16/yZaR5U=
=I0dx
-END PGP SIGNATURE-

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

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



Re: [PHP] Weird Problem with INPUT tag

2004-02-29 Thread Richard Davey
Hello Ahbaid,

Sunday, February 29, 2004, 6:33:45 AM, you wrote:

AG this uses a FORM with INPUT tags, what is weird is that under IE6 some
AG of the INPUT fields are showing up with yellow
AG backgrounds

Sounds to me like you have the Google toolbar installed with the
AutoFill option enabled. See the preferences to turn the yellow
background off.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



php-general Digest 29 Feb 2004 10:50:49 -0000 Issue 2618

2004-02-29 Thread php-general-digest-help

php-general Digest 29 Feb 2004 10:50:49 - Issue 2618

Topics (messages 179094 through 179127):

Re: creating file links on linux (ln) with php
179094 by: Jeremy

Re: mkdir and  rmdir possible but not readdir and opendir???
179095 by: raisinlove
179097 by: raisinlove
179113 by: Rasmus Lerdorf

Re: 2 OOP or Not 2 OOP
179096 by: Gareth Williams

How to recognize .mov .mp3 file types
179098 by: Radek Zajkowski
179103 by: Radek Zajkowski

Stumped on a totally wierd problem
179099 by: Brian V Bonini
179100 by: Brian V Bonini

Possible Leap Year bug with strtotime (4.3.4)?
179101 by: Rob Petty
179102 by: Rob Petty
179105 by: hitek

Array Question
179104 by: Jason Williard
179106 by: Michal Migurski

2 questions - PHP site Automatic search and slow display
179107 by: Ryan A
179108 by: Andre Cerqueira
179109 by: Rasmus Lerdorf

Re: PHP application design with WAE UML.
179110 by: Manuel Lemos
179112 by: daniel.electroteque.org
179116 by: Manuel Lemos
179118 by: daniel.electroteque.org

Re: - Receive mail with PHP.
179111 by: Manuel Lemos

$sring = ARRAY?
179114 by: Axiom
179120 by: Burhan Khalid

PHPdoc web interface
179115 by: daniel.electroteque.org
179125 by: Andre Cerqueira
179126 by: daniel.electroteque.org

Trying to get PHP to run on Windows
179117 by: Susan Donnelly
179119 by: Susan Donnelly

Re: Allow service to interact with desktop and have network access
179121 by: Burhan Khalid

Weird Problem with INPUT tag
179122 by: Ahbaid Gaffoor
179127 by: Richard Davey

Re: What's your favorite PHP weather code?
179123 by: Burhan Khalid

Re: php package
179124 by: Burhan Khalid

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
---BeginMessage---
RTFM.

http://us2.php.net/manual/en/function.symlink.php

-Original Message-
From: Merlin [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 28, 2004 3:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] creating file links on linux (ln) with php


Hi there,

I do have a couple of hundred file links to create. I am wondering if 
this could be automated with php.

On a linux shell it would look like this:
ln united-states-map.jpg vereinigte-staaten-karte.jpg

Are there php commands to execute this ln command?

Thanx for any help on that,

Merlin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---End Message---
---BeginMessage---
Rasmus Lerdorf wrote:

This is normal.  You are allowed to create the directory because the
directory you are creating it in is owned by the same user id that owns
the script calling mkdir().  However, since your web server runs as some
other user the owner of the newly created dir will be that user and not
your own so you subsequently cannot manipulate that directory.  Same
problem with safe mode and file uploads.  ISP's are generally better off
using open_basedir instead of safe-mode for this very reason.
I see, so there's no way around this then. I'll inquire to my host why 
open_basedir couldnt be used instead of safe-mode.
There's goes my plan of FTP-less website management :(

thanks
-steph
---End Message---
---BeginMessage---
Surely if there is a work-around then safe mode would not be doing its job 
properly?
Well this was part of the purpose of my post, before Rasmus explained 
it, I didn't understand why I couldnt access a directory I had created. 
I was hoping for a function which would achieve the same purpose but 
wouldn't be affected by safe-mode. I've seen many other workaround 
solutions to other problems caused by the safe-mode setting.
Unfortunatly this doesnt seem to be such a case.

-s
---End Message---
---BeginMessage---
On Sat, 28 Feb 2004, raisinlove wrote:

  Surely if there is a work-around then safe mode would not be doing its job
  properly?

 Well this was part of the purpose of my post, before Rasmus explained
 it, I didn't understand why I couldnt access a directory I had created.
 I was hoping for a function which would achieve the same purpose but
 wouldn't be affected by safe-mode. I've seen many other workaround
 solutions to other problems caused by the safe-mode setting.
 Unfortunatly this doesnt seem to be such a case.

The work-around is to create the directory outside of your web application
from your regular account.  Or if you are allowed to run cgi scripts and
these are set up via cgiwrapper or suExec to run as your own user id, use
this to create the directory.  Once created with the right owner, you can
manipulate it from your regular Apache-embedded PHP 

[PHP] php newsgroup portal?

2004-02-29 Thread Zhang Weiwu
Hello. I have been looking for a good php newsgroup reader for some 
time. News portal looks pretty good to me but I haven't tried yet.

There is a very charming project mynewsgroup at mynewsgroup.sf.net, 
particularly it has beautiful looking. But that project seems dead. The 
only mailing list is removed, and nobody look into its forum. I wrote to 
each developer about what is going on but none replied me!

What newsgroup reader do you use?

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


Re: [PHP] php newsgroup portal?

2004-02-29 Thread Shane Nelson
To read this list I use thunderbird:

  http://www.mozilla.org/projects/thunderbird/

It's an email client instead of a newsgroup reader.  Just filter the 
php-general messages into a separate folder and sort it by thread. 
Super easy to use and a very nice piece of software.

Shane

Zhang Weiwu wrote:
Hello. I have been looking for a good php newsgroup reader for some 
time. News portal looks pretty good to me but I haven't tried yet.

There is a very charming project mynewsgroup at mynewsgroup.sf.net, 
particularly it has beautiful looking. But that project seems dead. The 
only mailing list is removed, and nobody look into its forum. I wrote to 
each developer about what is going on but none replied me!

What newsgroup reader do you use?

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


Re: [PHP] mkdir and rmdir possible but not readdir and opendir???

2004-02-29 Thread raisinlove
The work-around is to create the directory outside of your web application
from your regular account.  Or if you are allowed to run cgi scripts and
these are set up via cgiwrapper or suExec to run as your own user id, use
this to create the directory.  Once created with the right owner, you can
manipulate it from your regular Apache-embedded PHP scripts.
Thank you! I'm definitely filing this solution for later use. Meanwhile, 
I went back to trying the FTP_MKDIR method and found why that didnt 
work. I realized when accessing the website via ftp that the system path 
was different than the one displayed online. IE: my script path was 
shown as /home/virtual/site... while in my ftp client I was seeing 
/var/www/html...
Changing my path references to the later one fixed everything...so far!

Thanks for the help :)
-s
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] $sring = ARRAY?

2004-02-29 Thread Michael Lewis
MYSQL_FETCH_ROW returns an array of the values of the columns in a row. When
you try to use that value as, for example, a string or in a print statement
you get the word Array. What you probably want to do is the following (not
knowing your actual column names):

if (($value = mysql_fetch_array($result)) AND ($value['username'] ==
$username)) {

echo You are authenticated;

} else {

echo Your username or password is incorrect;

}



- Original Message -
From: Axiom [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 28, 2004 11:57 PM
Subject: [PHP] $sring = ARRAY?


Why is it that in the following code that $value comes back with just the
word ARRAY instead of the actual result?



if (($value = mysql_fetch_row($result)) AND ($value == $username)) {

echo You are authenticated;

} else {

echo Your username or password is incorrect;

}



-Casey


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004

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



Re: [PHP] PHP5 only configures mysql 4.1 source with mysqli

2004-02-29 Thread Raditha Dissanayake
Hi,

I agree that it's a bad practice not to use a wrapper but it seems most 
people who use PHP took mysql for granted and haven't used any wrappers 
in their code.

Anyway the kind of wrappers commonly used to help separate out 
mysql/pgsql/mssql code probably will not be able to make full use of the 
new features available in mysqli. There's going to be a hell of a lot of 
conversion work ahead  and not all of it can be automated.



electroteque wrote:

Heh i just read the bit about having to change the functions from mysql to
mysqli, now what is someone doesnt use a db wrapper, they'd have a field
day, lucky i use a wrapper heh.
-Original Message-
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 29, 2004 1:21 AM
To: electroteque
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP5 only configures mysql 4.1 source with mysqli
Hi,
Mysqli installation certainly isn't improved :-) i had a lot of trouble
too, and shared my experience online at
http://www.raditha.com/mysql/mysqli.php
hope someone finds it usefull.

 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Solved [PHP] Weird Problem with INPUT tag

2004-02-29 Thread Ahbaid Gaffoor
Yep, that was indeed the problem.

Many thanks for your help.

I just could not see that at all

regards

Ahbaid

Richard Davey wrote:

Hello Ahbaid,

Sunday, February 29, 2004, 6:33:45 AM, you wrote:

AG this uses a FORM with INPUT tags, what is weird is that under IE6 some
AG of the INPUT fields are showing up with yellow
AG backgrounds
Sounds to me like you have the Google toolbar installed with the
AutoFill option enabled. See the preferences to turn the yellow
background off.
 

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


[PHP] PHP Sessions

2004-02-29 Thread Paul Higgins
Hello everyone,

I'm beginning to experiment with PHP sessions.  I was wondering if it is 
possible to place objects into the session?

Thanks,

Paul

_
Take off on a romantic weekend or a family adventure to these great U.S. 
locations. http://special.msn.com/local/hotdestinations.armx

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


[PHP] Mail class to send several e-mails within one smtp connection

2004-02-29 Thread Juergen Mueller pro.vider.de GmbH
Hello,

does anybody know a simply mailing function, which does
open a smtp connection to an mailserver, sends say 20 mails
with different bodies to that mailserver and than closes
the smtp connection again?

As I understand the standard php mail() function, that
it is doing quit that but of course sending only one mail.

Thanks very much.

Regards,
Juergen

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



RE: [PHP] Mail class to send several e-mails within one smtp connection

2004-02-29 Thread Axiom


 -Original Message-
 From: Juergen Mueller pro.vider.de GmbH [mailto:[EMAIL PROTECTED]
 Sent: Sunday, February 29, 2004 12:02 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Mail class to send several e-mails within one smtp
 connection
 
 Hello,
 
 does anybody know a simply mailing function, which does
 open a smtp connection to an mailserver, sends say 20 mails
 with different bodies to that mailserver and than closes
 the smtp connection again?
 
 As I understand the standard php mail() function, that
 it is doing quit that but of course sending only one mail.
 
 Thanks very much.
 
 Regards,
 Juergen
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

You could always run the mail() command several times in a row and have it
include different $strings which contain different information for each
unique e-mail.

-Casey

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004
 

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



[PHP] Re: Mail class to send several e-mails within one smtp connection

2004-02-29 Thread Michael Kunze
Juergen Mueller Pro.Vider.De Gmbh wrote:

 does anybody know a simply mailing function, which does
 open a smtp connection to an mailserver, sends say 20 mails
 with different bodies to that mailserver and than closes
 the smtp connection again?

phpmailer.sh.net

use $mail-SMTPKeepAlive()

-- 
Michael Kunze
http://www.smrealms.de/

Def: Children: The most common sexually transmitted disease.

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



php-general Digest 29 Feb 2004 22:55:22 -0000 Issue 2619

2004-02-29 Thread php-general-digest-help

php-general Digest 29 Feb 2004 22:55:22 - Issue 2619

Topics (messages 179128 through 179138):

php newsgroup portal?
179128 by: Zhang Weiwu
179129 by: Shane Nelson

Re: mkdir and  rmdir possible but not readdir and opendir???
179130 by: raisinlove

Re: $sring = ARRAY?
179131 by: Michael Lewis

Re: PHP5 only configures mysql 4.1 source with mysqli
179132 by: Raditha Dissanayake

Solved [PHP] Weird Problem with INPUT tag
179133 by: Ahbaid Gaffoor

PHP Sessions
179134 by: Paul Higgins

Mail class to send several e-mails within one smtp connection
179135 by: Juergen Mueller pro.vider.de GmbH
179136 by: Axiom
179137 by: Michael Kunze

Re: What's your favorite PHP weather code?
179138 by: Karl Timmermann

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
---BeginMessage---
Hello. I have been looking for a good php newsgroup reader for some 
time. News portal looks pretty good to me but I haven't tried yet.

There is a very charming project mynewsgroup at mynewsgroup.sf.net, 
particularly it has beautiful looking. But that project seems dead. The 
only mailing list is removed, and nobody look into its forum. I wrote to 
each developer about what is going on but none replied me!

What newsgroup reader do you use?
---End Message---
---BeginMessage---
To read this list I use thunderbird:

  http://www.mozilla.org/projects/thunderbird/

It's an email client instead of a newsgroup reader.  Just filter the 
php-general messages into a separate folder and sort it by thread. 
Super easy to use and a very nice piece of software.

Shane

Zhang Weiwu wrote:
Hello. I have been looking for a good php newsgroup reader for some 
time. News portal looks pretty good to me but I haven't tried yet.

There is a very charming project mynewsgroup at mynewsgroup.sf.net, 
particularly it has beautiful looking. But that project seems dead. The 
only mailing list is removed, and nobody look into its forum. I wrote to 
each developer about what is going on but none replied me!

What newsgroup reader do you use?

---End Message---
---BeginMessage---
The work-around is to create the directory outside of your web application
from your regular account.  Or if you are allowed to run cgi scripts and
these are set up via cgiwrapper or suExec to run as your own user id, use
this to create the directory.  Once created with the right owner, you can
manipulate it from your regular Apache-embedded PHP scripts.
Thank you! I'm definitely filing this solution for later use. Meanwhile, 
I went back to trying the FTP_MKDIR method and found why that didnt 
work. I realized when accessing the website via ftp that the system path 
was different than the one displayed online. IE: my script path was 
shown as /home/virtual/site... while in my ftp client I was seeing 
/var/www/html...
Changing my path references to the later one fixed everything...so far!

Thanks for the help :)
-s
---End Message---
---BeginMessage---
MYSQL_FETCH_ROW returns an array of the values of the columns in a row. When
you try to use that value as, for example, a string or in a print statement
you get the word Array. What you probably want to do is the following (not
knowing your actual column names):

if (($value = mysql_fetch_array($result)) AND ($value['username'] ==
$username)) {

echo You are authenticated;

} else {

echo Your username or password is incorrect;

}



- Original Message -
From: Axiom [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 28, 2004 11:57 PM
Subject: [PHP] $sring = ARRAY?


Why is it that in the following code that $value comes back with just the
word ARRAY instead of the actual result?



if (($value = mysql_fetch_row($result)) AND ($value == $username)) {

echo You are authenticated;

} else {

echo Your username or password is incorrect;

}



-Casey


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004
---End Message---
---BeginMessage---
Hi,

I agree that it's a bad practice not to use a wrapper but it seems most 
people who use PHP took mysql for granted and haven't used any wrappers 
in their code.

Anyway the kind of wrappers commonly used to help separate out 
mysql/pgsql/mssql code probably will not be able to make full use of the 
new features available in mysqli. There's going to be a hell of a lot of 
conversion work ahead  and not all of it can be automated.



electroteque wrote:

Heh i just read the bit about having to change the functions from mysql to
mysqli, now what is someone doesnt use a db wrapper, they'd have a field
day, lucky i use a wrapper heh.

Re: [PHP] What's your favorite PHP weather code?

2004-02-29 Thread Karl Timmermann
Not a problem. I think it doesn't work because you need to register for 
a key on weather.com site now.

Thanks though!

Karl

On Feb 29, 2004, at 7:40 AM, Lowell Allen wrote:

I'm looking for some code to get the latest weather and put it on my
webpage, and have it very customizable. What are your favorites?
I've only tried this one -- found it easy to work with:
http://www.cruelacid.com/?page=weather

It doesn't work for me - does it still work for you?

No. It has worked fine for me, but I stopped using it about a year 
ago. I
returned it to a personal site this morning and it no longer works.

Looking at the code, the two weather servers listed are:

http://desktop.weather.com/weather/secdesktop/
http://weather.interceptvector.com/weather.xml
Neither server is found if I enter the URL in a browser. I suspect the 
URLs
need to be updated, although I don't see any information about weather 
on
interceptvector.com. Odd that the sample page on cruelacid.com seems 
to be
working, though.

I've emailed the script author, who responded to a modification 
question
when I originally used the script, and I will pass along a fix if one 
is
forthcoming. I apologize for recommending something that's no longer
working.

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


[PHP] Opps

2004-02-29 Thread Karl Timmermann
Sorry, I didn't know what top posting was, but someone just told me. 
Won't happen again..

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


[PHP] Get MySQL table field names

2004-02-29 Thread Matt Palermo
How can I get the field names from a specified MySQL table?  I don't need
the data, I just want to get an array of the tables field names.

Thanks,

Matt
http://sweetphp.com

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



[PHP] Re: Get MySQL table field names

2004-02-29 Thread Michael Kunze
Matt Palermo wrote:

 How can I get the field names from a specified MySQL table?  I don't need
 the data, I just want to get an array of the tables field names.

use 'DESC table_name;'

-- 
Michael Kunze
http://www.smrealms.de/

Caterva carissima mea est Ille Quis.

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



[PHP] header(Location: question

2004-02-29 Thread John
when you use a command like this:
header(Location: http://www.highbandwidhtmirror.com/videos/download.mpg;);

Is the user downloading off the mirror site or is your server downloading
from the mirror and passing on to the end user. I want to save bandwidth by
having mirror urls of funny videos, so will this work?

--
**
Free Nokia Ringtones US
http://www.ring-tones.us
**

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



[PHP] Re: header(Location: question

2004-02-29 Thread DvDmanDT
That will tell the browser The movie is there!Go there instead! umm..
Kinda like that anyway.. It lets the user download from there, and not your
server..

-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
John [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
 when you use a command like this:
 header(Location:
http://www.highbandwidhtmirror.com/videos/download.mpg;);

 Is the user downloading off the mirror site or is your server downloading
 from the mirror and passing on to the end user. I want to save bandwidth
by
 having mirror urls of funny videos, so will this work?

 --
 **
 Free Nokia Ringtones US
 http://www.ring-tones.us
 **

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



Re: [PHP] php crash and memory_limit

2004-02-29 Thread kringla
Is there any solution to this problem?
I can see that this problem happens when the memory is exhausted.
How do I make a correct .htaccess file so set these values:
php_value memory_limit 34M
php_value post_max_size 33M
php_value upload_max_filesize 32M
php_value max_execution_time 600
Why does PHP lock-up like this?
I am not able to do so much testing on our 'live' site since that might 
cause trouble for our visitors.

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


[PHP] Re: PHP Sessions

2004-02-29 Thread Andre Cerqueira
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
if you try, i think you will see that you can



Paul Higgins wrote:
Hello everyone,

I'm beginning to experiment with PHP sessions.  I was wondering if it is 
possible to place objects into the session?

Thanks,

Paul

_
Take off on a romantic weekend or a family adventure to these great U.S. 
locations. http://special.msn.com/local/hotdestinations.armx
- -- 
André Cerqueira
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAQo0aaxdA/5C8vH8RAk0DAJ4iXSGVPUyqrUm4xm+bK1AxRnSj5gCgr7c/
JZvZMKJyXtzaJ2BzjsmTp5o=
=eH2W
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] A question about permissions.....might be a bit 0T

2004-02-29 Thread Ryan A
Hi,
I installed OSCommerce for a client quite some time back and everything was
running smoothly.
When the client needed to make changes she used to tell me and I used to do
it by ftping in, dl'ing the
files, making changes, uploading them.
Now she found that in the control panel you can edit the files
yourself...but when she tried it told her
that the right permissions are not set for that...it only seems to be
working is if its chmod'ed to 66* or 777,
I have no problem with handing over full control to the client but if i
chmod all those files to 66* or 777 and she
gets hacked shes gonna blame me...so my question is...is it safe to do that
or tell her shes just gonna have to
learn FTP if she wants to do it?

Its presently on 644.

Thanks,
-Ryan

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



Re: [PHP] Text cleaning?

2004-02-29 Thread Justin French
On Saturday, February 28, 2004, at 04:09  PM, Karl Timmermann wrote:

Does anyone have some PHP code to remove incorrect carriage returns?
Karl,

It depends on your definition of incorrect... if you mean strip ALL 
carriage returns from the text, that's easy.

?php
$str = str_replace(array(\n,\r),' ',$str);
?
So, what's your definition of incorrect?

---
Justin French
http://indent.com.au
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP and determining Business days.

2004-02-29 Thread Steve
Does anyone know of any PHP scripts that can calculate US Business days 
( as well as add and subtracting based on whether a day is a business 
day or not?) or will I need to write something myself?

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


[PHP] Re: Get MySQL table field names

2004-02-29 Thread Five

Michael Kunze [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 Matt Palermo wrote:

  How can I get the field names from a specified MySQL table?  I don't need
  the data, I just want to get an array of the tables field names.

 use 'DESC table_name;'

 -- 
 Michael Kunze
 http://www.smrealms.de/

 Caterva carissima mea est Ille Quis.

Could you elaborate on that a litttle? I spent about an hour researching and 
experimenting with DESC and can't get it to work.

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



Re: [PHP] PHP Sessions

2004-02-29 Thread Tom Rogers
Hi,

Monday, March 1, 2004, 3:04:13 AM, you wrote:
PH Hello everyone,

PH I'm beginning to experiment with PHP sessions.  I was wondering if it is
PH possible to place objects into the session?

PH Thanks,

PH Paul

PH _
PH Take off on a romantic weekend or a family adventure to these great U.S.
PH locations. http://special.msn.com/local/hotdestinations.armx


You can, but you must make sure that the object is declared on the
next page before you do session_start();

-- 
regards,
Tom

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



Re: [PHP] Re: Get MySQL table field names

2004-02-29 Thread Jason Wong
On Monday 01 March 2004 10:04, Five wrote:
 Michael Kunze [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

  Matt Palermo wrote:
   How can I get the field names from a specified MySQL table?  I don't
   need the data, I just want to get an array of the tables field names.
 
  use 'DESC table_name;'

 Could you elaborate on that a litttle? I spent about an hour researching
 and experimenting with DESC and can't get it to work.

mysql_list_fields(), read it before you use it.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
A man is only a man, but a good bicycle is a ride
-- Murphy's Laws on Sex n50
*/

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



[PHP] Cookies

2004-02-29 Thread Paul Higgins
Hi everyone,

I have a bit of a dilemma.  I am using a Miva Shopping Cart, not through any 
desire of mine but my client wants it, at least for now.  However, instead 
using the provided Store front, we want to create our own.  Here is the 
dilemma:

Miva uses cookies, which is fine.  However, the Miva pages would be accessed 
by my PHP pages on the website.  Therefore, the cookies have nowhere to go.  
They are not placed on my client, because in this case my web server is the 
client.  Can I trick the Miva pages to believe that I am in fact accessing a 
cookie?  By possibly using headers?

Thanks,

Paul

_
Take off on a romantic weekend or a family adventure to these great U.S. 
locations. http://special.msn.com/local/hotdestinations.armx

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


Re: [PHP] Re: Get MySQL table field names

2004-02-29 Thread Five

Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 On Monday 01 March 2004 10:04, Five wrote:
  Michael Kunze [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
 
   Matt Palermo wrote:
How can I get the field names from a specified MySQL table?  I don't
need the data, I just want to get an array of the tables field names.
  
   use 'DESC table_name;'
 
  Could you elaborate on that a litttle? I spent about an hour researching
  and experimenting with DESC and can't get it to work.

 mysql_list_fields(), read it before you use it.

 -- 
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 A man is only a man, but a good bicycle is a ride
 -- Murphy's Laws on Sex n50
 */

Thanks, that's much easier

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



Re: [PHP] A question about permissions.....might be a bit 0T

2004-02-29 Thread Burhan Khalid
Ryan A wrote:

Hi,
I installed OSCommerce for a client quite some time back and everything was
running smoothly.
When the client needed to make changes she used to tell me and I used to do
it by ftping in, dl'ing the
files, making changes, uploading them.
Now she found that in the control panel you can edit the files
yourself...but when she tried it told her
that the right permissions are not set for that...it only seems to be
working is if its chmod'ed to 66* or 777,
I have no problem with handing over full control to the client but if i
chmod all those files to 66* or 777 and she
gets hacked shes gonna blame me...so my question is...is it safe to do that
or tell her shes just gonna have to
learn FTP if she wants to do it?
Its presently on 644.

The problem here is that the user that she is FTP-ing in with is not the 
same user as PHP, so PHP (ie, Apache process) cannot read her changes.

There are a few solutions here. One is to set the default permissions 
for FTP files to something liberal that PHP can read (this would be done 
at the FTP server config files).

Or, chown the files to the apache process (usually apache or nobody).

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