Re: [PHP] Enabling MySQL support Problemmmmm!!!!

2005-03-30 Thread Burhan Khalid
wan nordiana Wan Abd Kadir wrote: Hello, I am having problem with enabling MySQL Support. I am using PHP 5 and mysql 4.3.1 The problem is that when I start my PHP info page, PHP module gives me an error: "PHP Startup: Unable to load dynamic library '...' - The specified module could not be found".

RE: [PHP] ISO encoding of subject in mail?

2005-03-30 Thread Kim Madsen
> -Original Message- > From: Kim Madsen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 29, 2005 3:56 PM > I´d like to encode the subject in mails generated and sent by PHP, so > Danish letters like æ,ø and å can be used too... like this: > > Subject: Problemer med =?ISO-8859-1?Q?f=E6ll

[PHP] Re: filtering uploaded files

2005-03-30 Thread A. S. Milnes
On Wed, 2005-03-30 at 04:59, Richard Lynch wrote: > Please reference their publications, if possible. At hand immediately I have:- PHP and MySQL Web Development 3rd edition by Luke Welling (Senior Web Developer at MySQL) and Laura Thomson, published by www.developers-library.com. > It's just p

Re: [PHP] URL restriction on XML file

2005-03-30 Thread Marek Kilimajer
That's because the character data is split on the borders of the entities, so for http://feeds.example.com/?rid=318045f7e13e0b66&cat=48cba686fe041718&f=1 characterData() will be called 5 times: http://feeds.example.com/?rid=318045f7e13e0b66 & cat=48cba686fe041718 & f=1 Solution is inlined below R

[PHP] HELP!

2005-03-30 Thread 王成乔
Hi, Would somebone give me a examble of regulation expression to check account(or money) type which start with “$”. For examble, “$65,786.00” I am a newer. Thanks. Yours, Justin zoe

[PHP] HELP!

2005-03-30 Thread 王成乔
Hi, Would somebone give me a example of regulation expression to check account(or money) type which start with “$”. For example, “$65,786.00” I am a newer. Thanks. Yours, Justin zoe

[PHP] Generate random number

2005-03-30 Thread William Stokes
Hello How can I generate a ramdom number let's say between 1- 1 000 000 and store it in a variable? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Generate random number

2005-03-30 Thread Kim Madsen
> -Original Message- > From: William Stokes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 30, 2005 12:02 PM > How can I generate a ramdom number let's say between 1- 1 000 000 and > store > it in a variable? Go to php.net, search for random and You will find... http://php.net/manua

[PHP] Re: Generate random number

2005-03-30 Thread William Stokes
never mind... :-) "William Stokes" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > Hello > > How can I generate a ramdom number let's say between 1- 1 000 000 and > store it in a variable? > > Thanks > -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] HELP!

