[PHP] multiple instances of php.exe

2003-11-10 Thread Matt Warner
Hi guys, I'm not sure if this is the right place to post this but I've looked everywhere else. I am running php on win2k in cgi mode. My server keeps locking up and refusing to serve pages. There are multiple instances of php.exe, up to 40 of them, in task manager. This can last from a couple

[PHP] Re: multiple instances of php.exe

2003-11-10 Thread Alexandru COSTIN
Hi, For FAST and STABLE installation of PHP over IIS, please check: http://php.weblogs.com/fastcgi_with_php_and_iis It's really amazing how high is the speed increase .. Alexandru Matt Warner wrote: Hi guys, I'm not sure if this is the right place to post this but I've looked everywhere

Re: [PHP] Trouble sending an image's contents as output using header Content-Type...

2003-11-10 Thread Marek Kilimajer
Manuel Vázquez Acosta wrote: Hi all: I have a page with a img tag: img src=/getthumbnail.php?fileid=12230983 Any tips? Manu. Type http://server.com/getthumbnail.php?fileid=12230983 in the location bar and see what happens. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] BRU Help

2003-11-10 Thread David T-G
Nitin -- ...and then Nitin said... % % I'm sorry, I know this is not the list, to ask this question, but I couldn't find the right one. You're right; it isn't. Neither is the PHP-DB list. Although I've heard of it, I've never had any involvement with BRU; I think it's safe to say I'm pretty

[PHP] After upload problem!!

2003-11-10 Thread fr r
i have no problem in uploading my pictures, the problem that i have that after uploading it i can't move or copy the uploaded pictures and it gives me permession denied !! i guess thats because it gives permession only to the apache user, is there anyway i can change that?? thx for ur time guys

Re: [PHP] After upload problem!!

2003-11-10 Thread Chris Hayes
At 11:17 10-11-03, you wrote: i have no problem in uploading my pictures, the problem that i have that after uploading it i can't move or copy the uploaded pictures and it gives me permession denied !! i guess thats because it gives permession only to the apache user, is there anyway i can

[PHP] session vars for other session name

2003-11-10 Thread David T-G
Hi, all -- I have a picture gallery application which uses sessions. As part of the config we set the session name; the default is 'locscout'. I also have a portfolio/presentation application layered on top of this (and almost ready for release! :-) :-) with its own session name. When I start

Re: [PHP] session vars for other session name

2003-11-10 Thread Marek Kilimajer
David T-G wrote: Hi, all -- I have a picture gallery application which uses sessions. As part of the config we set the session name; the default is 'locscout'. I also have a portfolio/presentation application layered on top of this (and almost ready for release! :-) :-) with its own session

[PHP] $_SESSION[''] variable not get passed

2003-11-10 Thread S.P.Vimala
Hi, I have apache, php 4.1.2 running on windows machine. The following are the seetings related to sessions in php.ini file register_globals =off session.autostart=1 session.use cookies=0 session.use_trans_sid=1 Now i have the following code

[PHP] About php

2003-11-10 Thread webmaster
We have a data base in access 2000. Could you advise which version of php will connect to the access. Please advise also how can i open the connection . Thank you in advance for your assistance. Best regards Marlyn Estefanos Businesslink. -- PHP General Mailing List

Re: [PHP] About php

2003-11-10 Thread Pavel Jartsev
webmaster wrote: We have a data base in access 2000. Could you advise which version of php will connect to the access. Please advise also how can i open the connection . Look into ODBC-functions: http://www.php.net/manual/en/function.odbc-connect.php -- Pavel a.k.a. Papi -- PHP General Mailing

[PHP] [Newbie Guide] For the benefit of new members

2003-11-10 Thread tech
= This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. == 1. If you have any queries/problems about PHP

[PHP] \n and br

2003-11-10 Thread PHPLover
is \n same as br I found that \n does the same function as br for some users, but not for me. I know that \n creates a break in source and not in display. Is it possible to make \n does the same function as br Thanks Regards, ___ PHPLover Göd döësn't pläy dícë. -

RE: [PHP] \n and br

2003-11-10 Thread Jay Blanchard
[snip] is \n same as br I found that \n does the same function as br for some users, but not for me. I know that \n creates a break in source and not in display. Is it possible to make \n does the same function as br [/snip] http://us3.php.net/nl2br -- PHP General Mailing List

[PHP] Running CLI from a web page

