RE: [PHP] html editor written in PHP

2005-05-19 Thread Murray @ PlanetThoughtful
Has anyone seen an example of a HTML editor written in PHP (no JS)? You know the ones - for adding HTML tags to a text field, etc. Thanks! You've already received a number of responses indicating that it's not possible to have a pure PHP browser enabled HTML editor, mainly due to the fact

Re: [PHP] Class function calling another function in class

2005-05-19 Thread Chris
You keep on appending $this-str to itself. Comments are inline. Charles Kline wrote: Hi all, Not sure if I am doing this right and I can't figure it out, was hoping someone here can help. I have an organization table in mySQL. Pretty standard. My first function getDepts() is working as I

Re: [PHP] multiple inserts into a db

2005-05-19 Thread Richard Lynch
On Wed, May 18, 2005 9:47 pm, mayo said: $ses_basket_items is the total number of items $orderID = the orderID which these items are a part of $ses_basket_id = is the itemID number Which item ID number? Cuz, like, you've got FOUR different itemID numbers. Something isn't making sense

Re: [PHP] array_diff odities

2005-05-19 Thread Richard Lynch
On Wed, May 18, 2005 8:03 pm, Pablo Gosse said: Howdy folks. I'm running into something strange with array_diff that I'm hoping someone can shed some light on. If you are running PHP 4.0.4, the manual states that the function was broken... I have two tab-delimited text files, and need to

Re: [PHP] Class function calling another function in class

2005-05-19 Thread Richard Lynch
On Wed, May 18, 2005 5:04 pm, Charles Kline said: I have an organization table in mySQL. Pretty standard. My first function getDepts() is working as I intend and returning the tree just as I like it. The new piece I added in there that is not working now is the call to getPositions() within

RE: [PHP] Re: novice: char to varchar

2005-05-19 Thread Kim Madsen
-Original Message- From: tony yau [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 9:03 PM found the answer sorry about this But You don´t wanna share the solution with the rest of the class? -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen

RE: [PHP] html editor written in PHP

2005-05-19 Thread Warren Vail
PHP is server side. I know this is conventional wisdom, but your answer ignores the fine work being done with PHP-GTK. In this case the PHP executes on the client machine (although not imbedded in a browser), as an application. However I don't know of any Editors that work with PHP-GTK, stay

Re: [PHP] Responses in my email.

2005-05-19 Thread Rasmus Lerdorf
Rob Agar wrote: From: Rory Browne This is primarly a mailing list. Not a news group. The whole idea of a mailing list is that you get every message mailed to you. uh, I think the OP is complaining about the emails that *don't* go via the list, because this list is set up so that hitting

[PHP] Problem With System Call

2005-05-19 Thread Michael Stearne
I am having the strangest problem using system() or exec() or any variation. None of them work on the Fedora Core 3 system that was just loaded. The PHP is Version 4.3.9 with Apache 2.0.52, the default installation for Fedora Core 3. Everything in PHP works as expected except when trying a

[PHP] problem with multiple fields

2005-05-19 Thread Vinss
sorry for my poor english, i'll try to be understood so i want to represent an informatic parc but have a problem for example a pc can have 2 or more memory slot filled how to stock the different id in a list in my database and how extract it for the moment i just have an external key

RE: [PHP] Class function calling another function in class

2005-05-19 Thread Mark Rees
You might find this interesting if you are working with hierarchies in SQL http://www.intelligententerprise.com/001020/celko.jhtml?_requestid=72430 3 -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 19 May 2005 07:35 To: Charles Kline Cc: php-general@lists.php.net

RE: [PHP] Problem With System Call

2005-05-19 Thread Kim Madsen
-Original Message- From: Michael Stearne [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 9:10 AM I am having the strangest problem using system() or exec() or any variation. None of them work on the Fedora Core 3 system that was just loaded. The PHP is Version 4.3.9 with

Re: [PHP] problem with multiple fields

2005-05-19 Thread Tom Rogers
Hi, Thursday, May 19, 2005, 6:07:53 PM, you wrote: V sorry for my poor english, i'll try to be understood V so i want to represent an informatic parc but have a problem V for example a pc can have 2 or more memory slot filled how to stock V the different id in a list in my database and how

Re: [PHP] problem with multiple fields

2005-05-19 Thread Vinss
but in fact for example: pc reception have two memory module but i do the gestion of the individual pieces too for example in a table i have id name ref hs? 1 sdram256 22055 True 2 sdrram512 22056 True so i need to keep the informations of the reference too 2005/5/19, Tom Rogers [EMAIL

Re: [PHP] problem with multiple fields

2005-05-19 Thread Vinss
but don't worry it helps a bit just i don't see how to keep this ref. 2005/5/19, Vinss [EMAIL PROTECTED]: but in fact for example: pc reception have two memory module but i do the gestion of the individual pieces too for example in a table i have id name ref hs? 1 sdram256 22055 True

Re: [PHP] Re: novice: char to varchar

2005-05-19 Thread Satyam
My guess is that the solution is that MySql, though it supports the syntax for standard SQL and thus takes char and varchar, it actually doesn't have a specific storage type for each, all chars are stored in varchar fields, just as all boolean or bit fields are stored in integer fields. Though

[PHP] Re: multiple inserts into a db

2005-05-19 Thread Satyam
You are missing loading the $i item of the $Session_variable_with_itemID into $ses_basket_id' before doing the insert. Satyam Mayo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm putting ordered items into a db. The information is stored in session variables.

Re: [PHP] novice: char to varchar

2005-05-19 Thread Jon Hill
You can't mix CHAR and VARCHAR types in the same table. jon On Wednesday 18 May 2005 19:15, tony yau wrote: Hi all, I try to do the following: CREATE TABLE IF NOT EXISTS Invoice( PKey INTEGER, Received DATETIME, Cost DECIMAL(10,2), FileName VARCHAR(50), RefNum CHAR(10),

[PHP] Uploading files?

2005-05-19 Thread rory walsh
Hi list, I am having a little problem with the code below. It just won't seem to work? Even though I always select a jpeg my mime content type test is never true? Have I made a silly mistake somewhere? I also run the test to see if the 'mime_content_type()' function exists first before I do

Re: [PHP] Refresh (F5) adds another SQL record.

2005-05-19 Thread Satyam
Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Robert Meyer wrote: Hello, Scenario: 1) User is presented a blank form. 2) User fills in form. 3) User submits form. 4) Record is added to database. 5) Back to 1). Go really back to 1) - use redirect. After the

