php-general Digest 27 Feb 2005 17:11:09 -0000 Issue 3309

2005-02-27 Thread php-general-digest-help
php-general Digest 27 Feb 2005 17:11:09 - Issue 3309 Topics (messages 209527 through 209542): Re: http referer 209527 by: John Holmes Uploading a File 209528 by: Jason Bennett 209534 by: Dotan Cohen Re: Uploading a File Solution 209529 by: Jason Bennett

Re: [PHP] getting mac id

2005-02-27 Thread M. Sokolewicz
javascript has pretty strict permissions when run via the browser itself, so I would say no. Unless you instruct your user to run the Javascript via the system itself... but you can't expect that from a simple user. Besides that, a user can choose to turn off JavaScript, or even make it run

[PHP] How to handle actions that may take a long time?

2005-02-27 Thread Cajus Pollmeier
Hi there, I'd like to know your opinion about how to handle events that may take more than a minute to finish in PHP. In this case, the code is performing a recursive action on a large LDAP tree where I'd like to present something like a status page (Please wait, blah blah with some animated

[PHP] mcrypt_create_iv always returns same value?

2005-02-27 Thread Murray @ PlanetThoughtful
Hello All, Just beginning to experiment with encryption using the mcrypt library and I'm wondering if anyone can tell me if it's normal that the following code always seems to return exactly the same value whenever executed on my system: $td =

[PHP] break/exit

2005-02-27 Thread timothy johnson
I have a single php script that I am using to upload my gaim logs to a mysql server, but I want to put in some type of means to where if that log was already added then it will exit. what ways would you recommend? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Uploading a File

2005-02-27 Thread Dotan Cohen
On Sat, 26 Feb 2005 23:04:59 -0700, Jason Bennett [EMAIL PROTECTED] wrote: Hi all, I'm having this problem trying to upload a file using PHP. I am using Apache (compiled from source) and PHP 5.0.3 The entire contents of the page is: form method=post enctype=multipart/form-data

[PHP] how to move files from one place to another ?

2005-02-27 Thread Vaibhav Sibal
Hello, Can some please guide me as to how should I move files from one directory to another on the server itself using PHP ? I use PHP 5.0.3 and Apache2 and Mysql. Thanks Vaibhav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to move files from one place to another ?

2005-02-27 Thread Burhan Khalid
Vaibhav Sibal wrote: Hello, Can some please guide me as to how should I move files from one directory to another on the server itself using PHP ? I use PHP 5.0.3 and Apache2 and Mysql. Please, RTFM http://www.php.net/manual/en/function.copy.php Please, don't cross post. -- PHP General Mailing

Re: [PHP] seach engines that don't suck

2005-02-27 Thread Burhan Khalid
Colin Olkowski wrote: Hi All, So I've been using my own php to search my site (http://hiptingle.spydigital.com) and for a while it was fine...But recently I put in a logging system just to see what people were searching for and realized they aren't finding what they're seeking. I wrote all search

[PHP] Re: how to move files from one place to another ?

2005-02-27 Thread M. Sokolewicz
Vaibhav Sibal wrote: Hello, Can some please guide me as to how should I move files from one directory to another on the server itself using PHP ? I use PHP 5.0.3 and Apache2 and Mysql. Thanks Vaibhav http://www.php.net/copy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] convert MS DOC - PDF

2005-02-27 Thread Jochem Maas
mbneto wrote: Hi, I have a bunch of M$ WORD documents (rtf and doc) that I'd like to transform to pdf. It would simple except that I'd like to allow the user to fill a couple of variables (name, email, telephone) and replace this before if generates the pdf. After searching the net I found some

Re: [PHP] break/exit

2005-02-27 Thread Justin Lilly
how about an if else statement? -justin On Sun, 27 Feb 2005 09:55:23 +, timothy johnson [EMAIL PROTECTED] wrote: I have a single php script that I am using to upload my gaim logs to a mysql server, but I want to put in some type of means to where if that log was already added then it

[PHP] Charset and filenames

2005-02-27 Thread Gustavo Lopes
Hi I'm building a script that makes a list of files available in a directory (PHP 4.3.10, Apache 2.0.53, windows, NTFS file system). The XHTML is served as ISO-8859-1. However, I'm having trouble in generating correct links for files with accents, etc. The problem is rawurlencode() appears to

[PHP] Upgrade question

2005-02-27 Thread SurfSafely
Does PHP 4.3.10 have any specific dependencies that might not be found on a RH Linux 7.1 server currently running PHP 4.0.6? Please reply to news group only. P.S. Very disappointed that this newsgroup does not allow posting with anonymous email addresses. The *INSTANT* I receive my first piece

RE: [PHP] Upgrade question

2005-02-27 Thread Mikey
Does PHP 4.3.10 have any specific dependencies that might not be found on a RH Linux 7.1 server currently running PHP 4.0.6? Do you think you could be more descriptive with your problem? What is currently failing when you try to build PHP? Have you looked at the configure command as shown by

Re: [PHP] Upgrade question

2005-02-27 Thread SurfSafely
Mikey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does PHP 4.3.10 have any specific dependencies that might not be found on a RH Linux 7.1 server currently running PHP 4.0.6? Do you think you could be more descriptive with your problem? What is currently failing when you try

[PHP] // or /**/

2005-02-27 Thread pmpa
Hi all! This is probably a stupid question, but I have to ask :) Which takes less processing? 1) /***/ 2) /// 3) //* 4) /* I'm a noOb :) */ 5) // // text // Thanks! Pedro. -- PHP General

