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] 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

[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

[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

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] 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

[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

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

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

[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

[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] 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

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

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.

[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] 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] 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] 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

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
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] 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] 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/

[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 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

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 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

[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] 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] 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

[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] 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

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

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
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] 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 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 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'"

[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] 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] 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] 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] 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 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

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

[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.

[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.

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

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

[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] $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]

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

[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

[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 = '#\

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?

[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

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

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

[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] How Do I Return Values Across Servers

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Issue you have is that if it is on another server you must you a http etc transport to get it!! Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Bill Arbuckle, Jr. [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 9:38 A

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

2003-01-08 Thread Tom Rogers
Hi, Thursday, January 9, 2003, 7:31:35 AM, you wrote: PH> Hi everyone, I am new to this list, so this is my first post. PH> I am trying to sen dan HTML email, and so far I got everything running, PH> except for one very odd problem. PH> 1.) I am setting up all my variables within the .php Script

RE: [PHP] How Do I Return Values Across Servers

2003-01-08 Thread Bill Arbuckle, Jr.
Yes, I want to get a value from a script on Server A that runs against a database on Server A, returning that value to a script variable on Server B. I read the manual but must have missed something. This is what *seemed* as if it should work: Server A (containing functions and database) qotd.ph

Re: [PHP] strange problem (user poll)

2003-01-08 Thread Kevin Stone
I have no idea what I did but this email was not supposed to go to the list.. my apologies. *LOL* -Kevin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 4:18 PM Subject: Fw: [PHP] strange problem (user poll) > [EMAIL

Fw: [PHP] strange problem (user poll)

2003-01-08 Thread Kevin Stone
[EMAIL PROTECTED] It would help to know where $action is being defined. - Original Message - From: "- [ Paul Ferrie ] -" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 3:43 PM Subject: [PHP] strange problem (user poll) > Can anyone see a problem in this?

[PHP] Re: strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
Sorry guys ingore the post, i have narrowed the problem down to a problem with posting the vairables from flash. cheers "- -" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can anyone see a problem in this? When i run the script i am getting this > error "Noti

RE: [PHP] read javascript variable php?????

2003-01-08 Thread Bill Arbuckle, Jr.
location.href="" should work ... hth ... Bill -Original Message- From: Ysrael Guzmán [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:30 PM To: [EMAIL PROTECTED] Subject: [PHP] read javascript variable php? example: location.href="$destination"; or location.href="";

RE: [PHP] strange problem (user poll)

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
You need to check like this: if (isset($action) && $action == 'add') AND if it is 4.1 + and global vars are turned off?? if (isset($_GET['action']) && $_GET['action'] == 'add') ** The above will need to changed if it is POST in the above example!! Timothy Hitchens (HiTCHO) Open Platform Consu

Re: [PHP] strange problem (user poll)

2003-01-08 Thread Martin Hudec
Hello Paul, well problem is this: you don't have defined variable $actionmaybe you are not posting it correctly from form...what is on first 12 lines? try to add $action="value"; on line 12...just define any suitable value... -- Best regards, Martin mail [EMAIL P

RE: [PHP] How Do I Return Values Across Servers

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
If I understand you want to be able to get a value from a script on another server. Well I would suggest a really each way would be to do have the calling server call a script on the supplying server using include(); which is supported but please see this page regarding URL fopen wrappers: http:/

[PHP] strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
Can anyone see a problem in this? When i run the script i am getting this error "Notice: Undefined variable: action in C:\www\Apache2\htdocs\user_poll\2\addpoll.php on line 13" Could not insert poll\n"; } else { print "Poll added\n"; } mysql_close($link); } ?> please anyone

[PHP] read javascript variable php?????

2003-01-08 Thread Ysrael Guzmán
example: location.href="$destination"; or location.href=""; or echo "location.href='", $destino, "';"; PLEASE GIVE A IDEA Ysrael Guzmán Meza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How Do I Return Values Across Servers

2003-01-08 Thread Bill Arbuckle, Jr.
This may be a no-brainer for everyone but me but ... I have several php scripts residing on a web site on Server A. In a library file on Server A are misc. functions, some of which query an underlying database and return a text string as the result. On another web site on Server B I would like to

[PHP] Submit Form

2003-01-08 Thread Stephen
Hello,   I have a question. First of all, I want to save the data a user has typed in a form into a MySQL database so they can load it up for later use but, I need to first submit all the form vars on the current page from a link. This may be _javascript_, but either way, I'm not sure how to

Re: [PHP] Re: Double entry into MySQL..

2003-01-08 Thread Altug Sahin
Is this a php.ini or apache setting? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You should be able to get around it also by checking > if $_SERVER[REQUEST_METHOD]=='HEAD' > > Timothy Hitchens (HiTCHO) wrote: > > >When they first click on t

RE: [PHP] Adding HTTP URL Code

2003-01-08 Thread Chris Wesley
On Wed, 8 Jan 2003, ELLIOTT,KATHERINE A (HP-FtCollins,ex1) wrote: > OK, so I've gotten NO responses to my query below so I > thought I'd ask for something slightly different and see what > I get. The follow-up inquery makes much more sense than the original ;) > If I have a bunch of plain text d

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

2003-01-08 Thread Philipp Hartmann
Hi everyone, I am new to this list, so this is my first post. I am trying to sen dan HTML email, and so far I got everything running, except for one very odd problem. 1.) I am setting up all my variables within the .php Script. 2.) I generate my HTML email 3.) I am outputting the email to the bro

[PHP] fast template over xsl

2003-01-08 Thread electroteque
hi i am considering the move from fast template to xslt , is there any benifits for this ? also is there a way to intergrate xsl like fast template ie parse rows in the php script -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding HTTP URL Code

2003-01-08 Thread Jason Wong
On Thursday 09 January 2003 04:07, ELLIOTT,KATHERINE A (HP-FtCollins,ex1) wrote: > OK, so I've gotten NO responses to my query below so I > thought I'd ask for something slightly different and see what > I get. With regards to your original query, the answer is in the archives. Try searching for

Re: [PHP] ftp_put: permission denied

2003-01-08 Thread Thomas Seifert
it may be, that destiny is wrong. the error-message tells that you don't have access to where you are trying to upload the file to. Thomas On Wed, 08 Jan 2003 20:59:02 +0100 [EMAIL PROTECTED] (Oliver Witt) wrote: > I uploaded that script with a common ftp program on my server in the > internet

Re: [PHP] How can I redirect to another php page

2003-01-08 Thread Rick Emery
header("location: nextpage.php"); the above must be sent before any other text is output - Original Message - From: "Teo Petralia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 2:46 PM Subject: [PHP] How can I redirect to another php page Hi All! I would

Re: [PHP] unlink ($files);

2003-01-08 Thread Jason Sheets
That will usually work on Unix but will not work on Windows. Rather than executing an external program you can use PHP itself to do a recursive delete. There are examples at http://www.php.net/manual/en/function.rmdir.php if you read the user notes you will see several posts about doing this. Jas

Re: [PHP] How can I redirect to another php page

2003-01-08 Thread Tom Ray
You could use an include statement in one of two ways. 1) you can just include the page that you want to show, however the url doesn't change it will still be select.php 2) if you want to sent them to yellow.php or green.php you could include an html page that had a meta-refresh in it set for 0 sec

Re: [PHP] How can I redirect to another php page

2003-01-08 Thread Kevin Stone
http://groups.google.com/groups?num=30&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&; q=url+redirect+php -Kevin - Original Message - From: "Teo Petralia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 1:46 PM Subject: [PHP] How can I redirect to another php page >

Re[2]: [PHP] Img src CORRECTION

2003-01-08 Thread Martin Hudec
Hello Sean, oh i must correct myself ;)) . or try to use this: print ""; or just print ""; looks like u have error here: print ""; ^ ^^ ^ - use \ before " ^^- no need to use both \ and " remove those two characters or try this y

