[PHP] Will pay for PHP

2003-01-08 Thread Andy Cook
I am bringing up a site in March, but I am working on it now. I need some PHP (not a lot). Please email me at [EMAIL PROTECTED] and let me know if you are interested in helping. I'll make it worth your while. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

RE: [PHP] HTML email that generates "!"s - any ideas?

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
You need to set an encoding and encode the body see: http://www.php.net/manual/en/function.imap-8bit.php **You will need to add the headers for this plus encode** Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Tom Rogers [mail

RE: [PHP] apache + mod_php question

2003-01-08 Thread Rick Widmer
At 05:16 AM 1/9/03 +1000, Timothy Hitchens \(HiTCHO\) wrote: use: apachectl graceful It will reload the config's and allow operation to continue!! Yes, in many cases this is the best option. The only time I've found it will not work is when you are adding or changing SSL certificates. For a

[PHP] $query help :(

2003-01-08 Thread - \[ Paul Ferrie \] -
Hi again guys i have run into another problem :( i am trying to build a user poll (flash+php+mysql) I have the interface all sorted but i have a problem with my add new poll php file. When i hit the update poll button in flash it seem that everthing has work and it' send back a msg saying all went

[PHP] Dynamic Regex

2003-01-08 Thread Gerard Samuel
The example doesn't have to make sense, but Im looking for the correct syntax for $foo. I was trying -> $foo = '\[this\](.*?)that'; $bar = 'the other'; $str = preg_replace($foo, $bar, $other_string); But that doesn't work. I came across an example where the syntax of $foo is in -> $foo = '#\

[PHP] Re: strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
It seem there is some probs with the latest release of php something about global vars. Jst checked and it works now. It was the php thing right enough. i hope that my server admin have done the same thing with the php.ini cheers guys. "- -" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTE

Re: [PHP] Submit Form

2003-01-08 Thread Justin French
is your question in regards to: a) how to bring data from the 1st form across to the 2nd, so that it can all be updated together OR b) how to POST data from a form using a html link, probably with javascript If b, best place to ask is a javascript list/newsgroup, or by looking for something sim

RE: [PHP] $query help :(

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
$posted needs to have '' around it!! <-- this could be stopping it!! (and always check to see if the vars exist first and if you are using 4.1 + with globals off you will need to change you code now or in the future) Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED]

[PHP] Variables

2003-01-08 Thread Stephen
Yet another question: How would you make a variable's name the value of another variable? For example... Variable 1's value is "joe." I want to make the value of variabe one, or joe, the name of variable two which would equal something else. Thanks,Stephen Cratonhttp://www.melchior.us   "What

RE: [PHP] Variables

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
You are referring to Variables of Variables see: http://www.php.net/manual/en/language.variables.variable.php Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 10:52 A

Re: [PHP] Variables

2003-01-08 Thread Justin French
on 09/01/03 11:52 AM, Stephen ([EMAIL PROTECTED]) wrote: > Yet another question: How would you make a variable's name the value of > another variable? For example... Variable 1's value is "joe." I want to make > the value of variabe one, or joe, the name of variable two which would equal > somethi

[PHP] Re: Dynamic Regex

2003-01-08 Thread Greg Beaver
Hi Gerard, all the preg_* functions require delimiters surrounding regular expressions. $foo = '\[this\](.*?)that'; should be by default: $foo = '/\[this\](.*?)that/'; the code you tried uses # as the delimiter instead of /, an option preg_* allows Take care, Greg -- phpDocumentor http://www.

[PHP] Stumped...

2003-01-08 Thread Stephen
Sorry for so many questions but this should be the last one for a while.   I have a form that I want to insert into a MySQL table. This form is based on how many entries a user wants to enter. For example, a user wants to type in 12 names, so 12 form fields appear. Or they want 50, 50 appear.

RE: [PHP] Stumped...

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Do you require searching of this data eg... select via these numbers or not?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 11:56 AM To: PHP List Subject: [PHP] St

Re: [PHP] Stumped...

2003-01-08 Thread Stephen
I will later select them and display them to be edited, but other then that, not really... - Original Message - From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]> To: "'Stephen'" <[EMAIL PROTECTED]>; "'PHP List'" <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 8:58 PM Subject: RE

[PHP] apache and php

2003-01-08 Thread Gareth Thomas
I am trying to run a PHP page from my browser (Mozilla) and each time I load the page it is attempting to force a dowload of the page instead, based on the mime-type. I had been developing a command line PHP application which works fine and then had just started on a web interface and realised that