2003-11-10 Thread Ron Rudman
I have a php cli that creates a file. It works fine when I execute it from the Linux command line as php foo bar. I'm trying to also execute this by clicking a form button on a web page via system('php foo bar'). I can see that the file bar gets created but it's always empty. I've tried

RE: [PHP] Running CLI from a web page

2003-11-10 Thread Jay Blanchard
[snip] I have a php cli that creates a file. It works fine when I execute it from the Linux command line as php foo bar. I'm trying to also execute this by clicking a form button on a web page via system('php foo bar'). I can see that the file bar gets created but it's always empty. I've

RE: [PHP] \n and br

2003-11-10 Thread Chris Hayes
\n is the code to write a new line, between double quotes. Actually it translates to a 0D or 0A code. If there is a 0D or 0A in a text or file (or normal text email) it works as a newline. If you look at the _source_ of your HTML file you will see it too. BR is the HTML code for new line.

Re: [PHP] $HTTP_Referer

2003-11-10 Thread Chris Shiflett
--- Josephin Tauschinger [EMAIL PROTECTED] wrote: Thank you Chris! No problem. :-) What I did was exactly what Pablo Gosse proposed and, as you stated, it didn't work: input type=hidden name=referrer value=?php echo $_SERVER['HTTP_REFERER']; ? Do you know how I can get my webserver

Re: [PHP] \n and br

2003-11-10 Thread Chris Shiflett
--- PHPLover [EMAIL PROTECTED] wrote: is \n same as br This is not true. I know that \n creates a break in source and not in display. Is it possible to make \n does the same function as br No, but you can convert your newlines to the HTML equivalent: http://www.php.net/nl2br Hope that

[PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Here's a quick one: has anyone found a way to keep a resource handle alive between page loads? For example, I open a socket with fsockopen, and I'd like the handle to survive page loads. As you know, there's not much point storing it in a session (or its parent object)... Any ideas? Tx,

[PHP] Re: PHP developers

2003-11-10 Thread James
Follow-up question: If I have a specific project that I'm hiring for, would it be inappropriate to post it here? James [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can anyone recommend a good place where I can find some talented PHP contractors? I'm looking to hire some people

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Chris Hayes
At 16:09 10-11-03, you wrote: Here's a quick one: has anyone found a way to keep a resource handle alive between page loads? For example, I open a socket with fsockopen, and I'd like the handle to survive page loads. As you know, there's not much point storing it in a session (or its parent

[PHP] Digital Signatures or opennssl examples

2003-11-10 Thread Justin Hannus
Does anyone know of some good links to material on Digital Signatures or openssl examples, articles, tutorials or discussions?? Of course, implemented in PHP. -- Justin Hannus Lead Programmer/Web Development [EMAIL PROTECTED] www.visualconceptsinc.com [860] 242.1150 ext.125 [860] 242.1446 fax --

[PHP] Generating test data

2003-11-10 Thread Luis Lebron
I would like to create some dummy mysql tables for load testing an application. Are there any tools that would make this task easier? At the moment I'm thinking of generating a series of arrays based on actual data (i.e Select distinct fielndname, followed by an array_push). And then randomly

Re: [PHP] Digital Signatures or opennssl examples

2003-11-10 Thread Chris Shiflett
--- Justin Hannus [EMAIL PROTECTED] wrote: Does anyone know of some good links to material on Digital Signatures or openssl examples, articles, tutorials or discussions?? Of course, implemented in PHP. I don't know of any tutorials, but the documentation has quite a bit of information:

Re: [PHP] Re: PHP developers

2003-11-10 Thread Chris Shiflett
--- James [EMAIL PROTECTED] wrote: Follow-up question: If I have a specific project that I'm hiring for, would it be inappropriate to post it here? As long as you're looking for a PHP developer, this is the place to post. :-) If it is ever decided that such things should not be posted here, I

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Hi Chris, no, unfortunately, that doesn't work; it creates a permanent socket on the server, but between page reads, php still loses its resource id, and can't communicate with the socket... Martin Chris Hayes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 16:09 10-11-03, you

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Chris Shiflett
--- Martin Helie [EMAIL PROTECTED] wrote: no, unfortunately, that doesn't work; it creates a permanent socket on the server, but between page reads, php still loses its resource id, and can't communicate with the socket... The last two user notes on this page seem relevant:

Re: [PHP] session vars for other session name

