Re: [PHP] Re: List Slow?

2004-09-03 Thread Curt Zirzow
* Thus wrote M. Sokolewicz: John Nichel wrote: Is the list about two hours behind in delivering email today for everyone, or is it just me? Of course, if it is just me, I'll have to wait two hours to find out. ;) 1.5 hours for me... and many more people I'd guess... Judging by the

[PHP] HTTP Authentication in include()

2004-09-03 Thread Matt Wondra
Howdy. I'm trying to include a file from an HTTP Authenticated server in PHP. I have a valid username and password. Is there any way to remotely login and include the file? Ex: include(https://www.url.com/incl1.php;); // Trying to include from password-protected site How do I get past the

[PHP] Re: PHP to replace javascript

2004-09-03 Thread Sam Hobbs
Jack Gates [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Javascript can open a separate and specifically sized window from a web page when a user clicks on a link that might reference a note or picture etc. Can this be done with PHP? If yes, will someone tell me where in the

Re: [PHP] Adding a realtime monitoring console

2004-09-03 Thread Eric Emminger
Kelly, The most appealing method (in my mind) is to develop a socket protocol that allows the application to communicate with the console. The drawback here seems to be that the console will not usually be active, and I'm concerned that attempting to establish a connection will impose too

Re: [PHP] Regex for Validating URL

2004-09-03 Thread Nick Wilson
* and then Jim Grill declared Guys, while we may be able to debate what is rude, what is blunt, what should have been said, what was said, the facts are clear. He apologized, and I think its time to lest this debate rest for now. While I would admit that harshness runs rampid on

[PHP] literal dates

2004-09-03 Thread Justin French
Hi all, I'm really sure how to tackle this. Part of a CMS I'm building is an events calendar. The events in question can be in any part of the world (in any timezone) and the date time the user enters for the event is considered to be the local time of that event. So when I enter 2004-09-03

Re: [PHP] Regex for Validating URL

2004-09-03 Thread Jason Wong
On Friday 03 September 2004 02:23, Nick Wilson wrote: * and then Jason Wong declared - now re-read what I said. I rest my case. Classic. Thankyou Jason, you're a star. I really didnt apreciate just how inept at interaction with peers you truly were. Beautiful, very kind of you to share

RE: [PHP] Re: Large database, slow search times

2004-09-03 Thread Adrian Teasdale
Thanks for this. Will look into those :) Appreciate the help Ade Two things come to mind: 1) INDEX! And, since you're on MySQL, do a fulltext index of the column you're searching on. 2) Read up on the MATCH () ON () syntax in the MySQL documentation. -- PHP General Mailing List

[PHP] File Transfer