Re: [PHP] Refresh (F5) adds another SQL record.

2005-05-19 Thread Satyam
Aren't we oversimplifying the issue assuming that the records inserted cannot have everything duplicated but the autoincrement field? If you are taking an order and the customer says 'hey, add another of this', with the code below the system will reject it because it assumes that it is a

[PHP] Re: array_diff odities

2005-05-19 Thread Jason Barnett
Pablo Gosse wrote: Howdy folks. I'm running into something strange with array_diff that I'm hoping someone can shed some light on. I have two tab-delimited text files, and need to find the lines in the first that are not in the second, and vice-versa. There are 794 records in the first, and 724

Re: [PHP] Refresh (F5) adds another SQL record.

2005-05-19 Thread Satyam
I did something pretty similar to this but not with an MD5 hash. I used a table which had just two fields, one autoincrement and another one a boolean. When doing a form, I added one record to this table and the ID I got from it is the one I sent in the form, the other field served to

[PHP] PHP5 qne MySQL

2005-05-19 Thread Terrence Mullin
I have been trying to set an area at home to run and test php and MySQL applications. I used the tutorial on http://www.ricocheting.com/server/cgi.html to install Apache, PHP, and MySQL. Everything is working great except for trying to test a simple connection to the MySQL database through

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rahul S. Johari
On 5/18/05 7:19 PM, Richard Lynch [EMAIL PROTECTED] wrote: Your image is *NOT* a DOCTYPE HTML PUBLIC blah blah!!! It's a *IMAGE* Get rid of all the HMTL stuff. You actually need to separate this into two different files. One has all the HTML in it, with a

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rahul S. Johari
On 5/18/05 6:23 PM, Marek Kilimajer [EMAIL PROTECTED] wrote: BTW, you might not be concerned about it much, but you have a race condition in your script. Ave, What do you mean by race condition ? Rahul S. Johari Coordinator, Internet Administration Informed Marketing Services Inc. 251

Re: [PHP] PHP5 qne MySQL