2003-11-10 Thread David T-G
Marek, et al -- ...and then Marek Kilimajer said... % % David T-G wrote: % % I have a picture gallery application which uses sessions. As part of the % config we set the session name; the default is 'locscout'. % % I also have a portfolio/presentation application layered on top of this % (and

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Raditha Dissanayake
Quick answer: as others before me have also mentioned this cannot be done. Martin Helie wrote: Here's a quick one: has anyone found a way to keep a resource handle alive between page loads? For example, I open a socket with fsockopen, and I'd like the handle to survive page loads. As you know,

Re: [PHP] Digital Signatures or opennssl examples

2003-11-10 Thread Justin Hannus
Yes, I'm actually gonging through the documentation now and am finding some good but maybe incomplete or short examples on certain functions but am looking for a more complete or round about example on the whole picture. I guess I can piece together multiple examples of functions but was inquiring

Re: [PHP] session vars for other session name

2003-11-10 Thread Marek Kilimajer
David T-G wrote: I'm a bit confused... I haven't tried this yet, so maybe it will all come clear when I do, but I'm still confused! So where I currently have session_name($wfname) ; session_start ; ... I'd instead have session_name($wfname) ; $_COOKIE[$wfname] = $_COOKIE['locscout'] ;

[PHP] safe writing by apache

2003-11-10 Thread David T-G
Hi, all -- The way our web hosting is set up, files written by apache under a site directory tree tree have the site groupship but that directory nonetheless must be world writable. The only answer from the host was to, yes, avoid 777 and use chown/chgrp instead. Now I can do that, but it

Re: [PHP] session vars for other session name

2003-11-10 Thread David T-G
Marek, et al -- ...and then Marek Kilimajer said... % % David T-G wrote: ... % or so. But what does that buy me? How will then setting my password at % one level (presentation) also set it at another (gallery)? % % You will have the same session variables accessible in your script. Oho.

RE: [PHP] resource handle - keeping alive?

2003-11-10 Thread Dan Joseph
Hi, Quick answer: as others before me have also mentioned this cannot be done. has anyone found a way to keep a resource handle alive between page loads? I've missed most of this thread, but thought I'd let you know what I'm going for a socket setup right now. It may or may not

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Hi Chris, yes, that's precisely my problem (I had read the notes). This seems like something people would want to do, so I'm surprised no one's found some workaround. Any other ideas? Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Martin Helie [EMAIL PROTECTED]

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Raditha Dissanayake
Hi Martin, This is unfortunately not something that has an easy work around. I have seen a post by Dan Joseph with what looks like a good suggestion. If my understanding of J2EE is correct, i believe you will be able to persist connections between two different pages if you use java servlets.

[PHP] DW Php update record form with menu from another table

2003-11-10 Thread Robb Kerr
I'm using Dreamweaver's Update Record form wizard to create a record update page. Most of the fields are text, one is file and I want one of them to be a menu. The menu field should be populated with the fields of another table. Here's the problem... If I leave all of the fields as text input

[PHP] Reply to a email with PHP

2003-11-10 Thread paul.belaval
Hi folks, What I would like to do in PHP is the following: * read my mailbox on the server * select some mails * reply to theses mails. I have looked among the PHP imap API, and I did not found any like imap_reply. What should I do? Many thanks for helping. Paul BELAVAL -- PHP General

[PHP] Whats wrong with this query?

2003-11-10 Thread Dave Carrera
$addamysqluser = mysql_query(grant select,insert,drop,update,delete,create,index,alter on $_POST[f2] to [EMAIL PROTECTED] IDENTIFIED by $_POST[f3]); What is wrong with the above php based mysql_query ? I am trying to add a user to mysql granting just the specified rights to table defined by the

Re: [PHP] Reply to a email with PHP

2003-11-10 Thread Raditha Dissanayake
Hi, You probably didn't find anything in the imap api because mail reply is handled by SMTP. You can use the IMAP library to read your mail, however you need to use either the simple old mail() function or one of the more sophisticated MIME mail classes available to send replies or new

Re: [PHP] Whats wrong with this query?

2003-11-10 Thread Raditha Dissanayake
Hi Dave, I could be wrong cause i am answering without running your code : 1) your mysql user account probably does not have grant privileges. good thing too. It's very dangerous to just run a grant query like this because it can so easily be abused by a malicious user. (of course you might

RE: [PHP] Whats wrong with this query?