Re[2]: [PHP] Img src

2003-01-08 Thread Martin Hudec
Hello Sean, or try to use this: print ""; or just print ""; ^ ^^ ^ - use \ before " ^^- no need to use both \ and " remove those two characters or try this your php ?> " width=104 height=137> http://www.corwin.sk PGP key fingerprint

Re: [PHP] Img src

2003-01-08 Thread Sean Burlington
Ezequiel Sapoznik wrote: I am having a parse error in the following sentence: print ""; it would help if you posted the actual error message ! but try this ... print ''; or print ""; -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] How can I redirect to another php page

2003-01-08 Thread Teo Petralia
Hi All! I would like to redirect the user to another php page accordingly to his/her chosen options, example: if ($Color == "Yellow") { go to page else if ($Color == "Green") go to page } Does anyone knows how to achieve the goal?? Thanks Teo -- PHP General Mailing List (http://www.p

RE: [PHP] Adding HTTP URL Code

2003-01-08 Thread ELLIOTT,KATHERINE A (HP-FtCollins,ex1)
OK, so I've gotten NO responses to my query below so I thought I'd ask for something slightly different and see what I get. If I have a bunch of plain text data, how can I pull out the strings containing "http". I've tried several different things but what I end up with is more or less than what

Re: [PHP] ftp_put: permission denied

2003-01-08 Thread Oliver Witt
I uploaded that script with a common ftp program on my server in the internet. FOr the host, user and pw, I use the same data as I use to log in with my ftp program. So the mistake can't be there. This is how that script basically works: It didn't work";} else { echo "It did work";} ftp_quit($conn

RE: [PHP] Re: Need a suggestion on developing a php-related system

2003-01-08 Thread Kelvin Poon
HI, Thanks for all the suggestions. I guess I should have given a more detail description. My employer have just provided me with some background information of the setup: Our data come in mostly automatically by FTP on to our Vax, then eventually moved on to our R30 (RS6000/AIX) and then H

RE: [PHP] ftp_put: permission denied

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Using ftp_login() ?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Oliver Witt [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 5:30 AM > To: [EMAIL PROTECTED]; Timothy Hitchens ) > Subject: Re: [PHP] ftp_put: permis

Re: [PHP] ftp_put: permission denied

2003-01-08 Thread Oliver Witt
"Timothy Hitchens )" schrieb: > I am assuming you have testing from a desktop client. > > Are you sure that the PHP script has been logged in?? > > Can you see via a log file of the successful authentication?? > I logged in using the same information as I used to upload that script. if ((!$conn_

RE: [PHP] anyway to do a 'whos online' from session variable?

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
If you use a database for session management you have total control over when and what is garbage collected and therefore extend / delete whatever anytime you want. Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Jeff Bluemel [mai

Re: [PHP] anyway to do a 'whos online' from session variable?

2003-01-08 Thread Jeff Bluemel
ok - let me take that a step further - if I store the SID in the table also are the files in the /tmp directory stored with the SID? if they are this may be a way I can delete out inactive session, but be able to allow extended inactive sessions for users who may be pulling lengthy reports... "T

RE: [PHP] apache + mod_php question

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
use: apachectl graceful It will reload the config's and allow operation to continue!! See apachectl (help) start - start httpd stop - stop httpd restart- restart httpd if running by sending a SIGHUP or start if not running fullstatus - dump a full status screen; requi

[PHP] apache + mod_php question

2003-01-08 Thread Hugh Beaumont
Hello, I have searched the archives and not been able to find the solution to the following problem. I would be very grateful if someone here could help or provide some pointers. The basic problem is this: Our apache server will not start if there are system processes running that were spawned

[PHP] fletcher's checksum

2003-01-08 Thread Dave Gervais
Does anybody know how to implement the 8 and 16 bit versions of Fletcher's checksum using PHP? I hit google and came up dry. It's easy enough to find how to do it in C, but PHP if a different story. I know there are plenty of perfectly good checksum options that are standard in PHP, but I'm for

Re: [PHP] Rookie mail() q's .. can't find answer after RTFM...

2003-01-08 Thread -<[ Rene Brehmer ]>-
Hi Sean Burlington, et al ... Sorry for the slow response, been really sick lately ... Just wanted to thank y'all for offering h & s. Ended up doing it with hidden fields ... also made it a bit easier to make the validation script put the info back into the form ... After testing things out I ac

RE: [PHP] ftp_put: permission denied

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
I am assuming you have testing from a desktop client. Are you sure that the PHP script has been logged in?? Can you see via a log file of the successful authentication?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Oliver Wi

[PHP] ftp_put: permission denied

2003-01-08 Thread Oliver Witt
Hi, I am running a really simple php script to upload files on my server via ftp. But it always return this warning: ftp_put(): Permission denied I can't have to do anything with CHMOD can it? I mean it's ftp!! I don't know what else it is but I guess it's a pretty common problem. Thx for any help,

[PHP] PHP 4.3.0 with Oracle

2003-01-08 Thread José Manuel Valente
Hy Guys, I´m a newby here. I´am trying to compile PHP 4.3.0 with Oracle support. When it compiles oci8.c , it returns an error, like follows: /bin/sh libtool --silent --mode=compile gcc -Iext/oci8/ -I/usr/src/php-4.3.0/ext/oci8/ -DPHP_ATOM_INC -I/usr/src/ph p-4.3.0/include -I/u

  1   2   >