[PHP] file uploads

2005-02-27 Thread pmpa
I believe you must have form action=somewhere.php enctype=multipart/form-data method=post Pedro. -Mensagem original- De: Jeremy Freedman [mailto:[EMAIL PROTECTED] Enviada: sábado, 26 de Fevereiro de 2005 20:54 Para: php-general@lists.php.net Assunto: [PHP] file uploads I got the

Re: [PHP] // or /**/

2005-02-27 Thread Jochem Maas
pmpa wrote: Hi all! This is probably a stupid question, but I have to ask :) Which takes less processing? not stupid. say there is a few microseconds of difference in the parsing/compiling (in the case of comments the zend engine is more or less stripping them out as far as 'building a runable

Re: [PHP] // or /**/

2005-02-27 Thread Robert Cummings
On Sun, 2005-02-27 at 14:33, pmpa wrote: Hi all! This is probably a stupid question, but I have to ask :) Which takes less processing? Run a test. Regardless though, since the parsing time is so miniscule, I always use // for comments so that when I want to temporarily comment out blocks of

RE: [PHP] // or /**/

2005-02-27 Thread pmpa
Thanks Jochem. You're great! -Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] pmpa wrote: Hi all! This is probably a stupid question, but I have to ask :) Which takes less processing? not stupid. say there is a few microseconds of difference in the parsing/compiling

Re: [PHP] // or /**/

2005-02-27 Thread Jochem Maas
pmpa wrote: Thanks Jochem. You're great! no. rasmus, for instance, is great. I'm a parrot :-) but thanks for the compliment. note to=parrotheadposters should a parrot respond to a thank you? /note -Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] pmpa wrote: Hi all! This

Re: [PHP] Upgrade question

2005-02-27 Thread Vidyut Luther
If you installed PHP from the Redhat RPMs, you may want to see if the fedoralegacy project has a newer RPM for your distribution. Otherwise, you're somewhat on your own. What I would do is, run phpinfo, it will output the configure options used to build PHP, copy those and then run them on your

Re: [PHP] convert MS DOC - PDF

2005-02-27 Thread mbneto
Hi Jochem, My system runs on linux so the com part seems to be out. What I refer as rewrite is that the classes that I saw have some primitives where I have to call in order to write the text, images and so on. Ideally I'd take my word documents, replace the dynamic parts with special codes so

[PHP] Re: mail() takes a long time to process