2003-11-10 Thread Chris W. Parker
Dave Carrera mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 8:45 AM said: $addamysqluser = mysql_query(grant select,insert,drop,update,delete,create,index,alter on $_POST[f2] to [EMAIL PROTECTED] IDENTIFIED by $_POST[f3]); What is wrong with the above php based mysql_query ? 1.

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Hi Dan, sounds like a good idea. How does 'gateway' actually listen in on the website session? Is it simply invoked by the website with specific arguments? Tx, Martin Dan Joseph [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Quick answer: as others before me have also

RE: [PHP] resource handle - keeping alive?

2003-11-10 Thread Dan Joseph
Hi, sounds like a good idea. How does 'gateway' actually listen in on the website session? Is it simply invoked by the website with specific arguments? It has a socket connection that waits for an incoming request from the web site, and then it takes what was sent from the web site,

Re: [PHP] Whats wrong with this query?

2003-11-10 Thread Chris Shiflett
--- Dave Carrera [EMAIL PROTECTED] wrote: $addamysqluser = mysql_query(grant select,insert,drop,update,delete,create,index,alter on $_POST[f2] to [EMAIL PROTECTED] IDENTIFIED by $_POST[f3]); What is wrong with the above php based mysql_query? I'm not sure about the query itself, but it

[PHP] explode () question

2003-11-10 Thread Malcolm
Hello All, I'm having trouble with this; $rint1= rtrim($rintydata); echo $rint1; $rint2= explode(:, $rint1); The data starts like this (from and email, there are many) ; Time: November 9th 2003, 10:37AM - PST IP Address: xx.xx.xxx.xxx Browser Type: Opera/7.20 (Windows NT 5.1; U)

Re: [PHP] explode () question

2003-11-10 Thread Chris Hayes
$rint1= rtrim($rintydata); echo $rint1; $rint2= explode(:, $rint1); The data starts like this (from and email, there are many) ; Time: November 9th 2003, 10:37AM - PST IP Address: xx.xx.xxx.xxx Browser Type: Opera/7.20 (Windows NT 5.1; U) [en] Referer: The problem is that when I do

RE: [PHP] explode () question

2003-11-10 Thread Chris W. Parker
Malcolm mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 9:13 AM said: I can't figure out how to do an ereg that will replace just the colon in Time nor can I find a way to make explode ignore it. This may even be a completely wrong approach, any help would be appreciated. What

[PHP] form not working...

2003-11-10 Thread jas
For some reason my form to edit selected items is not working, I think I need a new set of eyes. Any help is appreciated... Jas // inc.php function db_retrieve() { require 'dbase.inc.php'; $tble = $_SESSION['table']; $show = @mysql_query(SELECT * FROM $tble LIMIT 0, 15,$db)or

[PHP] Pausing in PHP

2003-11-10 Thread Donpro
Hi, Is there a PHP function that would allow the script execution to pause 'N' seconds? This is analogous to the dBase inkey() function. Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Pausing in PHP

2003-11-10 Thread Dan Joseph
Hi, Is there a PHP function that would allow the script execution to pause 'N' seconds? This is analogous to the dBase inkey() function. sleep(20); 20 = seconds -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] explode () question

2003-11-10 Thread Wouter van Vliet
(after more and more discussion, this will be my first non-top post) $rint1= rtrim($rintydata); echo $rint1; $rint2= explode(:, $rint1); The data starts like this (from and email, there are many) ; Time: November 9th 2003, 10:37AM - PST IP Address: xx.xx.xxx.xxx Browser

RE: [PHP] Whats wrong with this query?