2005-05-19 Thread Charles FENDT
Terrence Mullin a écrit : I have been trying to set an area at home to run and test php and MySQL applications. I used the tutorial on http://www.ricocheting.com/server/cgi.html to install Apache, PHP, and MySQL. Everything is working great except for trying to test a simple connection to the

Re: [PHP] Re: novice: char to varchar

2005-05-19 Thread tony yau
Hi Kim, I've found the same article that Philip Hallstrom [EMAIL PROTECTED] had posted Tony Kim Madsen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -Original Message- From: tony yau [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 9:03 PM found the answer

[PHP] novice: table design FOREIGN key

2005-05-19 Thread tony yau
Hi All Thanks for all your comments on my previous mail, very much appreciated. I'm stuck again! I've created the following lookup table for m - m relationship between a Group and a Contact table. CREATE TABLE Group_Contact( GroupID INT NOT NULL, ContactID INT NOT NULL, Index

[PHP] setting browscap.ini

2005-05-19 Thread Ross
Hi, My isp won't give me access to the php.ini file and they insist you can set browscap.ini up using the .htaccess file. I don't reeally believe this is possible. any ideas? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Responses in my email.

2005-05-19 Thread Robert Meyer
Thanks for your responses. I've set up a filter on [PHP] to redirect email. I just prefer to read it all on the newsgroup. Regards, Robert Robert Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, When I post a question here, I get an email for every response posted.

Re[2]: [PHP] problem with multiple fields

2005-05-19 Thread Tom Rogers
Hi, Thursday, May 19, 2005, 8:12:45 PM, you wrote: V but in fact for example: V pc reception have two memory module but i do the gestion of the individual V pieces too V for example in a table i have V id name ref hs? V 1 sdram256 22055 True V 2 sdrram512 22056 True V so i need to keep the

Re: [PHP] Problem With System Call

2005-05-19 Thread Michael Stearne
No. It's RedHat Fedora Core 3. Michael On 5/19/05, Kim Madsen [EMAIL PROTECTED] wrote: -Original Message- From: Michael Stearne [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 9:10 AM I am having the strangest problem using system() or exec() or any variation. None

RE: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Murray @ PlanetThoughtful
But here's the problem that came afterwards in IE ! IE is storing the image in it's cache.. And it's displaying the same image on the verification page whether you use the BACK button, FORWARD button, or actually go through the website and land back on the verification page. So in IE, right

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rahul S. Johari
On 5/19/05 10:59 AM, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote: Try forcing the browser to bypass the cache by adding the lines at the following link to your page: http://www.faqts.com/knowledge_base/view.phtml/aid/21068/fid/51 I thought this would definitely work because it looks

Re: [PHP] novice: table design FOREIGN key

2005-05-19 Thread John Nichel
tony yau wrote: Hi All snip Even though some people on this list were nice enough to answer your first OT question, this is still not a MySQL list. http://lists.mysql.com/ -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] setting browscap.ini

2005-05-19 Thread Chris
Ross wrote: Hi, My isp won't give me access to the php.ini file and they insist you can set browscap.ini up using the .htaccess file. I don't reeally believe this is possible. any ideas? R. Well, this page says it can't be done in .htaccess http://www.php.net/manual/en/ini.php says that

[PHP] System Call Troubles

2005-05-19 Thread Michael Stearne
I am having the strangest problem using system() or exec() or any variation. None of them work on the Fedora Core 3 system that was just loaded. The PHP is Version 4.3.11 with Apache 2.0.52, the default installation for Fedora Core 3. Everything in PHP works as expected except when trying a

[PHP] Getting info about a domain's status

2005-05-19 Thread Napolean Bonaparte
Hello, I'm developing a PHP application for a web hosting company. My requirement is that I need to check whether a domain name is registered or not. At the moment, I don't need any extra information other than the domain's status(registered or unregistered). I'd be happy if I get a

Re: [PHP] Problem With System Call

2005-05-19 Thread Brandon Ryan
I think what Kim is asking is, on your copy of RedHat Fedora Core 3, is are the SELinux security features enabled? On 5/19/05, Michael Stearne [EMAIL PROTECTED] wrote: No. It's RedHat Fedora Core 3. Michael On 5/19/05, Kim Madsen [EMAIL PROTECTED] wrote: -Original Message-

Re: [PHP] novice: table design FOREIGN key

2005-05-19 Thread Michael Satterwhite
tony yau wrote: | Hi All | | Thanks for all your comments on my previous mail, very much appreciated. | I'm stuck again! | I've created the following lookup table for m - m relationship between | a Group and a Contact table. | | CREATE TABLE Group_Contact( | GroupID INT NOT NULL, |

[PHP] Looking for a developer's weblog/cms system?

2005-05-19 Thread Philip Hallstrom
Hi folks - Over the years I've collected and done some things (tips, howtow, code snippets, etc.) that I think might be useful to others. Heck, I'd like to have them nicely organized too as now they are spread across machines, in email, etc. I'm thinking it might be nice to have an easy to

Re: [PHP] System Call Troubles

2005-05-19 Thread Philip Hallstrom
I am having the strangest problem using system() or exec() or any variation. None of them work on the Fedora Core 3 system that was just loaded. The PHP is Version 4.3.11 with Apache 2.0.52, the default installation for Fedora Core 3. Everything in PHP works as expected except when trying a

Re: [PHP] System Call Troubles

2005-05-19 Thread Michael Stearne
Thanks. Neither have helped. I have no idea what the deal is. I think it might be some restriction set by Fedora or Apache. Michael On 5/19/05, Philip Hallstrom [EMAIL PROTECTED] wrote: I am having the strangest problem using system() or exec() or any variation. None of them work on the

Re: [PHP] Problem With System Call

2005-05-19 Thread Michael Stearne
I noticed that. I don't believe SELinux is installed. Is these known to disable system calls? Thanks, Michael On 5/19/05, Roger B.A. Klorese [EMAIL PROTECTED] wrote: On Thu, 19 May 2005, Michael Stearne wrote: No. It's RedHat Fedora Core 3. SElinux isn't a distribution -- it's a

[PHP] upload videos (might be a bit 0T)

2005-05-19 Thread Ryan A
Hey, I dont really know if this is a good idea so need more advise than anything. My cousins in the US and Canada want to send us some home movies (not that I like home movies ##yuck##) but the rest of my family wants to see them. We have a dedicated server which will easily handle a couple of

Re: [PHP] System Call Troubles

2005-05-19 Thread Rasmus Lerdorf
Michael Stearne wrote: I am having the strangest problem using system() or exec() or any variation. None of them work on the Fedora Core 3 system that was just loaded. The PHP is Version 4.3.11 with Apache 2.0.52, the default installation for Fedora Core 3. Everything in PHP works as

[PHP] Re: System Call Troubles

2005-05-19 Thread Luis
maybe you should check your php safe_mode config cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Looking for a developer's weblog/cms system?

2005-05-19 Thread Matthew Weier O'Phinney
* Philip Hallstrom [EMAIL PROTECTED]: Over the years I've collected and done some things (tips, howtow, code snippets, etc.) that I think might be useful to others. Heck, I'd like to have them nicely organized too as now they are spread across machines, in email, etc. I'm thinking

[PHP] Excellent language PHP5 is!

2005-05-19 Thread Robert Meyer
Hello All, Just a comment on PHP5. I never used PHP until just over two weeks ago, though I have been a software engineer since 1975. What one can do with PHP5 is awesome. I have just developed and tested a function where all SIMPLE access to the MySQL database is contained therein. I just

Re: [PHP] System Call Troubles

2005-05-19 Thread Michael Stearne
Thank you! setsebool httpd_disable_trans true /etc/init.d/httpd restart did it. Michael On 5/19/05, Rasmus Lerdorf [EMAIL PROTECTED] wrote: Michael Stearne wrote: I am having the strangest problem using system() or exec() or any variation. None of them work on the Fedora Core 3 system

RE: [PHP] RSS news feed (slightly 0T)

2005-05-19 Thread Reynier Perez Mira
Exists some RSS for PHP but in spanish language? Thanks Reynier Pérez Mira 3ero. Ing. Informática Entre más inteligente me siento, más me doy cuenta de lo ignorante que soy. -Mensaje original- De: Jared Williams [mailto:[EMAIL PROTECTED] Enviado el: Wednesday, May 18, 2005 12:27 PM Para:

[PHP] Re: Excellent language PHP5 is!

2005-05-19 Thread Matthew Weier O'Phinney
* Robert Meyer [EMAIL PROTECTED]: There is one thing I hope is implemented in PHP soon. That is the ability to pass by reference and receive the reference in variable parameter lists. You can pass by reference to a function taking a variable number of parameters, but func_get_arg() only

Re: [PHP] Problem With System Call

2005-05-19 Thread Michael Stearne
Yes, SELinux is enabled by default on Fedora Core 3. So What I did was: setsebool httpd_disable_trans true /etc/init.d/httpd restart That seems to work! It removed all SELinux enhancements to the httpd though. Michael On 5/19/05, Brandon Ryan [EMAIL PROTECTED] wrote: I think what Kim is

Re: [PHP] upload videos (might be a bit 0T)

2005-05-19 Thread Philip Hallstrom
Hey, I dont really know if this is a good idea so need more advise than anything. My cousins in the US and Canada want to send us some home movies (not that I like home movies ##yuck##) but the rest of my family wants to see them. We have a dedicated server which will easily handle a couple of

Re: [PHP] upload videos (might be a bit 0T)

2005-05-19 Thread Leif Gregory
Hello Ryan, Thursday, May 19, 2005, 10:57:55 AM, you wrote: R Any suggestions on how to do this? Normal upload form with PHP and R increase timeout on server? or some P2P method? I dont think they R know much about FTP or i would have given them a directory on the R server to upload to. Have

Re: [PHP] PHPMAILER and sockets

2005-05-19 Thread Richard Lynch
On Thu, May 19, 2005 11:15 am, Fernando Cosso said: Hello I have 3 accounts at http://100webspace.com/, and I use the phpmailer class to send mails through smtp.yahoo.com.ar (Argentina). The problem is that the script works fine at freefronhost.com and also in goldeye.com, but when I use it

Re: [PHP] Re: Looking for a developer's weblog/cms system?

2005-05-19 Thread Philip Hallstrom
* Philip Hallstrom [EMAIL PROTECTED]: [snip] I'm thinking it might be nice to have an easy to use web-based cms system that I could post this sort of stuff too and assign it to a category and then let google index it. [snip] I've used a variety of wikis; you just have to choose one and run with

[PHP] Empty string problem

2005-05-19 Thread Kristen G. Thorson
Following is a snippet of code that I am trying to debug. Most of the time, the variable $sn (set on the last line), correctly contains the variable $this_customer_num. On some occasions, however, it does not contain $this_customer_num. I cannot figure out what may be happening that this

Re: [PHP] System Call Troubles

2005-05-19 Thread José Luis Palacios Vergara
[EMAIL PROTECTED] - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; php-general@lists.php.net Sent: Thursday, May 19, 2005 12:57 PM Subject: Re: [PHP] System Call Troubles Michael Stearne wrote: I am having the strangest problem

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Marek Kilimajer
Rahul S. Johari wrote: On 5/18/05 6:23 PM, Marek Kilimajer [EMAIL PROTECTED] wrote: BTW, you might not be concerned about it much, but you have a race condition in your script. Ave, What do you mean by race condition ? If more then one user is accesing the page, you might overwrite the first

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rory Browne
if you have an image generated by http://www.example.com/createimage.php , you could always refer to it as http://www.example.com/createimage.php/{no_of_seconds_since_unix_epoch}.png On 5/19/05, Rahul S. Johari [EMAIL PROTECTED] wrote: On 5/19/05 10:59 AM, Murray @ PlanetThoughtful [EMAIL

[PHP] OT - Help creating Tables

2005-05-19 Thread kevin
Hi, I am working on a program for a clothing manufacture and need some help designing the tables for the database. I have to track the inventory levels of each style by color and size and can not figure the tables out. Here is the information I need to track. Style number Color Size (can

[PHP] OT - Table help needed~ PLEASE

2005-05-19 Thread kevin
Hi, I am working on a program for a clothing manufacture and need some help designing the tables for the database. I have to track the inventory levels of each style by color and size and can not figure the tables out. Here is the information I need to track. Style number Color Size (can have

[PHP] PHP and SSH

2005-05-19 Thread Pablo Gosse
Hi, folks. Has anyone had any issues using PHP with the libssh2 library? I had my sysadmin install it, but he's not certain we should be developing against it in a production environment since it's still alpha (0.10). I'm looking for opinions as to whether anyone out there has run into problems