2005-03-30 Thread Kim Madsen
> -Original Message- > From: çæä [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 30, 2005 11:46 AM > To: php-general@lists.php.net > Cc: php-general@lists.php.net Why to AND cc? > Would somebone give me a example of regulation expression to check > account(or money) type which start w

RE: [PHP] Generate random number

2005-03-30 Thread PtitRun
For example : $number = mt_rand(1,100); -Message d'origine- De : William Stokes [mailto:[EMAIL PROTECTED] Envoyé : mercredi 30 mars 2005 12:02 À : php-general@lists.php.net Objet : [PHP] Generate random number Hello How can I generate a ramdom number let's say between 1- 1 000 000

[PHP] How can I parse a xml file like this?

2005-03-30 Thread 牛坤
Dear php users, I'll have to parse a xml file like this: . http://www.w3.org/2001/XMLSchema-instance";. xmlns:xsd="http://www.w3.org/2001/XMLSchema";. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";>. . http:

[PHP] Error Generated but no error?

2005-03-30 Thread Geoff Martin
I have a page that receives data from a form. Using $_POST['foo'], I am able to use this data in the page but I continually receive an error notice (PHP Notice: Undefined index: foo in /Library/WebServer/Documents/.. etc). This happens to all three indices that are passed by this form, yet t

Re: [PHP] Error Generated but no error?

2005-03-30 Thread Burhan Khalid
Geoff Martin wrote: I have a page that receives data from a form. Using $_POST['foo'], I am able to use this data in the page but I continually receive an error notice (PHP Notice: Undefined index: foo in /Library/WebServer/Documents/.. etc). This happens to all three indices that are passed

Re: [PHP] How can I parse a xml file like this?

2005-03-30 Thread Burhan Khalid
牛坤 wrote: > Dear php users, > > I'll have to parse a xml file like this: > . > http://www.w3.org/2001/XMLSchema-instance";. > xmlns:xsd="http://www.w3.org/2001/XMLSchema";. > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";. > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/

Re: [PHP] RE: Best Server OS

2005-03-30 Thread Nobody Special
On Tue, 29 Mar 2005 11:10:18 -0500, Gerald Artman <[EMAIL PROTECTED]> wrote: > > I would recommend OSX > Inserts foot in mouth. > Top ratings on security compared to Linux or Windows Unless you enable outside services. And who rated it anyway? Probably paid by Apple. > Fa

[PHP] How to insert and select images from postgres db

2005-03-30 Thread J.F.Kishor
Hi, I am having a problem in storing and selecting images in and from postgres. My requirement is I have to select the image from the database and display it in User Interface. Can anyone help me through this problem, I'am in need of this solution

[PHP] asking comment

2005-03-30 Thread William Stokes
Hello, I got a bit frustrated with image upload stuff with different image name problems. So I created a system that gives the uploaded imaged a random numeric name between 1-10 000 000 and saves the file to a server folder and the image name to mysql DB. Is there a so sort of a problem here t

Re: [PHP] asking comment

2005-03-30 Thread Richard Davey
Hello William, Wednesday, March 30, 2005, 1:44:01 PM, you wrote: WS> Is there a so sort of a problem here that I am not thinking of? I WS> only can imagine problem that the rand() gives the same value WS> twice. But I cant see this as a major problem because there would WS> be maybe not more than

Re: [PHP] asking comment

2005-03-30 Thread Angelo Zanetti
use a SQL statement to check if that number exists if not then its fine if it does then generate another no and check again, until there is a unique number generated. hope this helps angelo William Stokes wrote: Hello, I got a bit frustrated with image upload stuff with different image name pro

Re: [PHP] asking comment

2005-03-30 Thread Frank Arensmeier
Instead of generating filenames with random numbers, why not take a timestamp and use this as filenames? /frank 2005-03-30 kl. 14.44 skrev William Stokes: Hello, I got a bit frustrated with image upload stuff with different image name problems. So I created a system that gives the uploaded image

Re: [PHP] PHP 5 Strings are References?!

2005-03-30 Thread Jochem Maas
Chris wrote: Richard Lynch wrote: On Tue, March 29, 2005 7:58 pm, Chris said: Richard Lynch wrote: ... Are you sure you don't have register_globals enabled? I tested Richards reproduce script on php 5.0.3 on a Debian machine with the following ini settings: register_globals = Off register

[PHP] Parsing... the hell of PHP

2005-03-30 Thread Mário Gamito
Hi, I'm trying to transform a url taken from the DB from "plain text", to the same, but linkable url. All i get is parse errors and alike. Here is my last (of many) attempt: $url = ".HtmlEntities($url)."\">"."; A warning and a parse error is what i get. Can't get there :( Any help would be apreci

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Richard Davey
Hello Mário, Wednesday, March 30, 2005, 2:51:02 PM, you wrote: MG> Here is my last (of many) attempt: MG> $url = ".HtmlEntities($url)."\">"."; $url = "" . htmlentities($url) . ''; Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers.

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Martin . C . Austin
$url = ".HtmlEntities($url)."\">"."; It appears the parse error is at the end of your opening link tag, so PHP doesn't know what >.HtmlEntities($url) means. I'm at work so I can't test it, but that appears the culprit to me. $url = "" . HtmlEntities($url) . ""; should suffice. Martin Austin

Re: [PHP] RE: Best Server OS

2005-03-30 Thread Brent Baisley
I've used Macs for a long time and think it's a great client and OS. The GUI stuff they have for the server I think is great too. But when considering the best OS for a server, I would hardly recommend it, except from an ease of use and setup standpoint. Apple is still coming up to speed on all

[PHP] deleting all my cookies

2005-03-30 Thread AndreaD
I have a button that sets a variable when pressed. I then try delete any cookies using the following code but no joy. if (isset($scrub)){ echo "this works"; if (isset($_COOKIE['cookie'])) { foreach ($_COOKIE['cookie'] as $name => $quantity) { setcookie($name, ""); } } } Please help. Any sugg

Re: [PHP] deleting all my cookies

2005-03-30 Thread Ken
setcookie("$name",'',time()-3600); cheers On Wed, 30 Mar 2005 15:29:47 +0100, AndreaD <[EMAIL PROTECTED]> wrote: > I have a button that sets a variable when pressed. I then try delete any > cookies using the following code but no joy. > > if (isset($scrub)){ > echo "this works"; > if (isset($_C

Re: [PHP] deleting all my cookies

2005-03-30 Thread John Nichel
AndreaD wrote: I have a button that sets a variable when pressed. I then try delete any cookies using the following code but no joy. if (isset($scrub)){ echo "this works"; if (isset($_COOKIE['cookie'])) { foreach ($_COOKIE['cookie'] as $name => $quantity) { setcookie($name, ""); } } } Give your

[PHP] Re: Validating XML structure with PHP

2005-03-30 Thread Jason Barnett
Eli wrote: > Hi, > > I want to validate an XML structure using PHP. > I thought of using PHP's DOM and XSD or DTD for validation. This does > the job ok, except on invalid XML structure I get the same error code. There are schema validation techniques within the DOM extension... those error messag

Re: [PHP] PHPXref is awesome!

2005-03-30 Thread Jason Barnett
Daevid Vincent wrote: > Yes! That's the point. We use PHPDoc tags in our project, but it's become so > large that PHPDocumentor itself can't make the documentation anymore. Go > figure. large != high quality supporting existing coding standards == "A Good Thing" Is interested but doesn't have time

RE: [PHP] asking comment

2005-03-30 Thread Jared Williams
> > I got a bit frustrated with image upload stuff with different > image name problems. So I created a system that gives the > uploaded imaged a random numeric name between 1-10 000 000 > and saves the file to a server folder and the image name to mysql DB. > > Is there a so sort of a problem

Re[2]: [PHP] asking comment

2005-03-30 Thread Richard Davey
Hello Jared, Wednesday, March 30, 2005, 4:16:31 PM, you wrote: JW> If want to create a unique filename, and are using PHP4.3.2 JW> or better, use fopen() with the 'x' or 'x+' mode, rather than JW> file_exists(). If you're happy with your scripts generating E_WARNING's all over the place then yes

[PHP] Mail with acknowledgement of delivery

2005-03-30 Thread marc serra
Hi, I got a problem with mail function. I want to know if it's possible to send a email in php and to get back an acknowledgement of delivery. My problem is that i want to know if my emails are delivered successfully to recipients. Can you please tell how to do this if there is a solution. than

[PHP] XML/HTML specific instructions

2005-03-30 Thread Satyam
This is just an idea I'm (quite unsuccessfully) been working on. It appears to me that PHP sits between a database and a web browser. On the database side, something I would love to have is embedded SQL, as it exists in some other languages such as C (for example, see: http://www.csee.umbc.edu

[PHP] How to format every secound row in a database result

2005-03-30 Thread Georg
Hi! I wish to format the output of a database select. The result is presented in a table, in which i'd like to present everey secound row with a different background color. My idea was to test if the remaining number of rows where a prime number or not, and by that determent if the background colo

Re: [PHP] Mail with acknowledgement of delivery

2005-03-30 Thread Leif Gregory
Hello marc, Wednesday, March 30, 2005, 8:31:48 AM, you wrote: m> I got a problem with mail function. I want to know if it's possible m> to send a email in php and to get back an acknowledgement of m> delivery. My problem is that i want to know if my emails are m> delivered successfully to recipien

RE: [PHP] asking comment

2005-03-30 Thread Jared Williams
> JW> If want to create a unique filename, and are using PHP4.3.2 or > JW> better, use fopen() with the 'x' or 'x+' mode, rather than > JW> file_exists(). > > If you're happy with your scripts generating E_WARNING's all > over the place then yes. Personally, I'm not. Use @ to surpress them.

Re: [PHP] Mail with acknowledgement of delivery

2005-03-30 Thread Markus Mayer
The mail() function allows you to specify additional headers that go into the mail. Delivery acknowledgement is done using specific headers, the exact format of which I don't know off hand. You will have to find the exact formatting information yourself, however this is the way to go. Markus

[PHP] DBF to MySQL using PHP Script

2005-03-30 Thread Rahul S. Johari
Ave, Does anybody know of a working PHP script to convert DBF data into mySQL table? Thanks, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [EMAIL PROTECTED] http://www.

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Mário Gamito
Hi, Thank you all that answered my question. It worked. I think i'll never get used to this parsing PHP stuff :( Warm Regards, Mário Gamito [EMAIL PROTECTED] wrote: $url = ".HtmlEntities($url)."\">"."; It appears the parse error is at the end of your opening link tag, so PHP doesn't know what >.H

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Mário Gamito
Hi, Thank you all that answered my question. It worked. I think i'll never get used to this parsing PHP stuff :( Warm Regards, Mário Gamito [EMAIL PROTECTED] wrote: > $url = ".HtmlEntities($url)."\">"."; > > It appears the parse error is at the end of your opening link tag, so PHP doesn't know wh

Re: [PHP] How to format every secound row in a database result

2005-03-30 Thread Jochem Maas
Georg wrote: Hi! I wish to format the output of a database select. The result is presented in a table, in which i'd like to present everey secound row with a different background color. My idea was to test if the remaining number of rows where a prime number or modulo 2 is the current row 'num

Re: [PHP] How to format every secound row in a database result

2005-03-30 Thread Miles Thompson
Maintain a counter as you display the returned results. Mod the counter by 2 (rowcounter % 2), set colour according to presence / absence of a remainder. Miles At 11:05 AM 3/30/2005, Georg wrote: Hi! I wish to format the output of a database select. The result is presented in a table, in which i'd

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Martin . C . Austin
Glad to have helped (though someone else beat me to the punch with the right answer!) You'll get the hang of it -- the way I learned is to write out your tag that you'd like to use like this: "text here" Then go through and escape the characters that need it: "text here" You can place variab

Re: [PHP] How to format every secound row in a database result

2005-03-30 Thread Martin . C . Austin
Or you could simply test the $color variable to see its contents, and change it if it's what you expected: $color = "#FF"; if($color = "#FF") { $color = "#00"; //output } else { $color = "#FF"; } There may be something inherently wrong in this approach, but it has always w

Re[2]: [PHP] asking comment

2005-03-30 Thread Richard Davey
Hello Jared, Wednesday, March 30, 2005, 4:51:01 PM, you wrote: >> If you're happy with your scripts generating E_WARNING's all >> over the place then yes. Personally, I'm not. JW> You cannot guarentee the filename you think doesn't exist with the JW> file_exists() doesn't exist when you eventual

[PHP] Parsing bounced emails

2005-03-30 Thread aldo . mailinglistphp
I need to parse bounced email I receive when I send a newsletter, to know the bounced address, the error code and the Id of the newsletter I sent. The bounced emails return to "[EMAIL PROTECTED]" address, so I can either read them with imap functions or sending to a php script by a pipe. What is b

RE: Re[2]: [PHP] asking comment

2005-03-30 Thread Jared Williams
> JW> You cannot guarentee the filename you think doesn't exist with the > JW> file_exists() doesn't exist when you eventually fopen() it, > JW> otherwise. > > Using the original posters method, I agree. But there are > plenty of ways around this without forcing a warning to occur > (or having

Re[4]: [PHP] asking comment

2005-03-30 Thread Richard Davey
Hello Jared, Wednesday, March 30, 2005, 6:27:14 PM, you wrote: JW> If you think you have another method please elaborate. Sure, at the base level the issue is simply the uniqueness of the filename. So there are several options open in this regard. Either use an md5'd uniqid rand combination (as

Re: [PHP] How to format every secound row in a database result

2005-03-30 Thread Leif Gregory
Hello Georg, Wednesday, March 30, 2005, 8:05:30 AM, you wrote: G> I wish to format the output of a database select. The result is G> presented in a table, in which i'd like to present everey secound G> row with a different background color. My idea was to test if the G> remaining number of rows wh

RE: Re[4]: [PHP] asking comment

2005-03-30 Thread Jared Williams
> Sure, at the base level the issue is simply the uniqueness of > the filename. So there are several options open in this > regard. Either use an md5'd uniqid rand combination (as on > the uniqid manual page) and just go with that, operating > under the assumption that the chances of a conf

Re[2]: [PHP] How to format every secound row in a database result

2005-03-30 Thread Richard Davey
Hello Leif, Wednesday, March 30, 2005, 6:54:15 PM, you wrote: LG> http://www.devtek.org/tutorials/alternate_row_colors.php There is no need to involve a math heavy modulus function just to alternate row colours! The following single line will do it just as well, swap the colours for whatever you

Re[6]: [PHP] asking comment

2005-03-30 Thread Richard Davey
Hello Jared, Wednesday, March 30, 2005, 7:02:58 PM, you wrote: JW> I'll take absolutely bullet-proof and handled/supressed warnings, JW> over relatively bullet-proof. That would be fine if your previous solution was absolutely bullet-proof, or for that matter provided a solution for the original

RE: Re[6]: [PHP] asking comment

2005-03-30 Thread Mikey
How about a filename based upon a user id and the time the file was uploaded. Unless you have multiple instances of the same user then it will not be possible for the same user to upload a file at exactly the same time as himself. Just a thought... Mikey > -Original Message- > From: Ri

RE: Re[6]: [PHP] asking comment

2005-03-30 Thread Martin . C . Austin
I agree with this solution, though it only effects the OP if he is using a login system of sorts. Martin Austin "Mikey" <[EMAIL PROTECTED]> 03/30/2005 12:39 PM Please respond to frak To: cc: Subject:RE: Re[6]: [PHP] asking comment How about a filenam

RE: Re[6]: [PHP] asking comment

2005-03-30 Thread Jared Williams
> > JW> I'll take absolutely bullet-proof and handled/supressed warnings, > JW> over relatively bullet-proof. > > That would be fine if your previous solution was absolutely > bullet-proof, or for that matter provided a solution for the > original problem of renaming uploaded files and keeping

[PHP] How to format every secound row in a database result

2005-03-30 Thread Philip Thompson
On Mar 30, 2005, at 12:08 PM, Richard Davey wrote: Hello Leif, Wednesday, March 30, 2005, 6:54:15 PM, you wrote: LG> http://www.devtek.org/tutorials/alternate_row_colors.php There is no need to involve a math heavy modulus function just to alternate row colours! The following single line will do it

Re: [PHP] How to format every secound row in a database result

2005-03-30 Thread tg-php
I've used the mod (%) function to do this, which also gives you the flexibility of defining how many lines to alternate the colors or do whatever you need to do every "X" lines. Another method (and forgive me if this was mentioned, I didn't see it yet) is to use a bitwise NOT to flip-flop a val

[PHP] Sourcelabs releases AMP Stack and Test Data

2005-03-30 Thread Cornelius Willis
SourceLabs released its AMP Stack and associated test data this morning. Please forgive the (debatable) spam in advance; this post does contain pointers to useful test information for capacity planners who are building out AMP infrastructure for demanding deployments and others who are working with

RE: [PHP] Sourcelabs releases AMP Stack and Test Data

2005-03-30 Thread Jay Blanchard
[snip] Please forgive the (debatable) spam in advance; [/snip] Not debatable at all. An unrequested solicitation such as this is, on a list such as this, regarded as spam. I am sure that several would like to see something like [ANNOUNCEMENT] in the subject line...at least that way everyone knows

Re: [PHP] Sourcelabs releases AMP Stack and Test Data

2005-03-30 Thread John Nichel
Cornelius Willis wrote: So, what is the PHP question? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include file

2005-03-30 Thread xfedex
This way is faster: include('..includes/' . $include); Its always better to avoid using doublequotes. meatbread. On Tue, 29 Mar 2005 20:55:17 -0500, James Pancoast <[EMAIL PROTECTED]> wrote: > Try it with double quotes instead: > > include( "../includes/$include" ); > > That way works for me.

RE: [PHP] Include file

2005-03-30 Thread Jay Blanchard
[snip] This way is faster: include('..includes/' . $include); Its always better to avoid using doublequotes. [/snip] Why is it faster? And why should you avoid using double quotes? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include file

2005-03-30 Thread xfedex
> Why is it faster? And why should you avoid using double quotes? > ..."Scripts using single quotes run slightly faster because the PHP parser can include the string directly. Double quoted strings are slower because they need to be parsed."... Quoted from: http://www.zend.com/zend/tut/using-str

RE: [PHP] Include file

2005-03-30 Thread Jay Blanchard
[snip] Personally, I go almost exclusively with double quotes, so I'm interested to see how your include is faster. >>> include('..includes/' . $include); <<< "Jay Blanchard" <[EMAIL PROTECTED]> 03/30/2005 02:58 PM To:"xfedex" <[EMAIL PROTECTED]>, cc:

RE: [PHP] Include file

2005-03-30 Thread Jay Blanchard
[snip] > Why is it faster? And why should you avoid using double quotes? > ..."Scripts using single quotes run slightly faster because the PHP parser can include the string directly. Double quoted strings are slower because they need to be parsed."... Quoted from: http://www.zend.com/zend/tut/us

Re: [PHP] Include file

2005-03-30 Thread John Nichel
Jay Blanchard wrote: I try to use both types of quotes in the proper circumstance. Having said that, I came to computing in the age where we worried over CPU cycles, but I don't see how in this day and age the difference between the two would even matter. Even on a high load site the difference be

Re: [PHP] Include file

2005-03-30 Thread xfedex
On Wed, 30 Mar 2005 15:14:27 -0600, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > > Why is it faster? And why should you avoid using double quotes? > > > > ..."Scripts using single quotes run slightly faster because the PHP > parser can include the string directly. Double quoted strings are

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Include file

2005-03-30 Thread Mattias Thorslund
Jay Blanchard wrote: I try to use both types of quotes in the proper circumstance. Having said that, I came to computing in the age where we worried over CPU cycles, but I don't see how in this day and age the difference between the two would even matter. Even on a high load site the difference be

Re[2]: [PHP] Include file

2005-03-30 Thread Richard Davey
Hello Jay, Wednesday, March 30, 2005, 10:14:27 PM, you wrote: JB> I try to use both types of quotes in the proper circumstance. JB> Having said that, I came to computing in the age where we worried JB> over CPU cycles, but I don't see how in this day and age the JB> difference between the two wou

Re: [PHP] Include file

2005-03-30 Thread John Nichel
Because I'm bored, I decided to test the theory. AMD 3200xp 1.5gb Memory RHEL AS 3 I ran the test 20 times, and 18 of those times, double quotes were faster than single quotes. Don't always trust what you read. Not to mention the fact that the 'faster' of the two was 'faster' by an average of

Re: [PHP] Include file

2005-03-30 Thread Martin . C . Austin
>>> xfedex wrote: Welli have a 30k script, with double i get 8 or 9 seconds, with sigle i get 0.05 or 0.08 seconds. The script basically made a lot of querys, its part of a user manager module of a system im writing. <<< Could the speed have more to do with whatever database server you are us

[PHP] an app to generate 'yahoo groups' features/functionality..

2005-03-30 Thread bruce
hi.. after a lot of fruitless searching via google, i've decided to ask here... does anyone know of an app that will allow a site to provide functionality similar to 'yahoo groups' to the users. i want to be able to allow users to be able to create their own 'groups' and to be able to have the us

Re: [PHP] Include file

2005-03-30 Thread xfedex
On Wed, 30 Mar 2005 16:45:32 -0500, John Nichel <[EMAIL PROTECTED]> wrote: > Because I'm bored, I decided to test the theory. > > AMD 3200xp > 1.5gb Memory > RHEL AS 3 > > I ran the test 20 times, and 18 of those times, double quotes were > faster than single quotes. Don't always trust what you

RE: [PHP] strncmp function (Forgot code snippit)

2005-03-30 Thread Russ Fineman
Chris W. Parker wrote: > Russ > on Wednesday, March 30, 2005 1:18 PM said: > >> I'm new to php and linux. I am trying to replace a password program I >> used under windows with a mysql based login. I want to compare the >> first character of the first and last name

[PHP] Re: Simple CMS program

2005-03-30 Thread GamblerZG
When I went to a site that lists and compares CMS programs, I was overwhelmed by at least 100 listings. Again, I would like to rely on personal experience. What I am seeking is a CMS that will provide users at my client (a Yacht Club) to update news items, and if possible, update a calendar u

RE: [PHP] How to insert and select images from postgres db

2005-03-30 Thread J.F.Kishor
Hi Kim, Thanks for your reply, I have'nt recived any other other help or suggestion from anyone other then you. Any how I have made it work it is working fine. Thanks again for your acknowledgement. Have a great day.! Regards,

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: $url = ".HtmlEntities($url)."\">"."; It appears the parse error is at the end of your opening link tag, so PHP doesn't know what >.HtmlEntities($url) means. I'm at work so I can't test it, but that appears the culprit to me. $url = "" . HtmlEntities($url) . ""; should s

Re: [PHP] XML/HTML specific instructions

2005-03-30 Thread Burhan Khalid
Satyam wrote: This is just an idea I'm (quite unsuccessfully) been working on. It appears to me that PHP sits between a database and a web browser. On the database side, something I would love to have is embedded SQL, as it exists in some other languages such as C (for example, see: http://www.c

[PHP] image_type

2005-03-30 Thread William Stokes
Hello, I was under impression that php automatically gives values to image_type and image_name if one tries to upload image from a web form if the name of the uploaded image field is image. If I do this I can see that there is a path for the uploaded image in a variable but the echo won't prin

RE: [PHP] image_type

2005-03-30 Thread Kim Madsen
> -Original Message- > From: William Stokes [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 31, 2005 8:58 AM > I was under impression that php automatically gives values to image_type > and image_name if one tries to upload image from a web form if the name > of the uploaded image field

[PHP] Re: asking comment

2005-03-30 Thread Nadim Attari
If you are storing the name of the uploaded image in a table (mySQL DB), then the row in which you gonna store this name must have a unique id (auto_increment field) ... why don't you use this id as your image name. here you'll NEVER have the same image name. Example You have an HTML form where su

Re: [PHP] Any personal experience with MySQL/Calendar application

2005-03-30 Thread Todd Cary
Joe - Can you send me the name? [EMAIL PROTECTED] Todd Joe Harman wrote: Hey Todd... I have one that I created and posted at Zend.com ... it can be easily adapted to store data n MySQL... Joe On Tue, 29 Mar 2005 12:33:12 -0500, Peter G. Brown <[EMAIL PROTECTED]> wrote: I have used egroupware in a c

[PHP] Simple CMS program

2005-03-30 Thread Todd Cary
When I went to a site that lists and compares CMS programs, I was overwhelmed by at least 100 listings. Again, I would like to rely on personal experience. What I am seeking is a CMS that will provide users at my client (a Yacht Club) to update news items, and if possible, update a calendar u

[PHP] session_save_path() issue

2005-03-30 Thread Tom Ray [Lists]
Hey there- I went to install phpopenchat today and when I run the test.php script that comes with, I get this error: *Fatal error*: Call to undefined function: session_save_path() in */path/to/website/htdocs/phpopenchat/config.inc.php* on line *98 *I'm not sure why this is coming up since the s

Re: [PHP] URL restriction on XML file

2005-03-30 Thread Roger Thomas
Hi Marek, Thank you for the solution. -- Roger Quoting Marek Kilimajer <[EMAIL PROTECTED]>: > That's because the character data is split on the borders of the > entities, so for > > http://feeds.example.com/?rid=318045f7e13e0b66&cat=48cba686fe041718&f=1 > > characterData() will be called 5 ti

[PHP] strncmp function

2005-03-30 Thread Russ
I'm new to php and linux. I am trying to replace a password program I used under windows with a mysql based login. I want to compare the first character of the first and last name of the user for a capital letter. My login program passes a user name and password. Below is a start to the program

RE: [PHP] strncmp function (Forgot code snippit)

2005-03-30 Thread Chris W. Parker
Russ on Wednesday, March 30, 2005 1:18 PM said: > I'm new to php and linux. I am trying to replace a password program I > used under windows with a mysql based login. I want to compare the > first character of the first and last name of the user for a capital > lette

Re: [PHP] Simple CMS program

2005-03-30 Thread Josip Dzolonga
Todd Cary wrote: When I went to a site that lists and compares CMS programs, I was overwhelmed by at least 100 listings. Again, I would like to rely on personal experience. What I am seeking is a CMS that will provide users at my client (a Yacht Club) to update news items, and if possible, up

Re: [PHP] Include file

2005-03-30 Thread John Nichel
xfedex wrote: Here is my test in a PIII 550Mhz 128mb with gentoo: for ($i = 0; $i <= ; $i++) { $include = 'db_connect.php'; include('include/'.$include); } 3.623316 seconds -- for ($i = 0; $i <= ; $i++) { $include = "db_connect.php";

[PHP] strncmp function (Forgot code snippit)

2005-03-30 Thread Russ
Subject: strncmp function Date: Wednesday 30 March 2005 01:14 pm From: Russ <[EMAIL PROTECTED]> To: PHP General I'm new to php and linux. I am trying to replace a password program I used under windows with a mysql based login. I want to compare the first character of the first and last name o

Re: [PHP] Simple CMS program

2005-03-30 Thread Andre Dubuc
On Wednesday 30 March 2005 08:19 pm, Josip Dzolonga wrote: > Todd Cary wrote: > > When I went to a site that lists and compares CMS programs, I was > > overwhelmed by at least 100 listings. Again, I would like to rely on > > personal experience. What I am seeking is a CMS that will provide > > us