2003-11-10 Thread Wouter van Vliet
-Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: maandag 10 november 2003 17:45 To: [EMAIL PROTECTED] Subject: [PHP] Whats wrong with this query? $addamysqluser = mysql_query(grant select,insert,drop,update,delete,create,index,alter on $_POST[f2] to [EMAIL

Re: [PHP] Pausing in PHP

2003-11-10 Thread Chris Shiflett
--- Donpro [EMAIL PROTECTED] wrote: Is there a PHP function that would allow the script execution to pause 'N' seconds? This is analogous to the dBase inkey() function. When I search Google for PHP pause, the firt result mentions the sleep() function. Did you try finding the answer yourself

Re: [PHP] explode () question

2003-11-10 Thread Malcolm
Thanks to everyone who replied. I have taken the short route and changed the source data. I should have thought of that first I suppose. Now I have a few existing records to edit but from now on I'll be automagic. On Mon, 10 Nov 2003 19:00:52 +0100, Wouter Van Vliet [EMAIL PROTECTED]

[PHP] New module

2003-11-10 Thread Jonis Maurin Ceara
Hello I'm planing to build a module for debuging like i use in my programs... i can explain... i just wanna do debug some lines from my script, just to know any var or lineand i'll use this function: debug() function debug() will display line number and filenamethis is the problem! how

[PHP] How to handle the POST data

2003-11-10 Thread Koala Yeung
I wrote a discussion board in PHP recently The board consis of three php files: forum.php, readforum.php, writeforum.php In my design, - The writeforum.php file will generate a form. - Once user submit the form, it return a new thread in POST to the forum.php. - The forum.php will receive the data

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Great! Thanks Dan. I'll be making a php version of something similar. Martin Dan Joseph [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, sounds like a good idea. How does 'gateway' actually listen in on the website session? Is it simply invoked by the website with

RE: [PHP] How to handle the POST data

2003-11-10 Thread Chris W. Parker
Koala Yeung mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 11:05 AM said: When one submit a thread, read the index table of forum.php, and press Reflash, the browser will give a message like: The page you are browsing contains POSTDATA. If you Re-submit the information, the

Re: [PHP] How to handle the POST data

2003-11-10 Thread Chris Shiflett
--- Koala Yeung [EMAIL PROTECTED] wrote: The problem is: right after a submit process, POSTDATA still stored in the user's browser. When one submit a thread, read the index table of forum.php, and press Reflash, the browser will give a message like: The page you are browsing contains POSTDATA.

[PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
Hi... I'm looking at an existing application that uses a number of statements like: location = page2.php; I thought I'd seen it somewhere in the PHP doc, but can't find it now.. Can anyone point me to where it's written up? Thanks, Lee -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] location= Construct Doc

2003-11-10 Thread Jay Blanchard
[snip] I'm looking at an existing application that uses a number of statements like: location = page2.php; I thought I'd seen it somewhere in the PHP doc, but can't find it now.. Can anyone point me to where it's written up? [/snip] http://www.php.net/header -- PHP General Mailing

[PHP] Problems configuring --with-xpm-dir

2003-11-10 Thread John Nichel
Hi, I'm in the middle of setting up a new box to test Apache/PHP on the new Fedora 1 core, and I'm having some issues getting configure to run with --with-xpm-dir. I've installed the libXpm libraries (libXpm.3.4f-ELF) from ftp://metalab.unc.edu/pub/Linux/libs/X/!INDEX.html, but I get this

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
I see the Location: of the Header function there, but what I see in the code is just a location = and a page name... No header function... Is it the same thing? Lee Jay Blanchard wrote: [snip] I'm looking at an existing application that uses a number of statements like: location = page2.php;

Re: [PHP] location= Construct Doc

2003-11-10 Thread Chris Shiflett
--- Lee Stewart [EMAIL PROTECTED] wrote: I'm looking at an existing application that uses a number of statements like: location = page2.php; I thought I'd seen it somewhere in the PHP doc, but can't find it now.. Can anyone point me to where it's written up? The HTTP header itself is

RE: [PHP] location= Construct Doc

2003-11-10 Thread Chris W. Parker
Lee Stewart mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 12:18 PM said: I see the Location: of the Header function there, but what I see in the code is just a location = and a page name... No header function... Is it the same thing? $location = page.php; is nothing more than

Re: [PHP] New module

2003-11-10 Thread Marek Kilimajer
Jonis Maurin Ceara wrote: Hello I'm planing to build a module for debuging like i use in my programs... i can explain... i just wanna do debug some lines from my script, just to know any var or lineand i'll use this function: debug() function debug() will display line number and

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
It's not $location = xxx, just location = page.php; And it seems to work as a redirect... But not part of the header fuction, and not just setting a variable... Lee Chris W. Parker wrote: Lee Stewart mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 12:18 PM said: I see the Location:

Re: [PHP] $_SESSION[''] variable not get passed

2003-11-10 Thread Rob Burris
S.P.Vimala wrote: Now the session_id get passwd across forms but the session variable does not get passwed. Any guess what is the problem. -vimala/. You need to call session_start() on frm2.php to resume the session http://us2.php.net/manual/en/function.session-start.php --

Re: [PHP] Trouble sending an image's contents as output using header Content-Type...

2003-11-10 Thread Manuel Vázquez Acosta
Type http://server.com/getthumbnail.php?fileid=12230983 in the location bar and see what happens. I have already done it; it didn't work. Manu. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] location= Construct Doc

2003-11-10 Thread Chris Shiflett
--- Lee Stewart [EMAIL PROTECTED] wrote: It's not $location = xxx, just location = page.php; So the dollar sign is missing? Can you show us all of the code in question? (Or did I miss it?) And it seems to work as a redirect... But not part of the header fuction, and not just setting a

RE: [PHP] location= Construct Doc

2003-11-10 Thread Chris W. Parker
Lee Stewart mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 12:42 PM said: It's not $location = xxx, just location = page.php; And it seems to work as a redirect... But not part of the header fuction, and not just setting a variable... Hmm.. Never seen that before and the

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
Here's a *working* section of code... Note the location = browse.php; on line 23 ? $errmsg = ''; if( isset($username) ) { require_once('Connections/mySql.php'); mysql_select_db($database_mySql, $mySql); $rs = mysql_query(select * from employee where initials = ' .

[PHP] php Losing apache environment vars

2003-11-10 Thread Keith Greene
Greetings list, I have run into a problem that has me at my wits end. We run an affiliate program, and have forum software (phpBB) wrapped in our menu system. There are 2 sides to the site, Affiliates and Admin, and I have 2 installs of the board using the same database. This all works fine.

[PHP] php.ini file contents

2003-11-10 Thread Teren
Hi, I was browsing through the php.ini file to see if maybe functions = that execute shell commands are disabled, but I didn't see anything, can = somebody confirm this just to make sure i didn't skip over it? I am = still trying to execute shell commands and I have been unsuccessful, I = know the

Re: [PHP] location= Construct Doc

2003-11-10 Thread Chris Shiflett
--- Lee Stewart [EMAIL PROTECTED] wrote: Here's a *working* section of code... Note the location = browse.php; on line 23 How does that not generate a parse error? I must be missing something. It seems to me that either a dollar sign is missing, or the line is intended to define a

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
It's version 4.0.3 Lee Chris Shiflett wrote: --- Lee Stewart [EMAIL PROTECTED] wrote: Here's a *working* section of code... Note the location = browse.php; on line 23 How does that not generate a parse error? I must be missing something. It seems to me that either a dollar sign is

RE: [PHP] php.ini file contents

2003-11-10 Thread Jay Blanchard
[snip] Hi, I was browsing through the php.ini file to see if maybe functions = that execute shell commands are disabled, but I didn't see anything, can = somebody confirm this just to make sure i didn't skip over it? I am = still trying to execute shell commands and I have been unsuccessful, I =

[PHP] mysql_list_fields() bug?

2003-11-10 Thread Matt Babineau
Hey All - just wanted to check in with anyone who has used this function. I currectly have a function that I created, and inside it I have this function. Outside of my custom function I have a mysql_pconnect() statement and a mysql_select_db() statement. I also have another custom function that

Re: [PHP] php.ini file contents

2003-11-10 Thread Marek Kilimajer
Teren wrote: Hi, I was browsing through the php.ini file to see if maybe functions = that execute shell commands are disabled, but I didn't see anything, can = somebody confirm this just to make sure i didn't skip over it? I am = still trying to execute shell commands and I have been unsuccessful,

Re: [PHP] Problems configuring --with-xpm-dir [SOLVED]

2003-11-10 Thread John Nichel
John Nichel wrote: Hi, I'm in the middle of setting up a new box to test Apache/PHP on the new Fedora 1 core, and I'm having some issues getting configure to run with --with-xpm-dir. I've installed the libXpm libraries (libXpm.3.4f-ELF) from

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Jay Blanchard
[snip] Outside of my custom function I have a mysql_pconnect() statement and a mysql_select_db() statement. So the end result being if I take the connect statement out of the function one(), it fails, but function two() still works! Am I doing something wrong here? [/snip] It's just a small

Re: [PHP] php Losing apache environment vars

2003-11-10 Thread Keith Greene
After restarting apache, the error is gone. Still not sure what was causing it. The site was running fine to begin with, and the environment vars have been in use for over a year throughout the site. Keith At 12:56 PM 11/10/2003, Keith Greene wrote: Greetings list, I have run into a problem

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Matt Babineau
On Mon, 2003-11-10 at 16:43, Jay Blanchard wrote: [snip] Outside of my custom function I have a mysql_pconnect() statement and a mysql_select_db() statement. So the end result being if I take the connect statement out of the function one(), it fails, but function two() still works! Am I

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Jay Blanchard
[snip] Ok, I added the resource identifier, and got an error. I think what is happening now is the resource identifier $db is outside the function one(), so it cannot be referenced from the mysql_list_fields() fuction which is inside. Does that make sense? Is the resource indentifier a GLOBAL

Re: [PHP] Trouble sending an image's contents as output using header Content-Type...

2003-11-10 Thread Marek Kilimajer
Manuel Vázquez Acosta wrote: Type http://server.com/getthumbnail.php?fileid=12230983 in the location bar and see what happens. I have already done it; it didn't work. Manu. Did you see any error? If not, do you have display_errors set to on? -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Derek Ford
as said, use the global construct. This is a scope problem, read the manual about variable scope. php.net/variables.scope PS: sorry Jay, new mail frontend :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trouble sending an image's contents as output using header Content-Type...

2003-11-10 Thread Manuel Vázquez Acosta
Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Manuel Vázquez Acosta wrote: Type http://server.com/getthumbnail.php?fileid=12230983 in the location bar and see what happens. I have already done it; it didn't work. Manu. Did you see any error? If not, do

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Matt Babineau
Ok, this ended up working well. I'm still wondering why in my example function two() works, without needing to provide the resource identifier to mysql_query(), how can mysql_query() pick up the resource identifier automatically while mysql_list_fields does not? Thx- Matt On Mon, 2003-11-10 at

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Ron Rudman
There are already plenty of echo statements in foo! They DO show up when I run php foo. It's when I try to use system(php foo) that I don't get anything. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I have a php cli that creates a file. It works fine when I

Re: [PHP] \n and br

2003-11-10 Thread Eugene Lee
On Mon, Nov 10, 2003 at 06:57:54AM -0800, Chris Shiflett wrote: : : --- PHPLover [EMAIL PROTECTED] wrote: : : is \n same as br : : This is not true. : : I know that \n creates a break in source and not in display. : Is it possible to make \n does the same function as br : : No, but you can

RE: [PHP] \n and br

2003-11-10 Thread Chris W. Parker
Eugene Lee mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 3:58 PM said: Warning: nl2br() is not safe because it emits br / tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). My original response (in my mind) was

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Chris Shiflett
--- Ron Rudman [EMAIL PROTECTED] wrote: There are already plenty of echo statements in foo! They DO show up when I run php foo. It's when I try to use system(php foo) that I don't get anything. I missed the original question, but why are you trying to use the PHP CLI from within PHP itself?

Re: [PHP] \n and br

2003-11-10 Thread Chris Shiflett
--- Eugene Lee [EMAIL PROTECTED] wrote: Warning: nl2br() is not safe because it emits br / tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a br / tag? Chris = My

Re: [PHP] \n and br

2003-11-10 Thread John Nichel
Chris Shiflett wrote: --- Eugene Lee [EMAIL PROTECTED] wrote: Warning: nl2br() is not safe because it emits br / tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a br /

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Ron Rudman
I have a report that I would like to run as a cron job, hence the need for a standalone CLI version that just reads the database and has no other context. But...I would also like to run this report on demand from within a web application. It seemed obvious that all I'd have to do was execute my

Re: [PHP] \n and br

2003-11-10 Thread Rolf Brusletto
Eugene Lee wrote: On Mon, Nov 10, 2003 at 06:57:54AM -0800, Chris Shiflett wrote: : : --- PHPLover [EMAIL PROTECTED] wrote: : : is \n same as br : : This is not true. : : I know that \n creates a break in source and not in display. : Is it possible to make \n does the same function as br :

[PHP] Random Character Generator

2003-11-10 Thread Jason Williard
I would like to have a script that randomly generates alpha-numeric characters. Does anyone know of any scripts that can do this or perhaps the basic code to generate random characters? Thank You, Jason Williard

[PHP] Delete after 30 Days

2003-11-10 Thread Dimitri Marshall
Hey, Here's my situation. I'm making a message board and I want posts to be deleted after 30 days. Does anyone know of a script, or how, I can delete an entry on my database after a certain amount of time (ie. 30 days) automatically. Dimitri Marshall -- PHP General Mailing List

  1   2   >