RE: [PHP] Stumped...

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
What you can do it simply get the data and create an array serialise the array and sent it to the database ... the issue that arises from this is that you can't select if that record has 45 and 786 etc etc The other option you have is to create a table then a second table that has entries that sho

[PHP] How to strip extra characters off of a string

2003-01-08 Thread rdkurth
I need to be able to just extract the number that is right Under blocks in this example it is the number 57070. This was generated by the quota -g groupname command. Disk quotas for group site53 (gid 165): Filesystem blocks quota limit grace files quota limit grace /dev/

RE: [PHP] apache and php

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Your settings should be something similar to this: AddType application/x-httpd-php .php .html AddType application/x-httpd-php-source .phps Do you have the page remotely available to see what is happening for you?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EM

[PHP] Re: Strange file upload problem in php 4.2.3

2003-01-08 Thread theheadsage
Try using the $_files['photo']['error'] variable to see if the file is acutaly being uploaded correctly. I had the same problem on Windows XP, but i discovered the file was only half-uploaded using this. - Daniel "TheHeadSage" Spain Founder of Voidsoft. [EMAIL PROTECTED] ~ Manga Sketchbook, the

Re: [PHP] Stumped...

2003-01-08 Thread Stephen
How would I serialise it? I can make the numbers into an array, but if I echo the array itself, I'd get "Array" and I need the number in the db, not the word... - Original Message - From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]> To: "'Stephen'" <[EMAIL PROTECTED]> Cc: "'PHP List'"

RE: [PHP] How to strip extra characters off of a string

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Give this a shot ... a bit of a hack but works for you: Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 12:17 PM > To: php-general > Subject: [PHP] H

RE: [PHP] Stumped...

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Check out: http://www.php.net/manual/en/function.serialize.php Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Stephen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 12:13 PM > To: Timothy Hitchens (HiTCHO) > Cc: PHP

Re: [PHP] How to detect a PHP script time-out?

2003-01-08 Thread Jean-Christian Imbeault
Tamas Arpad wrote: That's not right now. The manual is outdated. See this bug report http://bugs.php.net/bug.php?id=15209. This behavior was changed from 4.06 to 4.1. In newer versions of php the registered functions will run before the connection is closed so ouptput can be done from there as

Re: [PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
Matt Vos wrote: What is the ASCII value of an EOF? Find that and use For the benefit of those reading this in the future the value is 4, so use chr(4); Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to detect a PHP script time-out?

2003-01-08 Thread Jean-Christian Imbeault
Robert Fisher wrote: If you are willing to do a rewrite, then have your main script start a fork, or child process. According to Arpi (see below) I can use register_shutdown(), as the docs are wrong and it *will* send output to the browser *before* the connection is closed. Jc >Tamas Arpad

[PHP] OpenSSL integration

2003-01-08 Thread Jonathan Lassoff
I wish to integrate a secure HTTP tunnel into an existing PHP application I am working on. I am having a hard time understanding the PHP.net OpenSSL documentation. Any pointers, or refrences would be really helpful. Source is at http://harrisdracon.dyndns.org/phpcode/hw.src -- Jonathan Lassoff

[PHP] Re: How to strip extra characters off of a string

2003-01-08 Thread Jean-Christian Imbeault
[EMAIL PROTECTED] wrote: I need to be able to just extract the number that is right Under blocks in this example it is the number 57070. This was generated by the quota -g groupname command. Disk quotas for group site53 (gid 165): Filesystem blocks quota limit grace files quota

[PHP] problem with location???

2003-01-08 Thread Ysrael Guzmán
give a idea please. This is correct? location.href="page.php?&cliente=$cli"; Ysrael Guzmán Meza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] problem with location???

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Hmm "language" !!! languaje Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Ysrael Guzmán [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 12:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] problem with location??? > >

[PHP] Different php.ini for each user on same server

2003-01-08 Thread SED
Is it possible to define a different php.ini for each user which use the same server, either Unix and Windows. Let me give you example what I mean: User 1 (professional PHP-user) Allow him big uploads, long execution time etc. Virtual directory www.user1.com User 2