2004-09-03 Thread Syed Ghouse
Hi All (B (Bi have to transfer files from one server to another server thru php program.will (Banybody tell me how to do it? (B (BRegards (Bsyed

Re: [PHP] HTTP Authentication in include()

2004-09-03 Thread Jason Wong
On Friday 03 September 2004 05:27, Matt Wondra wrote: I'm trying to include a file from an HTTP Authenticated server in PHP. I have a valid username and password. Is there any way to remotely login and include the file? Ex: include(https://www.url.com/incl1.php;); // Trying to include

[PHP] Re: File Transfer

2004-09-03 Thread Nadim Attari
This gonna help: http://www.php.net/ftp Regards, Nadim Attari Syed Ghouse [EMAIL PROTECTED] a ecrit dans le message de news:[EMAIL PROTECTED] Hi All i have to transfer files from one server to another server thru php program.will anybody tell me how to do it? Regards syed -- PHP General

[PHP] Rsync

2004-09-03 Thread Syed Ghouse
Hi all (B (Bwill anybody tell me how to use rsync command to transfer files in php (B (BSyed

[PHP] Rsync

2004-09-03 Thread Syed Ghouse
Hi all (B (Bwill anybody tell me how to use rsync command to transfer files in php (B (BSyed

Re: [PHP] keep page information

2004-09-03 Thread Ligaya Turmelle
Session variables maybe Respectfully, Ligaya Turmelle devil_online wrote: Hi have this code, that I print two or more things ate a diferente time, and the page refreshs after 10 seconds. head meta http-equiv=refresh content=10 /head body ?php $hour = 21; $minute = 06; if(date('H')==$hour AND

Re: [PHP] Re: File Transfer

2004-09-03 Thread Nick Wilson
* and then Nadim Attari declared This gonna help: http://www.php.net/ftp I think you could also use the cURL functions. But ftp seems the way to go... -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Function Get Error

2004-09-03 Thread [EMAIL PROTECTED]
I write this function to delete directory and file but when i 've a directory not empty i get error The code that i write is this: function DelDir($dir) { if (!($handle = opendir($dir))) die(Error, it's not possible open $dir); while($file = readdir($handle) !== false) { if

Re: [PHP] Rsync

2004-09-03 Thread Nick Wilson
* and then Syed Ghouse declared Hi all will anybody tell me how to use rsync command to transfer files in php This looks like what you need: http://www.php.net/manual/en/ref.exec.php -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Rsync

2004-09-03 Thread Jason Wong
On Friday 03 September 2004 15:15, Syed Ghouse wrote: (B (B will anybody tell me how to use rsync command to transfer files in php (B (Bmanual Program Execution Functions (B (B-- (BJason Wong - Gremlins Associates - www.gremlins.biz (BOpen Source Software Systems Integrators (B* Web

Re: [PHP] File Transfer

2004-09-03 Thread raditha dissanayake
Syed Ghouse wrote: Hi All i have to transfer files from one server to another server thru php program.will anybody tell me how to do it? PHP is not the way to do it! use SCP you don't have to write a single line of code. Don't look at FTP. even though the FTP rcf talks about transfering

Re: [PHP] Rsync

2004-09-03 Thread raditha dissanayake
Syed Ghouse wrote: Hi all will anybody tell me how to use rsync command to transfer files in php probably not because rsync has a man page and you have another page on executing shell commands through php. Syed -- Raditha Dissanayake.

Re: [PHP] Re: Load Data Local Infile

2004-09-03 Thread raditha dissanayake
Harlequin wrote: Dark forces indeed...! Any ideas guys...? someone in a mysql list might have. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP

Re: [PHP] Sessions Problems

2004-09-03 Thread raditha dissanayake
Octavio Herrera wrote: Hello, im working in a website and I have this problem with sessions I have an admin page where I use session_start() and I have the user interface page where I also use session start, the problem is that when I open the user page, it overwrites my session I previously

Re: [PHP] List Slow?

2004-09-03 Thread raditha dissanayake
John Nichel wrote: Is the list about two hours behind in delivering email today for everyone, or is it just me? Of course, if it is just me, I'll have to wait two hours to find out. ;) The servers are probably clogged wiht mysql questions and flames at people who point out that mysql is off

Re: [PHP] Regex for Validating URL

2004-09-03 Thread raditha dissanayake
Just shows your IQ levels. Just because PHP is open source does not make this an open source. Justin Palmer wrote: Is PHP not open source. What a joke. Justin -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 10:24 AM To: [EMAIL

[PHP] Re: PHP Help

2004-09-03 Thread Torsten Roehr
Conbud [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey, Im making a site to where I can fill out a form and it adds updates to the main page, but I only want the site to display 5 updates on it, now I know how to make it only show 5 updates, but then that means when a new update

Re: [PHP] Function Get Error

2004-09-03 Thread raditha dissanayake
[EMAIL PROTECTED] wrote: DelDir('my_folder'); I receive this warning: Warning: rmdir(cartella): Directory not empty in c:\programmi\apache group\apache\users\test\project\delete.php on line 23 I have set chmod on linux chmod to 777 but i can delete folder only when is empty. What I do ? Thanks to

[PHP] Re: Function Get Error

2004-09-03 Thread Torsten Roehr
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I write this function to delete directory and file but when i 've a directory not empty i get error The code that i write is this: I receive this warning: Warning: rmdir(cartella): Directory not empty in

Re: [PHP] Regex for Validating URL

2004-09-03 Thread Nick Wilson
* and then raditha dissanayake declared Just shows your IQ levels. Just because PHP is open source does not make this an open source. I think he was talking about the 'spirit' of open source, not the mechanics and legalities of the list. I know i was, so dont assume please... -- Nick W

Re: [PHP] Re: List Slow?

2004-09-03 Thread Thornton
seems to be slow for me too like you said it seems to be that way for everyone On Thu, 2004-09-02 at 14:53, M. Sokolewicz wrote: John Nichel wrote: Is the list about two hours behind in delivering email today for everyone, or is it just me? Of course, if it is just me, I'll have to

Re: [PHP] File Transfer

2004-09-03 Thread Marek Kilimajer
raditha dissanayake wrote: Syed Ghouse wrote: Hi All i have to transfer files from one server to another server thru php program.will anybody tell me how to do it? PHP is not the way to do it! use SCP you don't have to write a single line of code. Don't look at FTP. even though the FTP rcf

[PHP] Using before a variable

2004-09-03 Thread Shaun
Hi, I have noticed that some of the functions in a tutorial I am studying have an in the variable parameters i.e. function add($id) { /* function body */ } I would be most grateful if some can shed some light on this as i cant fnd any reference to this in the PHP manual... Thanks -- PHP

Re: [PHP] Using before a variable

2004-09-03 Thread Nick Wilson
* and then Shaun declared I would be most grateful if some can shed some light on this as i cant fnd any reference to this in the PHP manual... Here ya go! http://www.php.net/manual/en/language.variables.php#language.variables.basics It's the 2nd example there. I cant claim to fully

[PHP] Re: Using before a variable

2004-09-03 Thread Craig Donnelly
http://php.us.themoes.org/manual/en/language.references.pass.php Passing by reference instead of value. HTH Craig Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have noticed that some of the functions in a tutorial I am studying have an in the variable parameters

Re: [PHP] Using before a variable

2004-09-03 Thread Marek Kilimajer
Shaun wrote: Hi, I have noticed that some of the functions in a tutorial I am studying have an in the variable parameters i.e. function add($id) { /* function body */ } I would be most grateful if some can shed some light on this as i cant fnd any reference to this in the PHP manual... Thanks

[PHP] [PHP5] paradox ? Bug ?

2004-09-03 Thread Frédéric Hardy
Hello - I think there is a bug or a paradox in the php 5 object model implementation. This is an example : ?php class foo implements arrayAccess { private $array = array(); function __construct() {} function __get($key) { return $this-offsetGet($key); } function

[PHP] Re: [PHP5] paradox ? Bug ?

2004-09-03 Thread Daniel Kullik
Hello Frédéric. This is neither a bug nor a paradox. The code you've posted just contains some nonsense. $foo['bar'] = 'bar'; cannot work since $foo is an object and not an array. And even $foo-bar = 'bar'; cannot work because there is no property $bar. Frédéric hardy wrote: Hello - I think

RE: [PHP] Regex for Validating URL

2004-09-03 Thread Ford, Mike
On 02 September 2004 19:41, Nick Wilson wrote: You know guys? I think you all take this a bit too seriously, perdanticness (is there such a word?) Just to be pedantic, that would be pedantry ;) ! Cheers! Mike - Mike Ford,

Re: [PHP] Re: [PHP5] paradox ? Bug ?

2004-09-03 Thread Frédéric Hardy
WRONG ! Read the manual about __set() and __get(). And read http://www.php.net/~helly/php/ext/spl/index.html about arrayAccess. Php 5 allow you to overloading property dynamicaly with __set() and __get(). And you can access an object like an array with arrayAccess interface. There is no

Re: [PHP] Popup with recent IE updates

2004-09-03 Thread Sam Hobbs
Lester Caine [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So don't know what goes wrong, but were running Apache 2.0.50, PHP5.0.0 on XP-SP1 and probably style sheets were going wrong. Switch back to W2k SP3 and all is fine (SP4 screws up various other network apps) so we stay

Re: [PHP] [PHP5] paradox ? Bug ?

2004-09-03 Thread Marek Kilimajer
Frédéric Hardy wrote: Hello - I think there is a bug or a paradox in the php 5 object model implementation. This is an example : ?php class foo implements arrayAccess { private $array = array(); function __construct() {} function __get($key) { return $this-offsetGet($key); }

Re: [PHP] Re: [PHP5] paradox ? Bug ?

2004-09-03 Thread Frédéric Hardy
Moreover, $foo['bar'] = 'bar' work perfectly... Fred. Frédéric Hardy wrote: WRONG ! Read the manual about __set() and __get(). And read http://www.php.net/~helly/php/ext/spl/index.html about arrayAccess. Php 5 allow you to overloading property dynamicaly with __set() and __get(). And you can

Re: [PHP] keep page information

2004-09-03 Thread devil_online
and how could I do that? thanks in advance. Ligaya Turmelle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Session variables maybe Respectfully, Ligaya Turmelle devil_online wrote: Hi have this code, that I print two or more things ate a diferente time, and the page

RE: [PHP] literal dates

2004-09-03 Thread Ford, Mike
On 03 September 2004 06:46, Justin French wrote: If I use strtotime(), I'm handed back a GMT timestamp, whereas I need a *local* timestamp. No such thing as a *local* timestamp. UNIX timestamps are in GMT by definition -- it's the functions that work with them that do the timezone

Re: [PHP] Re: [PHP5] paradox ? Bug ?

2004-09-03 Thread Daniel Kullik
Well alright, then I ought to read the suggested sources. Thanks for the advice. Anyway, doesn't it cause trouble to have $array as a private member? Frédéric hardy wrote: Moreover, $foo['bar'] = 'bar' work perfectly... Fred. Frédéric Hardy wrote: WRONG ! Read the manual about __set() and

Re: [PHP] [PHP5] paradox ? Bug ?

2004-09-03 Thread Frédéric Hardy
Marek Kilimajer wrote: See recent discusion on this list about this behavior. You can find it in the archives if you look for __isset. I know, I am the author of this recent discussion. Current discussion is an extension. echo (isset($foo-array) == true ? 'array is set' : 'array is not set');

[PHP] Call to undefined function imagettftext()

2004-09-03 Thread Paul Reinheimer
While working with some CAPTCHA stuff I get the following error: Fatal error: Call to undefined function imagettftext(). The PHP Manual states that the function is available in PHP 5 (http://www.php.net/manual/en/function.imagettftext.php), and I have compiled with GD support. What am I missing?

Re: [PHP] List Slow?

2004-09-03 Thread John Nichel
raditha dissanayake wrote: John Nichel wrote: Is the list about two hours behind in delivering email today for everyone, or is it just me? Of course, if it is just me, I'll have to wait two hours to find out. ;) The servers are probably clogged wiht mysql questions and flames at people who

RE: [PHP] Regex for Validating URL

2004-09-03 Thread Alex Hogan
Just to be pedantic, that would be pedantry ;) ! Is this thread ever going to die? Or would that be dye? ;) alex hogan * The contents of this e-mail and any files transmitted with it are confidential and

Re: [PHP] File Transfer

2004-09-03 Thread raditha dissanayake
Marek Kilimajer wrote: raditha dissanayake wrote: Syed Ghouse wrote: Hi All i have to transfer files from one server to another server thru php program.will anybody tell me how to do it? PHP is not the way to do it! use SCP you don't have to write a single line of code. Don't look at FTP. even

Re: [PHP] Sessions Problems

2004-09-03 Thread Octavio Herrera
No, I do not store two items with the same key, I just open another session in other page and it just overwrite session data of a previous session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is a PECL a black whole?

2004-09-03 Thread Sam Hobbs
It took me a while to find an explanation of what a PECL is. I kept reading comments about things being moved to a PECL but I saw nothing about what is in a PECL or how to get anything out of a (the?) PECL. As far as I knew, there is a danger of all of PHP being in a PECL. I could not (and

[PHP] Getting $_POST variables back

2004-09-03 Thread Thomas Hochstetter
Hi there, I am not sure if that is a common request, so I will post it here without checking the archives . ;-) I have a page which has its details from the $_POST array (ID, etc). On it there is a small link about people, this is done via href link in html. This link takes you to another page

Re: [PHP] [PHP5] paradox ? Bug ?

2004-09-03 Thread Marek Kilimajer
Frédéric Hardy wrote: Marek Kilimajer wrote: See recent discusion on this list about this behavior. You can find it in the archives if you look for __isset. I know, I am the author of this recent discussion. Current discussion is an extension. isset($foo['bar']) tests for existance of

[PHP] Re: Call to undefined function imagettftext()

2004-09-03 Thread M. Sokolewicz
Paul Reinheimer wrote: While working with some CAPTCHA stuff I get the following error: Fatal error: Call to undefined function imagettftext(). The PHP Manual states that the function is available in PHP 5 (http://www.php.net/manual/en/function.imagettftext.php), and I have compiled with GD

Re: [PHP] [PHP5] paradox ? Bug ?

2004-09-03 Thread Daniel Schierbeck
I think this basically sums up the problems of the current handling of existence-checking in overloaded objects: We have an object that has user-defined methods for getting and setting object properties (__get() and __set(), respectively). These methods get and set the properties in a private

Re: [PHP] Is a PECL a black whole?

2004-09-03 Thread Frédéric Hardy
What is PECL ? PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions. The packaging and distribution system used by PECL is shared with its sister, PEAR. ... Is it clear ? It is the same

Re: [PHP] Is a PECL a black whole?

2004-09-03 Thread Dave Restall - System Administrator,,,
It took me a while to find an explanation of what a PECL is. I kept reading comments about things being moved to a PECL but I saw nothing about what is in a PECL or how to get anything out of a (the?) PECL. As far as I knew, there is a danger of all of PHP being in a PECL. I could not

RE: [PHP] Getting $_POST variables back

2004-09-03 Thread Jay Blanchard
[snip] NOW: The question arises: where does the browser store this info, and can I get it back from there on the page that got called via the href html? I would like to avoid some rather unnecessary server side selects to retrieve the previous page. [/snip] The browser really doesn't store the

Re: [PHP] [PHP5] paradox ? Bug ?

2004-09-03 Thread Curt Zirzow
* Thus wrote Daniel Schierbeck: I think this basically sums up the problems of the current handling of existence-checking in overloaded objects: We have an object that has user-defined methods for getting and setting object properties (__get() and __set(), respectively). These methods get

Re: [PHP] Is a PECL a black whole?

2004-09-03 Thread Gerard Samuel
Frédéric Hardy wrote: What is PECL ? PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions. The packaging and distribution system used by PECL is shared with its sister, PEAR. ... Is it

Re: [PHP] Is a PECL a black whole?

2004-09-03 Thread Curt Zirzow
* Thus wrote Sam Hobbs: It took me a while to find an explanation of what a PECL is. I kept reading comments about things being moved to a PECL but I saw nothing about what is in a PECL or how to get anything out of a (the?) PECL. As far as I knew, there is a danger of all of PHP being in a

Re: [PHP] Sessions Problems

2004-09-03 Thread raditha dissanayake
Octavio Herrera wrote: No, I do not store two items with the same key, I just open another session in other page and it just overwrite session data of a previous session hi, again this does not provide enough information,you will need to more clearly state the problem please are you using

[PHP] List of Users

2004-09-03 Thread Jesus
Hi I wish to know how I can list my email user I used imap to control the individual mailbox information but i need to adminitratiton propurse list all the user but i cant find a function to do this

Re: [PHP] Is a PECL a black whole?

2004-09-03 Thread Robert Cummings
On Fri, 2004-09-03 at 10:29, Dave Restall - System Administrator,,, wrote: It took me a while to find an explanation of what a PECL is. I kept reading comments about things being moved to a PECL but I saw nothing about what is in a PECL or how to get anything out of a (the?) PECL. As far

Re: [PHP] PHP to replace javascript

2004-09-03 Thread Mark
--- Jack Gates [EMAIL PROTECTED] wrote: Greetings, This is my first post here and I am still new to PHP and learning. I just joined this list last night. Javascript can open a separate and specifically sized window from a web page when a user clicks on a link that might reference a

RE: [PHP] Is a PECL a black whole? OT

2004-09-03 Thread Jay Blanchard
[snip] black whole? [/snip] As in, Is PECL the wholeness of black? or Is PECL all that is black? *snicker* It just struck me funny, but everyone knew that you meant black hole. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions Problems

2004-09-03 Thread Mark
--- Octavio Herrera [EMAIL PROTECTED] wrote: No, I do not store two items with the same key, I just open another session in other page and it just overwrite session data of a previous session This is because (I believe) you can't open two cookie-based sessions with two browser windows and

[PHP] bcompiler

2004-09-03 Thread Werthmann, Stefan
Helo! I' m just in trouble with bcompiler. I want to compile a new bcompiler.so and this is the result: Any suggestions? /opt/lampp/lib/php/extensions/bcompiler/bcompiler.c:2336: error: `zend_uchar' undeclared (first use in this function)

Re: [PHP] uppercase sentences

2004-09-03 Thread Jim Grill
Hi all, I'm working with a bunch of users who hardly ever use correct punctuation in their submitted content. I realise there's very little I can do, but I'm trying to do *something* to make things a little more presentable. At the very least, ensuring that all sentences begin with a

[PHP] Cardservice lphp won't create array

2004-09-03 Thread Brian Dunning
You'll need to be generally familiar with Cardservice's lphp class to answer this one: I'm properly setting the $myorder array (as verified by outputting it with a while loop) - but upon executing the next step: $charge_result = $mylphp-curl_process($myorder); I then attempt to display the

Re: [PHP] Need direction on PHP-CLI MUD Server

2004-09-03 Thread Jim Grill
Unfortunately, since they are coming in through a socket and not actual telnet/ssh I don't think $fp=fopen(/dev/stdin, r); works? Isn't that only for terminal based input? Donald Myers Have you tried it? Every process will have access to its own STDIN and STDOUT. since your MUD server runs

Re: [PHP] List of Users

2004-09-03 Thread Jason Wong
On Friday 03 September 2004 22:56, Jesus wrote: I wish to know how I can list my email user I used imap to control the individual mailbox information but i need to adminitratiton propurse list all the user but i cant find a function to do this Because there are no generic methods to get the

Re: [PHP] Need direction on PHP-CLI MUD Server

2004-09-03 Thread Jim Grill
Unfortunately, since they are coming in through a socket and not actual telnet/ssh I don't think $fp=fopen(/dev/stdin, r); works? Isn't that only for terminal based input? Donald Myers oops... forgot this: http://www.php.net/manual/en/ref.pcntl.php Jim Grill on 9/2/04 10:31 AM, Jim

Re: [PHP] Sessions Problems

2004-09-03 Thread Jason Davidson
Read up on 'named sessions' I think that may be your solution jason Mark [EMAIL PROTECTED] wrote: --- Octavio Herrera [EMAIL PROTECTED] wrote: No, I do not store two items with the same key, I just open another session in other page and it just overwrite session data of a previous

Re: [PHP] Is a PECL a black whole?

2004-09-03 Thread John Coggeshall
It is the same thing than pear, but most of extensions are written with C in order to increase performance. Increases in performance aren't the only reason, but it is a reason. tidy is a php extension (PECL), for example. Yes. Php extensions are all that is not in the php core. Not

Re: [PHP] Sessions Problems

2004-09-03 Thread Mark
--- Jason Davidson [EMAIL PROTECTED] wrote: Read up on 'named sessions' I think that may be your solution Interesting... here's a link to php.net. I assume this is what you're talking about... Looks promising. http://us4.php.net/manual/en/function.session-name.php jason Mark [EMAIL

[PHP] I need to execute PHP scripts from Apache/mod_php using the owner of scripts as user/group for execution.

2004-09-03 Thread Luis Miguel González Fernández
I need to execute PHP scripts from Apache/mod_php using the owner of scripts as user/group for execution. I have included the 'User' and 'Group' directives into the virtualhost declaration in my httpd.conf but scripts keep on executing with user/group from Apache. Urgent help needed. Thanks.

[PHP] How can i force PHP scripts been executed using their owner user/group with Apache and PHP loaded as module ?

2004-09-03 Thread Luis Miguel González Fernández
How can i force PHP scripts been executed using their owner user/group with Apache and PHP loaded as module ? Now my scripts use Apache`s user/group (wwwrun/www in my ditribution). I've included User an Group directives in the virtualhost configuration. I need any kind of help refered to this

[PHP] how can I get the fileversion?

2004-09-03 Thread Pedro Irán Méndez Pérez
Hello everybody, I am a new in this list, and I can´t find the form of read from file his file version, I am working with php 4.3.2, Apache 1.3.x, Win32 (XP). Can you help me?? PD. Sorry for my english, but I am Mexican :) = ¿Acaso se olvidará la mujer de su bebé, y dejará de compadecerse

[PHP] Web Fetch Process

2004-09-03 Thread Zoran
Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. For example, if I have bold text on HTML page (bSome text/b) how can I manage that all bold text on that page is replaced by some other text. Also, I managed to delete all HTML code from

[PHP] PHP Linux locate to html script?

2004-09-03 Thread BOOT
Does anyone have a script that can be used to call linux's locate command and display the results in a browser? I don't think it would be that hard and will make an effort today... Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I need to execute PHP scripts from Apache/mod_php using the owner of scripts as user/group for execution.

2004-09-03 Thread John Nichel
Luis Miguel González Fernández wrote: I need to execute PHP scripts from Apache/mod_php using the owner of scripts as user/group for execution. I have included the 'User' and 'Group' directives into the virtualhost declaration in my httpd.conf but scripts keep on executing with user/group from

Re: [PHP] how can I get the fileversion?

2004-09-03 Thread John Nichel
Pedro Irán Méndez Pérez wrote: Hello everybody, I am a new in this list, and I can´t find the form of read from file his file version, I am working with php 4.3.2, Apache 1.3.x, Win32 (XP). Can you help me?? PD. Sorry for my english, but I am Mexican :) = ¿Acaso se olvidará la mujer de su

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread John Nichel
BOOT wrote: Does anyone have a script that can be used to call linux's locate command and display the results in a browser? I don't think it would be that hard and will make an effort today... Thanks! http://us4.php.net/manual/en/function.exec.php -- John C. Nichel ÜberGeek KegWorks.com

[PHP] Re: PHP Linux locate to html script?

2004-09-03 Thread Ben Ramsey
Have you taken a look at the passthru() function? http://www.php.net/passthru Boot wrote: Does anyone have a script that can be used to call linux's locate command and display the results in a browser? I don't think it would be that hard and will make an effort today... -- Regards, Ben Ramsey

RE: [PHP] PHP Linux locate to html script?

2004-09-03 Thread Jay Blanchard
[snip] Does anyone have a script that can be used to call linux's locate command and display the results in a browser? I don't think it would be that hard and will make an effort today... [/snip] exec(locate foo); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP Linux locate to html script?

2004-09-03 Thread Paul Fine
Thanks but that's no good if there are multiple results! -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: September 3, 2004 1:40 PM To: BOOT; [EMAIL PROTECTED] Subject: RE: [PHP] PHP Linux locate to html script? [snip] Does anyone have a script that can be used to

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread Ben Ramsey
According to the manual, exec() does not output anything. It simply returns the last line from the result of the command. The OP wants to display the output of 'locate' to the browser, so he should use passthru(), which displays all raw output. Jay Blanchard wrote: [snip] Does anyone have a

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread lonewolf
?php $items = passthru('locate whatever'); echo htmlbodyP; echo $items; echo /P/body/html; ? - Original Message - From: BOOT [EMAIL PROTECTED] Date: Friday, September 3, 2004 1:46 pm Subject: [PHP] PHP Linux locate to html script? Does anyone have a script that can be used to call

RE: [PHP] PHP Linux locate to html script?

2004-09-03 Thread Jay Blanchard
[snip] Thanks but that's no good if there are multiple results! ... Does anyone have a script that can be used to call linux's locate command and display the results in a browser? ... [/snip] exec(locate foo); [/snip] So you want something like while(bar == exec(locate foo)) barArray[]

RE: [PHP] PHP Linux locate to html script?

2004-09-03 Thread Paul Fine
Great thanks... now I just work on a form and a hrefs -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: September 3, 2004 1:49 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] PHP Linux locate to html script? ?php $items = passthru('locate

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread Jason Davidson
I assume you mean locating something on the server, as this would be a serious breech of security otherwise. anyways, bickticks will run shell comand line programs and return the output.. ie print `locate myFile'`; jason BOOT [EMAIL PROTECTED] wrote: Does anyone have a script that can be

[PHP] Correct headers for I.E. to open PDF?

2004-09-03 Thread Paul Danko
I have searched the net, and found tons of developers with different solutions to this problem, none of which I have found to work. What should the headers be for a client to download a PDF document and have it open using adobe i.e. pluggin?? Here is code I am using, it works on some versions

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread Greg Donald
On Fri, 2004-09-03 at 12:46, BOOT wrote: Does anyone have a script that can be used to call linux's locate command and display the results in a browser? ?php echo `locate locate`; ? -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread BOOT
Thanks for all the replies. Regarding security, I use a script to ensure (hopefully LOL) that only requests from inside our network are accepted both hostnames and IP's are checked. I did find lonewolf's reply most usefull, but now I need to come up with way to make each result (a href...)

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread lonewolf
Aww, I answered this one already too... I thought I beat everyone in as well, but maybe the list is still slow?? Passthru() is better then exec() in this case, since he wants everything from locate, I couldn't get the explode to work on my system because it didn't catch the \n character very

Re: [PHP] Re: PHP to replace javascript

2004-09-03 Thread Jack Gates
On Friday 03 September 2004 01:11 am, Sam Hobbs wrote: Jack Gates [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Javascript can open a separate and specifically sized window from a web page when a user clicks on a link that might reference a note or picture etc. Can this be

Re: [PHP] Correct headers for I.E. to open PDF?

2004-09-03 Thread Matt M.
$pdfdoc = $__BASE_PDF_BUILD_DIRECTORY.$_GET['FID']; $filesize = filesize($pdfdoc); header(Pragma: ); header(Expires: 0); header(Cache-Control: must-revalidate, post-check=0,pre-check=0); header(Content-type: application/pdf); header(Content-Length: .$filesize);

Re: [PHP] Web Fetch Process

2004-09-03 Thread Jim Grill
From: Zoran [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 03, 2004 12:35 PM Subject: [PHP] Web Fetch Process Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. For example, if I have bold text on HTML page (bSome text/b)

Re: [PHP] Correct headers for I.E. to open PDF?

2004-09-03 Thread Jim Grill
I have searched the net, and found tons of developers with different solutions to this problem, none of which I have found to work. What should the headers be for a client to download a PDF document and have it open using adobe i.e. pluggin?? Here is code I am using, it works on some

  1   2   >