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

2005-10-03 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 wiki

Re: [PHP] chown function

2005-10-03 Thread Keith Spiller
Hi Jasper, When using my Php script, I don't see any error messages. I have logged in using SSH, but the directories created are owned by 48 and not my ftp user and so I have to switch to a super user to make any changes. Also, even though I use: mkdir("$endpath", 0777); The resulting directori

Re: [PHP] array_shift not working?

2005-10-03 Thread Rory Browne
[snip] > How can i remove the 'count' from the array? www.php.net/unset > Regards, > Frank > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] domit and XML

2005-10-03 Thread Erik Barba
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

Re: [PHP] PHP and Active Directory

2005-10-03 Thread Rory Browne
Check out the user contributed notes on the manual page - www.php.net/ldap A few of them refer to Active Directory. If you installed PHP from source, then you need to install OpenLDAP or some other ldap package to get the client libraries. If you installed PHP from packages, then you need to ins

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

2005-10-03 Thread Terence
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 wiki page simultaneous

Re: [PHP] chown function

2005-10-03 Thread Jasper Bryant-Greene
Keith Spiller wrote: I'm using: chown("$endpath", "admin"); to try to change the owner of directories after using mkdir() to create them. It continues to fail on my remote Fedora server. With what error message? Have you tried logging in with SSH or similar and trying the same command? Mo

[PHP] chown function

2005-10-03 Thread Keith Spiller
Hello, I'm using: chown("$endpath", "admin"); to try to change the owner of directories after using mkdir() to create them. It continues to fail on my remote Fedora server. I know the path is correct because mkdir() works perfectly. Apache sets the owner as 48 when the directory is created. I

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

2005-10-03 Thread Philip Hallstrom
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 wiki page simultaneously). I'm wondering if anyone else on the lis

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

2005-10-03 Thread Jasper Bryant-Greene
Murray @ PlanetThoughtful wrote: 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 wiki page simultaneously). I'm w

[PHP] Handling competing edits in a wiki engine?

2005-10-03 Thread Murray @ PlanetThoughtful
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 wiki page simultaneously). I'm wondering if anyone else o

Re: [PHP] Can I call .html file as a form action instead of .php?

2005-10-03 Thread Jasper Bryant-Greene
Chris Shiflett wrote: MI SOOK LEE wrote: Some guy told me that I can call the .html file as a form action instead of .php file. You can, but unless you configure your web server to consider .html files to be PHP scripts, it doesn't make much sense. HTML documents are static, so you wouldn'

Re: [PHP] Can I call .html file as a form action instead of .php?

2005-10-03 Thread Chris Shiflett
MI SOOK LEE wrote: Some guy told me that I can call the .html file as a form action instead of .php file. You can, but unless you configure your web server to consider .html files to be PHP scripts, it doesn't make much sense. HTML documents are static, so you wouldn't be able to do anything

Re: [PHP] Can I call .html file as a form action instead of .php?

2005-10-03 Thread Stephen Johnson
This should work fine -- more then likely you do not have your apache (or whatever web server you use) configured to allow .html files to be parsed as php files. You will need to update your web server configuration. On 10/3/05 6:31 AM, "MI SOOK LEE" <[EMAIL PROTECTED]> wrote: > Hello, > Some

[PHP] Can I call .html file as a form action instead of .php?