2005-02-27 Thread Manuel Lemos
Hello, on 02/26/2005 09:25 PM Dustin Krysak said the following: Hi there, I have a script that uses the mail() function, but for some reason the script takes a really long time to finish processing (like 5 minutes). there are some other functions performed (like sql insert, etc) that happen

Re: [PHP] list down

2005-02-27 Thread AdamT
Your email ended up in my gmail spam box. That should tell you something. On Fri, 25 Feb 2005 16:04:24 -0800, Tyler Replogle [EMAIL PROTECTED] wrote: I think it didn't because i wasn't getting an emails for a while last night. I wanted one too becuase i didn't have the email to start a new

[PHP] get_defined_vars in all scopes?

2005-02-27 Thread Anguz
Hi! I'm using this at the end of a script echo 'pre'; var_dump(get_defined_vars()); echo '/pre'; but it only returns what get_defined_vars gives, which is what's available in the current scope. Is there any way to get also the vars used in functions that weren't globalized? TIA! Crisitan

[PHP] Mailing List Tool

2005-02-27 Thread GH
Does someone know of a mailing list tool that runs via PHP that can check periodically (ie via a scheduled task) an email account for a message and then send it out to an entire list of addresses? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] [NEWBIE] How to allow for a href tags but no others?

2005-02-27 Thread abrea
Dave: I visited your website. I see that you wish to put the links in the middle of the text, which I didn't understand before. Now, if you let your users write tags you are bound to have a substantial number of them who don't even know what 'tag' means, let alone any occasional malice. Perhaps

Re: [PHP] getting mac id

2005-02-27 Thread Tyler Replogle
Yeah i wasn't think. I've already ruled that out i guess i'll have to use java. From: M. Sokolewicz [EMAIL PROTECTED] To: php-general@lists.php.net Subject: Re: [PHP] getting mac id Date: Sun, 27 Feb 2005 09:29:41 +0100 MIME-Version: 1.0 Received: from lists.php.net ([216.92.131.4]) by

Re: [PHP] get_defined_vars in all scopes?

2005-02-27 Thread John Holmes
I'm using this at the end of a script echo 'pre'; var_dump(get_defined_vars()); echo '/pre'; but it only returns what get_defined_vars gives, which is what's available in the current scope. Is there any way to get also the vars used in functions that weren't globalized? No, not unless

Re: [PHP] Was: Putting Evaluated Contents...

2005-02-27 Thread Marek Kilimajer
Brian A. Anderson wrote: Hey, Now, how about taking that variable and executing it? How might one do this? For instance: I might have an asp page on one server(Yeah, I have to use asp on that server) generate the results in the form of a bit of php code, and pass it to my php script via include

[PHP] Javascript PHP

2005-02-27 Thread timothy johnson
I am trying to make a small menu system using javascript, but the values that I want to use come from php/mysql. I can get the code to work when I type in the values but when I try to use php. it doesnt process the php. you view source and you can see the php functions. I have tried naming the

Re: [PHP] Uploading a File