RE: [PHP] Different php.ini for each user on same server

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
You can set php_value and php_flags etc inside of the virtual host def in httpd.conf etc Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: SED [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 1:10 PM > To: [EMAIL PROTEC

RE: [PHP] Different php.ini for each user on same server

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Please keep it on list and (reply to all) as it assist everyone then!! Check out: http://www.php.net/manual/en/configuration.directives.php As a starting point!! Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: SED [mailto:[EMAI

RE: [PHP] Different php.ini for each user on same server

2003-01-08 Thread SED
Maybe I'm little bit slow today but I already look into this document. What paragraph should I focus better on? What I'm looking for is *how to* refer to a different php.ini in each case. Thanks, SED -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: 9. j

[PHP] Re: problem with location???

2003-01-08 Thread Jean-Christian Imbeault
Ysrael guzmán wrote: This is correct?
location.href="page.php?&cliente=$cli";
You have one small mistake here:

RE: [PHP] Different php.ini for each user on same server

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
What you need to do is have a base php.ini and in each virtual you have the specific eg: # your vitual host DocumentRoot /www/docroot/first/ ServerName dummy.yourdomain.com php_admin_value disable_functions 'mysql_connect' php_admin_value sendmail_path '/usr/sbin/

Re: [PHP] Stumped...

2003-01-08 Thread Stephen
Ok, I decided another easier way to do it but I have a problem now. Since the text field contains a $ sign, PHP wants to take it as a variable so it prints out nothing... Here's my code for getting the value to import into the table: $variable = ''; for($i = 1; $i <= $vars; $i++) { $tempv

RE: [PHP] Stumped...

2003-01-08 Thread Sean Malloy
Don't write code which requires register_globals to be on. $variable = $_POST['$var']; -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 3:03 PM To: Timothy Hitchens (HiTCHO) Cc: PHP List Subject: Re: [PHP] Stumped... Ok, I decided another easie

Re: [PHP] $query help :(

2003-01-08 Thread Jason Wong
On Thursday 09 January 2003 08:07, - \[ Paul Ferrie \] - wrote: > Hi again guys i have run into another problem :( > > i am trying to build a user poll (flash+php+mysql) > I have the interface all sorted but i have a problem with my add new poll > php file. > When i hit the update poll button in fl

RE: [PHP] Stumped...

2003-01-08 Thread Sean Malloy
Please note the single quotes. Using double quotes: $variable = $_POST["$var"]; will not work, because you don't have a variable named $var in your code. Have a look at http://www.php.net/manual/en/language.types.string.php -Original Message- From: Sean Malloy [mailto:[EMAIL PROTEC

[PHP] float precision

2003-01-08 Thread Kevin Avila
Greetings, I'm having a weird issue with float precision. I am decrementing the value of a float by 0.1. The problem is when the float I am working with reaches 0.1 and I decrement it again I get 1.e09 instead of the expected 0.0. This was also confirmed by a user in #php. Anyone have any ide

Re: [PHP] float precision

2003-01-08 Thread Jason Wong
On Thursday 09 January 2003 12:33, Kevin Avila wrote: > Greetings, > > I'm having a weird issue with float precision. I am decrementing the > value of a float by 0.1. The problem is when the float I am working > with reaches 0.1 and I decrement it again I get 1.e09 instead of the > expected 0

[PHP] Databases vs. File Access

2003-01-08 Thread Erich Kolb
I am going to be dealing with a ton of data shortly and my goal is to make it accessible via the web. I am curious about the performance differences between using a database or leaving the data in the individual files they originated in. Can anyone offer any recommendations? -- PHP General Mai

Re: [PHP] Re: Dynamic Regex

2003-01-08 Thread Gerard Samuel
What you suggested is what I was trying before. My original example was incorrect. Here is an good example for the variable holding the pattern -> $foo = '/\[url\]([a-z]+://.*?)\[/url\]/'; This pattern would not work, but if I change it to $foo = '#\[url\]([a-z]+://.*?)\[/url\]#'; It does work.

Re: [PHP] Re: Dynamic Regex

2003-01-08 Thread Greg Beaver
hi Gerard, I didn't think you were complaining :) the problem is in [/url] $foo = '/\[url\]([a-z]+://.*?)\[/url\]/'; should be $foo = '/\[url\]([a-z]+://.*?)\[\/url\]/'; that "/" was ending the pattern, and so preg_* was trying to read "url\]/" as closing information, and probably giving an o

[PHP] session_destroy problem

2003-01-08 Thread Ken Nagorski
Hi there, I have written a class that manages sessions. I have never used sessions before so all this is new to me. Everything works fine as far as starting the session and logging in however when I call sessoin destroy it doesn't seem to work the function returns 1 as it should if all goes well h

[PHP] Re: Databases vs. File Access

2003-01-08 Thread Jean-Christian Imbeault
Erich Kolb wrote: I am going to be dealing with a ton of data shortly and my goal is to make it accessible via the web. I am curious about the performance differences between using a database or leaving the data in the individual files they originated in. Can anyone offer any recommendations?

[PHP] Segmentation fault and var_dump()

2003-01-08 Thread Rob Brandt
Hello; I'm getting a segmentation fault and I don't understand what it means. Kind of new to php debugging. Background: Web server is generally error free. I have some complex php/MySQL applications installed. I'm running it under YellowDogLinux with php v4.23. I'm trying to install a CVS ver

Re: [PHP] Re: Dynamic Regex

2003-01-08 Thread Gerard Samuel
Made sense. Thanks for your help. Greg Beaver wrote: hi Gerard, I didn't think you were complaining :) the problem is in [/url] $foo = '/\[url\]([a-z]+://.*?)\[/url\]/'; should be $foo = '/\[url\]([a-z]+://.*?)\[\/url\]/'; that "/" was ending the pattern, and so preg_* was trying to read

Re: [PHP] session_destroy problem

2003-01-08 Thread Gerard Samuel
In my code, I usually dump session data before calling session_destroy() like -> $_SESSION = array(); // Now its empty session_destroy(); // Then call session destroy. Works for me. Ken Nagorski wrote: Hi there, I have written a class that manages sessions. I have never used sessions before

[PHP] Advice

2003-01-08 Thread cj
G'day all I have a web page were users can upload and downloads files. When they go to download a file A list of files they can download is displayed and a check box next to each file name and a button, with which the users can click to download the selected file. What I would like to know what w

[PHP] aggregation users?

2003-01-08 Thread Greg Beaver
Is anyone out there using the new aggregation functions on objects? Greg -- phpDocumentor http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Databases vs. File Access

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
My 2 cents would be use a database and templates then create cached static versions of the pages on the first request and then when you need to changes things it is just a simple change the template and you a whole new look without the issue of performance. Make that 5 cents worth!! Timothy Hit

[PHP] XML File does not reflect changes upon reopen - HELP

2003-01-08 Thread Phil Powell
if ($isValid) { $cgi = '/cgi-bin'; if (strpos($HTTP_HOST, 'dyndns') === false) $cgi .= '/cgiwrap/ppowell'; $fileID = fopen("http://$SERVER_NAME$cgi/pollinsert.cgi?pollID=$pollID&answerID=$answerID&valIdentifier="; . urlencode($valIdentifier) . "&lastPollResultsID=" . ($pollResultsArr

[PHP] Connection pool extension?

2003-01-08 Thread Vinod Panicker
Hi, I was wondering if there is a php extension available that allows me to do the following - 1. Connect to a given IP address and port 2. Allow me to send and receive data from a particular ip and port 3. Pool the connections so that further requests to the given ip and port will

RE: [PHP] Connection pool extension?

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
PHP supports sockets check out: http://www.php.net/manual/en/ref.sockets.php Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Vinod Panicker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 5:31 PM > To: [EMAIL PROTECT

RE: [PHP] Connection pool extension?

2003-01-08 Thread Vinod Panicker
Hi, Thanks for the quick response - I am aware of PHP's support for sockets, but since I cant store persistent connection information in a PHP script I was looking out for a module Tx, Vinod. --- Vinod Panicker <[EMAIL PROTECTED]> Sr. Software Designer Geodesic In

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Jason Wong
On Wednesday 08 January 2003 17:28, Jean-Christian Imbeault wrote: > Marek Kilimajer wrote: > > $result = `echo | /path/prog $arg`; > > > > should work > > That didn' work ... don't know why. > > Isn't there a way to say echo "EOF"? > > There must be a way to specify the ascii or hex value for EOF

Re: [PHP] uid checked by file_exists()

2003-01-08 Thread Emmanuel.Leguy
Timothy Hitchens ) wrote: Have you checked your php.ini for a safe mode setting to true/on ?? Of course yes. I tried to use the safe_mode_gid directive too. Without any effect. Thanx, Emmanuel. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Adding HTTP URL Code

2003-01-08 Thread Justin French
I think the reason you didn't get a reply is because no one could understand what you wanted to happen my guess is... You need a regular expression to turn URLs in a string into links. So that this: --- This is a test. It is only a test. What happens when I include a URL in my results text?

<    1   2