2005-10-03 Thread MI SOOK LEE
Hello, Some guy told me that I can call the .html file as a form action instead of ..php file. So he said I could do something like this, echo "Edit"; instead echo "Edit"; editStaff.html and editStaff.php have the same content, only the file name is different. But if I do the former way(call

RE: [PHP] creating a shopping cart.

2005-10-03 Thread Chris W. Parker
Jay Blanchard on Monday, October 03, 2005 5:30 AM said: > A basic flowchart could have helped you to answer your question and > broken down the processes into their componenet parts. Heck, you > don't even need fancy flowcharting software...just write down the > step

Re: [PHP] session_name("CCLTrolley")

2005-10-03 Thread John Taylor-Johnston
>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 = mysql_fetch_object($glquery)) { while (list($_SESSION['TrolleyContents'], $

Re: [PHP] session_name("CCLTrolley")

2005-10-03 Thread John Taylor-Johnston
In the search results, I use something longwinded: You are talking about doing this, below. It looks a little clunky, doesn't it? foreach ($_SESSION['TrolleyContents'] as $value) { $sql = "select * where RNum= $value"; $news = mysql_query($sql1) or die ... while ($mydata = mysql_fetch_ob

Re: [PHP] session_name("CCLTrolley")

2005-10-03 Thread Robert Cummings
On Mon, 2005-10-03 at 16:38, John Taylor-Johnston wrote: > Robert Cummings wrote: > >I took a look at your link and it appears to be working fine, though you > >haven't yet wired up the viewcart.php > > When I create viewcart.php, what is the best way to extract and display > the contents of $_

Re: [PHP] session_name("CCLTrolley")

2005-10-03 Thread John Taylor-Johnston
Robert Cummings wrote: >I took a look at your link and it appears to be working fine, though you >haven't yet wired up the viewcart.php When I create viewcart.php, what is the best way to extract and display the contents of $_SESSION['TrolleyContents'] ? Do I use my $sql value? or in my while

Re: [PHP] Making MYSQL's RAND() more random

2005-10-03 Thread Greg Donald
On 10/3/05, Graham Anderson <[EMAIL PROTECTED]> wrote: > what would be the best way to make MYSQL's RAND() more random ? http://dev.mysql.com/doc/mysql/en/mathematical-functions.html: RAND() is not meant to be a perfect random generator, but instead a fast way to generate ad hoc random numbers t

[PHP] Making MYSQL's RAND() more random

2005-10-03 Thread Graham Anderson
what would be the best way to make MYSQL's RAND() more random ? my random result set always seems pretty predictable. The first record in the result set always seems to be the same 4 tracks :( Would adding some kind of random seed like RAND($randomNumberGenerator) work ? If so, how do you imp

Re: [PHP] session_name("CCLTrolley")

2005-10-03 Thread Robert Cummings
On Mon, 2005-10-03 at 14:51, John Taylor-Johnston wrote: > Is that over kill? No matter how I slam it, still referring to my > Frankensteinian merge, "unset" does the job. > http://testesp.flsh.usherbrooke.ca/db/trolley.php > But then again, I will not require a quanity of items. The visitor will

Re: [PHP] session_name("CCLTrolley")

2005-10-03 Thread John Taylor-Johnston
Is that over kill? No matter how I slam it, still referring to my Frankensteinian merge, "unset" does the job. http://testesp.flsh.usherbrooke.ca/db/trolley.php But then again, I will not require a quanity of items. The visitor will only want one copy of a bibliographic entry :-\ - I hope?! You

Re: [PHP] session_name("CCLTrolley")

2005-10-03 Thread Robert Cummings
On Mon, 2005-10-03 at 14:11, John Taylor-Johnston wrote: > Excellent. Thanks. I think I follow what you have done. But to > clarify, and learn, what are you doing with -= ? > $trolley[$item] -= $quantity; > Likewise, i had not followed what you were doing with the lines I > commented out. They did

Re: [PHP] session_name("CCLTrolley")

2005-10-03 Thread John Taylor-Johnston
Excellent. Thanks. I think I follow what you have done. But to clarify, and learn, what are you doing with -= ? $trolley[$item] -= $quantity; Likewise, i had not followed what you were doing with the lines I commented out. They did not seem to work, and I succeeded in doing what I wanted withou

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
Sonia wrote: Hi All I've been working on finishing a project SGML2IMAGE and I am sort of having trouble with resizing of images. I am trying to just use the GD library so when I distro the package it will not need any other things installed to be used. Now I am using... imagecreatetruecolor ()

Re: [PHP] PHP & SOAP for production

2005-10-03 Thread Ben
Reuben D. Budiardja said the following on 10/01/05 14:41: > Hello, > On Saturday 01 October 2005 17:13, jonathan wrote: > >>you could try the native SOAP extension in php5. > > I've looked at the php.net and saw "(no version information, might be only in > CVS)" in the docs. So is this already

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
Sonia wrote: Hi All I've been working on finishing a project SGML2IMAGE and I am sort of having trouble with resizing of images. I am trying to just use the GD library so when I distro the package it will not need any other things installed to be used. Now I am using... imagecreatetruecolor ()

Re: [PHP] Upper case problem

2005-10-03 Thread John Nichel
Jay Blanchard wrote: [snip] I am having problems with users who upload text that only contains upper case letters. For example "SEARCHING FOR". Is there a way to detect this via PHP?` I would like to have the script return him to the form and inform him that this is not allowed. So basicly I

Re: [PHP] passing a variable with php_self

2005-10-03 Thread Jeffrey Sambells
oops, that should be htmlentities, not htmlspecialchars. - Jeff On 3-Oct-05, at 11:51 AM, Jeffrey Sambells wrote: $PHP_SELF should not be used because it will not work without register_globals being enabled. Rather, you should use $_SERVER ['PHP_SELF'] for it as above however... Don't for

Re: [PHP] passing a variable with php_self

2005-10-03 Thread Jeffrey Sambells
can someone show me the right way to do the following... I want to pass a variable to a self submitting link. Thanks, $PHP_SELF should not be used because it will not work without register_globals being enabled. Rather, you should use $_SERVER ['PHP_SELF'] for it as above however

Re: [PHP] decrypting query string back into $_GET['var'] [resend]

2005-10-03 Thread Graham Anderson
Is this the safest way to send GET variables ? Guess I am trying to improve my code :) //-- // 'Sending' PHP script: require_once("/home/includes/encryption.inc"); $str =encrypt(urlencode("movie=mymovie.mov&mask=mask.gif&drag=drag.gif")); $finalURLSt

Re: [PHP] Upper case problem

2005-10-03 Thread Georgi Ivanov
On Monday 03 October 2005 16:28, Merlin wrote: > Hi there, > > I am having problems with users who upload text that only contains upper > case letters. For example "SEARCHING FOR". Is there a way to detect this > via PHP?` I would like to have the script return him to the form and inform > him th

Re: [PHP] session_name("CCLTrolley")

2005-10-03 Thread Robert Cummings
On Sun, 2005-10-02 at 01:01, Robert Cummings wrote: > > If you go with an array system might I suggest the following change to > what I wrote: I'm resending a better way to do the simple trolley since you seemed to have created a Frankensteinian merge of the two examples I sent previously. This ve

[PHP] session save path

2005-10-03 Thread jonathan
I'm looking for where apache / php will be saving the user session files. when I do a phpinfo(), it tells me that session.save_path will be temp but when I look at the files in there, there are only a couple of files and they say nwIN; Is there any way to directly access the session files i

RE: [PHP] Upper case problem

2005-10-03 Thread Jay Blanchard
[snip] I am having problems with users who upload text that only contains upper case letters. For example "SEARCHING FOR". Is there a way to detect this via PHP?` I would like to have the script return him to the form and inform him that this is not allowed. So basicly I need a sort of regex whi

[PHP] Upper case problem

2005-10-03 Thread Merlin
Hi there, I am having problems with users who upload text that only contains upper case letters. For example "SEARCHING FOR". Is there a way to detect this via PHP?` I would like to have the script return him to the form and inform him that this is not allowed. So basicly I need a sort of reg

Re: [PHP] Array - partical path to the array's path (part 2)

2005-10-03 Thread Scott Fletcher
Got it figured out by now. I noticed one small bug but I'll fix it monday morning, so i'm going to post what I did to make this work.. I'm going to donate this code to the guy at http://www.devdump.com/phpxml.php and hopefully he'll put some of this to a good use as more and more people are now u

RE: [PHP] creating a shopping cart.

2005-10-03 Thread Jay Blanchard
[snip] What's the best approach to create a shopping cart.? [/snip] I see that you have received some answers already but I wanted to point out something very obviouslearn how to plan a software application. I know that I am old school, but I see far too many developers today winging it. A lo

[PHP] Re: PHP and Active Directory

2005-10-03 Thread Mark Rees
How do I connect a php script running on linux with Active Directory on a windows machine? I would like to have my php script autmotatically read email addresses from the AD server. Can this be done? I've found a bunch of ldap functions for php but they seem to require ldap to be installed on linux

Re: [PHP] How to automate php with crontab?

2005-10-03 Thread Petar Nedyalkov
On Monday 03 October 2005 11:20, Rasim XEN wrote: > hi, > > Anybody know how to automate php with crontab. I want to generate in every > 5 minute one php file. crontab -e :-) Check: http://www.phpfreaks.com/tutorials/28/0.php and http://www.tech-geeks.org/contrib/mdrone/cron&crontab-howto.htm >

Re: [PHP] convert array to HTML GET request

2005-10-03 Thread hope
on 2nd page you can use global $HTTP_POST_VARS; print_r($HTTP_POST_VARS); /// u can use $HTTP_GET_VARS for GET method regards hope adriano ghezzi wrote: if i understand well you need to get an array from html post if you use the same name for your html fields you automatically have a

[PHP] How to automate php with crontab?

2005-10-03 Thread Rasim �EN
hi, Anybody know how to automate php with crontab. I want to generate in every 5 minute one php file. thanks alot rasim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php