2005-02-27 Thread anirudh dutt
were those two sections in the same file? entire contents and entire script can be a bit unclear. if they are in the same file... u might want to put an if (!empty($_FILES['myfile']['name'])) { //second section that handles files upload // the $uploaddir = /tmp; part } it would be good to give

Re: [PHP] Javascript PHP

2005-02-27 Thread anirudh dutt
use php to output the javascript code just as u'd do it for html (since the javascript code is IN the html). if ur js is ready: ?php echo JS_TEXT script language=javascript!-- ... //--/script JS_TEXT; ? the script part could be the code or a link to the file which u'd use as link rel=... [some

Re: [PHP] get_defined_vars in all scopes?

2005-02-27 Thread Anguz
John Holmes wrote: I'm using this at the end of a script echo 'pre'; var_dump(get_defined_vars()); echo '/pre'; but it only returns what get_defined_vars gives, which is what's available in the current scope. Is there any way to get also the vars used in functions that weren't globalized? No,

Re: [PHP] getting mac id

2005-02-27 Thread anirudh dutt
On Fri, 25 Feb 2005 15:52:02 -0800, Tyler Replogle [EMAIL PROTECTED] wrote: Hey, I've been on this mailing list for quite a while, but i think this is my first question. I'm not sure though. congrats on managing not to exceed ur account limit ;-) especially since u've been on this mailing

[PHP] Getting PHP to work with MySQL 4.1.10 under Fedora Core 3

2005-02-27 Thread John Swartzentruber
I have installed MySQL 4.1.10 from RPMs from MySQL. I have installed PHP 5.0.3 from source and specified --with-mysql=shared,/usr on the configure line. Things seem to build and load correctly, but (after restarting Apache) when I try to run phpMyAdmin, I get the following error: cannot load

Re: [PHP] Upgrade question

2005-02-27 Thread SurfSafely
Rackspace will only support 7.1 up to the point where RPMs hit eol. Translation: They stopped supporting 7.1. Because Rackspace donates the server for SurfSafely.com, telling my support team would be a bit harsh. Asking is what I do and they're still deliberating. While they deliberate, here is

[PHP] How to retrieve form data?

2005-02-27 Thread Gregg Nelson
The first execution of the file below produces the expected output: Request Method: GET Clicking on the Submit button outputs: Request Method: POST $_POST array contains: Array Why don't I see one of the values from the select item?

Re: [PHP] How to retrieve form data?

2005-02-27 Thread John Nichel
Gregg Nelson wrote: The first execution of the file below produces the expected output: Request Method: GET Clicking on the Submit button outputs: Request Method: POST $_POST array contains: Array Why don't I see one of the values from the select item?

Re: [PHP] How to retrieve form data?

2005-02-27 Thread Gregg Nelson
Thank you for your very quick answer. As you may have already guessed, I'm new to PHP, and struggling with the the most basic operations. I modifed the 'echo' as suggested and also added a 'printr statement. The modified portion of the script is below if ($_SERVER['REQUEST_METHOD'] ==

[PHP] Hmmm

2005-02-27 Thread Jason Bennett
I just installed a new MYSQL version 4.1 (from 4.0) and now none of my PHP scripts work anymore. They are all complaining about attempting to login as root. Normally, I referance a class like: class DB { function DB() { $this-host = 127.0.0.1:3306; $this-db = mydatabase;

Re: [PHP] Hmmm

2005-02-27 Thread John Nichel
Jason Bennett wrote: I just installed a new MYSQL version 4.1 (from 4.0) and now none of my PHP scripts work anymore. They are all complaining about attempting to login as root. snip I'm going to guess that you didn't setup MySQL 4.1 to accept 'old-style' passwords. -- By-Tor.com ...it's all

Re: [PHP] How to retrieve form data?

2005-02-27 Thread John Nichel
Gregg Nelson wrote: snip Clicking on the submit button now produces: -- Request Method: POST Using foreach loop, $_POST array contains: Array Using printr, $_POST array contains: Array ( [item] = Array (

RE: [PHP] Hmmm

2005-02-27 Thread Jason Bennett
Oooo.. good one. I used the RPM install for MySQL.. can you point me in the right direction for doing this? Thanks!! J. -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Sunday, February 27, 2005 9:40 PM To: php-general@lists.php.net Subject: Re: [PHP] Hmmm Jason

Re: [PHP] Hmmm

2005-02-27 Thread John Nichel
Jason Bennett wrote: Oooo.. good one. I used the RPM install for MySQL.. can you point me in the right direction for doing this? Thanks!! J. Google is your friend... http://www.google.com/search?q=mysql+4.1+accept+old+password -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP

[PHP] Re: Getting PHP to work with MySQL 4.1.10 under Fedora Core 3

2005-02-27 Thread M. Sokolewicz
well, for some reason it didn't compile in the mysql extension at all... even though it was configured to. That's strange, and I have no idea why it would do that. However, since you're using mysql 4.1.x, you should be using the mysqli interface anyway. Even phpmyadmin has the option to use