php-general Digest 4 Oct 2005 17:30:30 -0000 Issue 3719

2005-10-04 Thread php-general-digest-help
php-general Digest 4 Oct 2005 17:30:30 - Issue 3719 Topics (messages 223590 through 223614): Re: chown function 223590 by: Jasper Bryant-Greene 223595 by: Keith Spiller Re: Handling competing edits in a wiki engine? 223591 by: Terence 223596 by: Murray .

Re: [PHP] Handling competing edits in a wiki engine?

2005-10-04 Thread Murray @ PlanetThoughtful
Terence wrote: Murray @ PlanetThoughtful wrote: Hi All, I've recently been working on building my own wiki engine for my blog site. While the majority of the engine is complete, a remaining concern I have is how to handle competing edits (ie when two or more people are editing the same

[PHP] Re: hello

2005-10-04 Thread andrei
Your document is attached. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Postgres auto-commit

2005-10-04 Thread Skippy
How can I disable auto-commit for a Postgres connection? Apparently server-side autocommit was thrown out in Postgres 8.0, and clients have to issue their own setting (which is sensible). The default is on (which I don't want). psql is apparently able to set or unset the AUTOCOMMIT option, but I

[PHP] Missing pear executable

2005-10-04 Thread Reuben D. Budiardja
Hello, I've been installing php-4.4.0 and php-5.0.5, and it both cases I can't find the pear executable in the install directory. For instance: # ls /usr/local/php-5.0.5/bin/ php php-config phpize IIRC, pear executable (ie. the package manager) used to be bundled with PHP. In fact, I think a

Re: [PHP] Postgres auto-commit

2005-10-04 Thread Skippy
Quoting Skippy [EMAIL PROTECTED]: How can I disable auto-commit for a Postgres connection? Apparently server-side autocommit was thrown out in Postgres 8.0, and clients have to issue their own setting (which is sensible). Apparently this will work (or at least it will be accepted by

Re: [PHP] domit and XML

2005-10-04 Thread Stephen Leaf
On Tuesday 04 October 2005 12:42 am, Erik Barba wrote: hi im new in the list i dont know where to write the email so i did it here, i am having a problem I have a xml file and im parsing with domit 1.0 but im from mexico, and we use é í ó ú á ñ the xml acept it but when the php show the

Re: [PHP] Missing pear executable

2005-10-04 Thread Reuben Budiardja
[EMAIL PROTECTED] wrote: Admittedly I've only dealt with PEAR a little bit, but the two times I installed it, it didn't seem to involve any 'executable'. PEAR appears to be totally PHP script based. I dont mean to give an RTFM type response here, but if you follow the instructions at the

Re: [PHP] Missing pear executable

2005-10-04 Thread tg-php
I believe you're right, they used to include it with PHP. I believe the PEAR docs even say something about it being included. Maybe they don't anymore so you have to go to the PEAR site to get the latest installer. That way they don't get people using an older installer/package manager that

Re: [PHP] buffer problem having a mind of its own

2005-10-04 Thread Jochem Maas
could you imagine that somebody who has never seen your code, has no idea how it is put together or even what platform it requires (php4/php5?) might not have clue what your on about? matt VanDeWalle wrote: hello again I was writing and rewriting my user function for my chat server trying to

[PHP] Re: Server Time Out

2005-10-04 Thread Dan Baker
Kevin Cloutier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm new to this newsgroup and I'm psyched I found it. But, my newsreader (Thunderbird), keeps returning a Connection to server news.php... has timed out when ever I try to dload or refresh the messages. Anyone

Re: [PHP] domit and XML

2005-10-04 Thread Torgny Bjers
Erik Barba wrote: hi im new in the list i dont know where to write the email so i did it here, i am having a problem I have a xml file and im parsing with domit 1.0 but im from mexico, and we use é í ó ú á ñ the xml acept it but when the php show the code in html, i cant see the letters

[PHP] PHP5 Webhost

2005-10-04 Thread Michael Crute
Hi All, I am in the process of looking for a webhost for the company I work for. I must have PHP5 support as the CMS I am using only supports PHP5. Does anyone know of any good quality hosts that also support PHP5 and MySQL for less than $40/mo? Dedicated hosting is right out as we obviously

Re: [PHP] PHP5 Webhost

2005-10-04 Thread Greg Donald
On 10/4/05, Michael Crute [EMAIL PROTECTED] wrote: I am in the process of looking for a webhost for the company I work for. I must have PHP5 support as the CMS I am using only supports PHP5. Does anyone know of any good quality hosts that also support PHP5 and MySQL for less than $40/mo?

Re: [PHP] PHP5 Webhost

2005-10-04 Thread Torgny Bjers
Michael Crute wrote: Hi All, I am in the process of looking for a webhost for the company I work for. I must have PHP5 support as the CMS I am using only supports PHP5. Does anyone know of any good quality hosts that also support PHP5 and MySQL for less than $40/mo? Dedicated hosting is right

[PHP] PROGRESS SQL_CUR_USE_ODBC

2005-10-04 Thread cybermalandro cybermalandro
I am connecting to a PROGRESS DB through the MERANT ODBC driver, When I have the 4th parameter SQL_CUR_USE_ODBC as shown, my queries return nothing but if I have the 4th parameter as lower case it returns my query results but with a PHP error complainning *Notice*: Use of undefined constant

[PHP] displaying image from blog

2005-10-04 Thread blackwater dev
I am querying a MSSQL db where an jpg image is stored as a blog. I have this code: html head meta http-equiv=Content-Type content=image/jpg /head body ? //Do the query include_once(../includes.list.php); $ms_sql= new ms_db(); $my_sql=new Database(); $query=select photo from cars where

[PHP] Re: Server Time Out

2005-10-04 Thread cc
did u set up a firewall? maybe you want change the rule to let packets from port 119 go through. or try add a new news account. Good luck! On 10/5/05, Dan Baker [EMAIL PROTECTED] wrote: Kevin Cloutier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm new to this newsgroup

[PHP] Re: displaying image from blog

2005-10-04 Thread blackwater dev
Sorry, meant BLOB, not blog. On 10/4/05, blackwater dev [EMAIL PROTECTED] wrote: I am querying a MSSQL db where an jpg image is stored as a blog. I have this code: html head meta http-equiv=Content-Type content=image/jpg /head body ? //Do the query include_once(../includes.list.php);

Re: [PHP] displaying image from blog

2005-10-04 Thread blackwater dev
It doesn't appear that gd is installed by my host as that function throws undefined function errors and I don't see gd when I do phpinfo(); On 10/4/05, Michael Crute [EMAIL PROTECTED] wrote: On 10/4/05, blackwater dev [EMAIL PROTECTED] wrote: I am querying a MSSQL db where an jpg image is

RE: [PHP] displaying image from blog

2005-10-04 Thread Jay Blanchard
[snip] On 10/4/05, blackwater dev [EMAIL PROTECTED] wrote: I am querying a MSSQL db where an jpg image is stored as a blog. But when viewed I just get all the junk code: !1AQaq2B'¡±Á #3RðbrÑ $4á%ñ'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š'•–—˜™š¢£¤¥¦

Re: [PHP] PROGRESS SQL_CUR_USE_ODBC

2005-10-04 Thread Kristen G. Thorson
cybermalandro cybermalandro wrote: I am connecting to a PROGRESS DB through the MERANT ODBC driver, When I have the 4th parameter SQL_CUR_USE_ODBC as shown, my queries return nothing but if I have the 4th parameter as lower case it returns my query results but with a PHP error complainning

[PHP] Re: displaying image from blog

2005-10-04 Thread cc
you cant just mix html tags and image data and expect them to be on the same page to get both html and images displayed. if you want image, use a IMG tag, whose SRC attribute maybe a php file, and this php file will output _only_ image data, i.e. echo $obj-photo; nothing more, except if you

Re: [PHP] Re: displaying image from blog

2005-10-04 Thread cron
You have to echo a single image and only the image(no html tags) as binary for this to work. One must also set the header from the page to the correct mime type for the image work. ex: Page: displayImg.php header('Content-Type: image/jpeg'); // set correct header, more info

Re: [PHP] session_name(CCLTrolley)

2005-10-04 Thread Robert Cummings
On Mon, 2005-10-03 at 18:08, John Taylor-Johnston wrote: Use foreach to traverse the array and display each trolly entry nicely This might be cleaner? I'm not sure if I'm using while and list right, but somehting like that? $glquery = mysql_query($sql); while ($mydata =

Re: [PHP] PROGRESS SQL_CUR_USE_ODBC

2005-10-04 Thread Kristen G. Thorson
cybermalandro cybermalandro wrote: Thanks for your prompt response! Are you using the pear DB class requiring odbc? I am not very familiar with this class and pear. I was trying to do it the old way. Perhaps you can give me some more examples? I really appreciate your help. Thanks On

RE: [PHP] PROGRESS SQL_CUR_USE_ODBC

2005-10-04 Thread Programmer
I don't know if this will help you. I use an openlink ODBC driver to connect to Progress via PHP like so: $dbconn = odbc_connect(MyDB_ODBC,$username,$password,SQL_CUR_USE_ODBC); $strQry = SELECT * FROM mytable WHERE mytable.field = .$somevar; $rsTable = odbc_do($dbconn, $strQry);

[PHP] Non-Javascript PHP Onsubmit function?

2005-10-04 Thread zzapper
Hi, I'd like to have a non-Javascript based general purpose Are you quite Sure? PHP form submitter, conventionally done using the Javascript Onsubmit Event. One way would be to store all the Form Variables in hidden fields generated by a foreach $_POST but anyone have anything simpler? --

[PHP] PHP / LAMP Training

2005-10-04 Thread Peter Jackson
Has anyone been to good PHP and/or LAMP training? I was looking around and saw on a blog where they really liked the security aspects of this one: http://www.sans.org/ns2005/description.php?tid=249 Has anyone been to classes by sans.org? Thanks, Peter __ Free 3000MB

Re: [PHP] Non-Javascript PHP Onsubmit function?

2005-10-04 Thread tg-php
Nope.. you're pretty much stuck using Javascript or processing it all on the back end with PHP as you described. You could store the data in a database or a $_SESSION variable but without using something client-side, you're going to have to juggle it all with PHP. -TG = = = Original

[PHP] possibly buffer problem, including a bit of code this time

2005-10-04 Thread matt VanDeWalle
oops, sorry about the lack of any code with my last problem message. I am still having the same buffer problem where after asking for a password, it doesn't stop and wait, just falling through to the next prompt. here is basically what the new_user function looks like. I am using php 4.3.10

[PHP] PHP5 and soap module crash

2005-10-04 Thread Anish Mistry
I'm running FreeBSD 5.4-STABLE with PHP 5.05 (I can also reproduce this with the same version on 7-CURRENT) and something in the soap module is causing php/apache to sig11. I'm using the soap module to connect to MapPoint to retrieve location coordinates. This problem doesn't happen

[PHP] Re: Non-Javascript PHP Onsubmit function?

2005-10-04 Thread zzapper
On Tue, 4 Oct 2005 15:50:06 -0400, wrote: Nope.. you're pretty much stuck using Javascript or processing it all on the back end with PHP as you described. You could store the data in a database or a $_SESSION variable but without using something client-side, you're going to have to juggle it

Re: [PHP] Change the order in which Objects are unloaded

2005-10-04 Thread Niels Ganser
Thanks for your reply, Jasper. auto_append_file has been my first alternative approach too and so far it seems to be the best option available. But the show-stopper to me is that if you exit() out of your script, the file won't be appended. I did write some sort of wrapper function to first

Re: [PHP] Handling competing edits in a wiki engine?

2005-10-04 Thread Silvio Porcellana
Murray @ PlanetThoughtful wrote: Out of curiosity, does anyone know if it's possible to tell whether an individual session is still alive from PHP? I don't mean from within code being run for a particular user, but in code that, for example, might be executed by a cron job, which would

Re: [PHP] Handling competing edits in a wiki engine?

2005-10-04 Thread Anas Mughal
I would like to see it in action, please. Thanks. -- Anas On 10/4/05, Silvio Porcellana [EMAIL PROTECTED] wrote: Murray @ PlanetThoughtful wrote: Out of curiosity, does anyone know if it's possible to tell whether an individual session is still alive from PHP? I don't mean from within

[PHP] Warning: Cannot send session cookie

2005-10-04 Thread John Taylor-Johnston
Any idea why I'm getting this error, and only on this page? I have the same header on every other page? http://testesp.flsh.usherb.ca/thingstodo.html The page contains a \n before I start my ?php. Is this doing it? ?php session_name( 'CCLTrolley' ); session_start(); // Initialize the trolley.

Re: [PHP] Warning: Cannot send session cookie

2005-10-04 Thread Jasper Bryant-Greene
John Taylor-Johnston wrote: Any idea why I'm getting this error, and only on this page? I have the same header on every other page? http://testesp.flsh.usherb.ca/thingstodo.html The page contains a \n before I start my ?php. Is this doing it? Most likely, yes. Why didn't you try removing it

Re: [PHP] Warning: Cannot send session cookie

2005-10-04 Thread John Taylor-Johnston
Michael Crute wrote: The page contains a \n before I start my ?php. Is this doing it? That \n is it. You can't send ANYTHING to the browser before you send the headers and cookies are part of the headers. Take out the \n and all should be well. Thanks. Dreamweaver screwed me over ;)

Re: [PHP] session_name(CCLTrolley)

2005-10-04 Thread John Taylor-Johnston
Robert Cummings wrote: On Mon, 2005-10-03 at 18:08, John Taylor-Johnston wrote: Use foreach to traverse the array and display each trolly entry nicely If list() works for you it's fine. I don't really use it so not entirely sure of it's functionality with respect to looping. I

Re: [PHP] session_name(CCLTrolley)

2005-10-04 Thread Jasper Bryant-Greene
John Taylor-Johnston wrote: I ended up going with this. Wasn't sure how to use list anyhow. Look good? $sql = 'SELECT * FROM '.$table.' ORDER BY RNum;'; echo !--.$sql.--; $news = mysql_query($sql); while ($mydata = mysql_fetch_object($news)) { foreach ($_SESSION['TrolleyContents'] as

Re: [PHP] Warning: Cannot send session cookie

2005-10-04 Thread Stephen Leaf
On Tuesday 04 October 2005 08:15 pm, John Taylor-Johnston wrote: Any idea why I'm getting this error, and only on this page? I have the same header on every other page? http://testesp.flsh.usherb.ca/thingstodo.html The page contains a \n before I start my ?php. Is this doing it? yup ?php

[PHP] query regerding copying files using php

2005-10-04 Thread Suresh Pandian
hello friends, i have a query in writng the content of one file to another. i attempted it. it only writes the html codings.it could not write the php scripts inside the file. i use the following code to accomplish my problem...

[PHP] query regerding copying files using php

2005-10-04 Thread Suresh Pandian
hello friends, i have a query in writng the content of one file to another. i attempted it. it only writes the html codings.it could not write the php scripts inside the file. i use the following code to accomplish my problem...