Re: [PHP] Sending variables help

2002-11-21 Thread Jason Wong
On Friday 22 November 2002 15:44, Kris wrote: > Hi All > > I want to send variables from one page to another page. > How can I go about this??? > > I don't want to use a form. Or if using a form I don't want the user to > have to hit the submit button. Use sessions, or pass the variables around vi

Re: [PHP] sessions and trans-sid problem/question

2002-11-21 Thread Justin French
PHP cannot possibly know when a user closes a window... PHP regularly "cleans out the garbage" of old abandoned sessions, but you cannot expect this instantly... the only way to kill a session is to kill it on the server with session_destroy(), which will require the user to access a "logout" scri

[PHP] Sending variables help

2002-11-21 Thread Kris
Hi All I want to send variables from one page to another page. How can I go about this??? I don't want to use a form. Or if using a form I don't want the user to have to hit the submit button. Thanks Kris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] sessions and trans-sid problem/question

2002-11-21 Thread Jean-Christian Imbeault
Justin French wrote: I know that for IE Mac users (not sure about NN7) it's not until you QUIT the application that the session is "terminated"... I *think* you'll find something similar in Windows... perhaps when ALL open browser windows are closed and/or the browser app is QUIT, the session wi

Re: [PHP] Getting info from users comp?

2002-11-21 Thread Ernest E Vogelsinger
At 04:29 22.11.2002, @ Edwin said: [snip] >True. But I think you missed one thing--I wasn't even talking about your >browser. ;) > >I said, "programs" that was "run on the users' pc". You don't even need a >browser for this :) [snip]--

Re: [PHP] test

2002-11-21 Thread Ernest E Vogelsinger
At 03:58 22.11.2002, Joseph Watson said: [snip] >test [snip] you succeeded... -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Jason Wong
On Friday 22 November 2002 08:35, Xin Qi wrote: > RE: [PHP] how can php get the values of a group of checkboxbut the question > is how to determine the times of loop? the upper bound is hard to find. and > the loop does cost time though it is not so much. If you have made the checkbox values int

Re: [PHP] sessions and trans-sid problem/question

2002-11-21 Thread Justin French
on 22/11/02 4:57 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: > I've made a site in PHP and on some pages a user needs to log in first > before gaining access to the page. (i.e. there is a log in page). > > Once the user has logged in I keep that fact in a session variable so > that he

[PHP] sessions and trans-sid problem/question

2002-11-21 Thread Jean-Christian Imbeault
I've made a site in PHP and on some pages a user needs to log in first before gaining access to the page. (i.e. there is a log in page). Once the user has logged in I keep that fact in a session variable so that he doesn't need to log in again. However I have found out that if: 1- the user log

Re: [PHP] sockets

2002-11-21 Thread Chris Shiflett
I'm not sure if it would be helpful, but I wrote a quick PHP socket application that implements a specialized HTTP proxy. It's a quick hack of sorts, but I have found it to be very stable, and it uses the latest sockets API. It consists of only one small PHP script, and it's fairly well commented.

Re: [PHP] ImageCreateFromJpeg error

2002-11-21 Thread Scott Nagel
Thanks for the help. Didn't know about the ini_set() function. The error was 'No JPEG support in this PHP build'. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On Friday 22 November 2002 03:21, Scott Nagel wrote: > > I am trying to use the following piece of co

[PHP] Re: help needed with forms

2002-11-21 Thread Manuel Lemos
Hello, On 11/21/2002 07:28 PM, Pushpinder Singh Garcha wrote: I am using php based forms, which collect information from the client and send it in the form a email message to the admin. I need to start using validation i.e. check whether some field/s has been correctly entered in the from. My

[PHP] Problems in installing SSL engine

2002-11-21 Thread ªüYam
Configured for Mingw32. Generating x86 for GNU assember Bignum DES crypt Blowfish CAST5 RC4 MD5 SHA1 RIPEMD160 RC5\32 Generating makefile Generating DLL definition files Building OpenSSL copy .\crypto\buildinf.h tmp\buildinf.h 1 file(s) copied. copy .\crypto\opensslconf.h outinc\openssl\ope

Re: [PHP] FTP_SITE and FTP_EXEC prob

2002-11-21 Thread @ Edwin
Hello, "António Godinho" <[EMAIL PROTECTED]> wrote: [snip] > Here's the code: > ftp_exec($conn_id,"site chmod 755 /home/to/public_html/index.php"); > > I tried with ftp_exec and ftp_site, any advice? [/snip] Have you tried it without the word "site"? Like: ftp_exec($conn, "chmod... "); Have

[PHP] sockets

2002-11-21 Thread Gareth Thomas
Hi, I realise that sockets is still 'experimental' but any help will be much appreciated. I am developing a queue system to send commands across from a server to a client using sockets. Problem is that the I keep getting a 'connection reset by peer' error after the first command is sent. The serve

Re: [PHP] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-21 Thread @ Edwin
Hello, "-<[ Rene Brehmer ]>-" <[EMAIL PROTECTED]> wrote: > I've run into something I don't understand... > > This is my test code: > > $premieredag = > array("2002-11-22","2002-11-29","2002-12-06","2002-12-18"); > $d20021122 = array("001"); > $d20021129 = array("002","003","004"); > $d2

Re: [PHP] Getting info from users comp?

2002-11-21 Thread @ Edwin
Hello, "-<[ Rene Brehmer ]>-" <[EMAIL PROTECTED]> wrote: > Hi @ Edwin, > > On Wed, 20 Nov 2002 01:24:18 +0900, you wrote about "Re: [PHP] Getting > info from users comp?" something that looked like this: > > >> And if its not possible with PHP, what language then? > > > >I don't think this is pos

Re: [PHP] help needed with forms

2002-11-21 Thread @ Edwin
Hello, "Van Andel, Robert" <[EMAIL PROTECTED]> wrote: > Sounds like JavaScript would be the answer here. You can use a javascript > function to validate the form before it is even submitted. Yes, perhaps. But people can turn off JavaScript so you might want to use JavaScript AND PHP to validate

[PHP] test

2002-11-21 Thread Joseph Watson
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Preg_replace question

2002-11-21 Thread Justin French
I've been down the road of attempting to do this with regular expressions... i'm no expert, but i work with people who are, and it was a nightmare given that the following are common/valid href=something.php href = 'something.php' href='something.php' href = "something.php" href="something.ph

[PHP] cURL and PHP

2002-11-21 Thread Joseph Watson
Hello, I have been all over the documentation at both php's website and cURL's website, and just can't seem to dig up information on how to use the following: curl_setopt with the following options CURLOPT_SSL_VERIFYPEER CURLE_SSL_PEER_CERTIFICATE CURLINFO_SSL_VERIFYRESULT CURLE_SSL_

[PHP] FW: ScanMail Message: To Sender, sensitive content found and action taken.

2002-11-21 Thread John W. Holmes
This trend-smend content filter is friggin stupid. Someone should write another one. Where is the “dirty word” in this: > Is there a way to convert a date " 20/11/2002 " to a Float number in PHP, > since the date starts in 30/12/1899, just like the delphi treats the > dates Yeah, of course.

[PHP] RE: [PHP-DB] Help with Date

2002-11-21 Thread John W. Holmes
> Is there a way to convert a date " 20/11/2002 " to a Float number in PHP, > since the date starts in 30/12/1899, just like the delphi treats the > dates Yeah, of course. To convert "20/11/2002" into a float, just do echo (float)"20/11/2002"; and you get 20!! Or you can use strtotime() to

RE: [PHP] Which is faster?

2002-11-21 Thread John W. Holmes
> I'm wondering which is faster, eregi('[A-Z]',$variable); or > ereg('A-Za-z',$variable);? Well, you're not even matching the same thing, for one... And, second, why not read this page, www.php.net/microtime so you can do your own testing in the future? They run about the same in my tests, assum

RE: [PHP] PHP Coding HELP

2002-11-21 Thread John W. Holmes
> Users can upload their files, but the files they upload can only be > downloaded X amount of times. After they've been downloaded so many times > in > an ideal world they'd be automatically removed, though just to be made so > people couldn't download them anymore would be great. You need a down

RE: [PHP] File Uploads

2002-11-21 Thread John W. Holmes
> I just wanted to know if there was a way to control the owner of the new > file because when iupload files the owner is set to httpd which means that > I > can't access the file properly. Not much you can do about it, if PHP is running as a module. If it's CGI, then I think you can set it up so

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Xin Qi
RE: [PHP] how can php get the values of a group of checkboxbut the question is how to determine the times of loop? the upper bound is hard to find. and the loop does cost time though it is not so much. - Original Message - From: Van Andel, Robert To: Xin Qi ; [EMAIL PROTECTED]

Re: [PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
At 11/21/2002 06:21 PM, Bret L Conard wrote: one of these should work to import the file The following options expect a file descriptor that is obtained by using the fopen() function: CURLOPT_FILE: The file where the output of your transfer should be placed, the default is STDOUT. CURLOPT_INFILE

RE: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Van Andel, Robert
Use an array (checkbox[1], checkbox[2]). Then use a loop to pull get the data after posting. If you expect only one choice, use a radio button. Robbert van Andel -Original Message- From: Xin Qi [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:54 PM To: Van Andel, Robert;

RE: [PHP] GD : Black background with imagecreatetruecolor

2002-11-21 Thread Van Andel, Robert
Testing Robbert van Andel -Original Message- From: Arnaud [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:22 PM To: [EMAIL PROTECTED] Subject: [PHP] GD : Black background with imagecreatetruecolor Hi everyone, I'd like to use "imagecreatetruecolor" function in order to

Re: [PHP] ImageMagick Extension v0.2a Released (UPDATED)

2002-11-21 Thread Weston Houghton
I had no idea anyone was actively working on something like this. Are you looking for help? Do you plan on perhaps making this a Sourceforge project, or something similar? Cheers and great job, Wes On Thursday, November 21, 2002, at 05:56 PM, Michael Montero wrote: Just released the next ve

[PHP] How do I initialize a page to do something ONCE

2002-11-21 Thread @ Nilaab
Hello, I have a newbie problem. I have an php page that has many layers of forms to it. Once the user is finished with filling out one form and sending it, another form appears. This is of course done using simple if-else or switch statements. The problem is, how do I initialize a function or any

[PHP] File Uploads

2002-11-21 Thread James \\Cook
I have created a php file to handle file uploads. It very simple without any bells or whistles. I just wanted to know if there was a way to control the owner of the new file because when iupload files the owner is set to httpd which means that I can't access the file properly. My code is as foll

Re: [PHP] No Reply From cURL

2002-11-21 Thread Bret L Conard
>>//My responses are delimited with | (pipe) >>$parts = explode("|", $resp); //creates array from reponse >Where are you setting this? How I set up at Authorize.net didn't expect yours to be... one of these should work to import the file The following options expect a file descriptor that is obt

Fwd: RE: [PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
At 11/21/2002 05:16 PM, Jonathan Rosenberg wrote: > I suspect your problem is that CURL is not built with SSL support. To test > this, replace the https:/.../ with a reference to a non-SSL URL > (http://.../). If you get a return that, you need to build CURL with SSL > support. Indeed it does.

Re: [PHP] PHP Coding HELP

2002-11-21 Thread Ray Hunter
If you have a database this would be easier... Here is what u can do: 1. Create a form that allows them to upload files to your php server. 2. Then you can store the files in a database and have a field that has a value that is how many times it can be downloaded. 3. Then a page that allows users

RE: [PHP] HTML page and php

2002-11-21 Thread @ Nilaab
There are several ways you can do this. The easiest way is to include the file like this: include("path_for_html_file"); You can place this line wherever you need the html file included. See the include() function on php.net for more info. If, instead, you want to capture the html file and do some

[PHP] ImageMagick Extension v0.2a Released (UPDATED)

2002-11-21 Thread Michael Montero
Just released the next version of magick, the PHP ImageMagick extension. It is located here: http://apc.communityconnect.com/magick/magick-0.2a.tar.gz Here's the ChangeLog: November 21, 2002 0.2a o functions added: magick_rotate() magick_shear()

[PHP] PHP Coding HELP

2002-11-21 Thread Vicky
Hello! I am looking to find or code a script that does the following. If anyone could help I'd be extremely greatful. Users can upload their files, but the files they upload can only be downloaded X amount of times. After they've been downloaded so many times in an ideal world they'd be automatic

[PHP] Order of arrays

2002-11-21 Thread Mako Shark
I don't think a simple sort() will do this. Is there a way I can sort these following array values so that all will be in numerical order, and then alphabetical after that? I need Dirfiles/97 Dirfiles/98 Dirfiles/99 Dirfiles/100 Dirfiles/101 Dirfiles/102 Dirfiles/ABG1 Dirfiles/ABG2 in that order.

Re: [PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
At 11/21/2002 03:18 PM, Bret L Conard wrote: Really appreciate the help Bret. But I've still got some problems: (FYI - I am using authorize.net, so some of the response parameters may be different for you) Actually, I appreciate the fields demonstration because it made me realize I was missin

RE: [PHP] Re: Cleaning up MSWord HTML

2002-11-21 Thread Jonathan Rosenberg \(Tabby's Place\)
Microsoft provides a program that will do just that. I believe that it gets loaded into Word & you run it from there. If this will suffice, take a look for it on Microsoft's site. If you can't find it, let me know. I once downloaded it & can probably dig up a URL for you. -- JR > On Thu, 21 N

[PHP] Re: copying tables

2002-11-21 Thread lastnumberone
what about dump the table then modify the sql file to create another table? "Steve Buehler" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Using PHP and MySQL. > I have looked and can't find the answer to this problem. What I am trying > to do is to copy a m

Re: [PHP] GD : Black background with imagecreatetruecolor

2002-11-21 Thread Arnaud
Yeah !!! It works Thanks Morgan Arnaud "Morgan Hughes" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > On Thu, 21 Nov 2002, Arnaud wrote: > > > Hi everyone, > > I'd like to use "imagecreatetruecolor" function in order to "cut and paste" > > JPG files on a white background

RE: [PHP] help needed with forms

2002-11-21 Thread Van Andel, Robert
Sounds like JavaScript would be the answer here. You can use a javascript function to validate the form before it is even submitted. Robbert van Andel -Original Message- From: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:28 PM To: [EMAIL PROTECT

RE: [PHP] No Reply From cURL

2002-11-21 Thread Jonathan Rosenberg \(Tabby's Place\)
I suspect your problem is that CURL is not built with SSL support. To test this, replace the https:/.../ with a reference to a non-SSL URL (http://.../). If you get a return that, you need to build CURL with SSL support. -- JR > -Original Message- > From: Steve Keller [mailto:[EMAIL PRO

[PHP] Re: Php search results

2002-11-21 Thread Philip Hallstrom
You could use strstr() to find the index location of the string searched for in FIELD. Then use substr() to return say 50 characters on either side... -philip On Thu, 21 Nov 2002, Daniel Masson wrote: > Hello everyone ... > > Im working on some kind of search engine for two little tables on tex

[PHP] Re: Cleaning up MSWord HTML

2002-11-21 Thread Philip Hallstrom
I don't know of a class that will do it out of the box, but take a look at some of the open source WYSIWYG web editors out there (there's one on source forge i know for sure)... some of them have a "clean html" button. Not sure how good they are since I didn't really look, but maybe by perusing se

Re: [PHP] Cleaning up MSWord HTML

2002-11-21 Thread Chris Boget
> Dreamweaver has a 'cleaning' utility for MSWord HTML. This is not a > programming solutiona nd I am pretty sure this is not what you are looking for > but thought I would mention it anyways. I'm aware of this possiblity. During my searches, it was the most oft suggested solution to this probl

Re: [PHP] Cleaning up MSWord HTML

2002-11-21 Thread jacob
Dreamweaver has a 'cleaning' utility for MSWord HTML. This is not a programming solutiona nd I am pretty sure this is not what you are looking for but thought I would mention it anyways. Quoting Chris Boget <[EMAIL PROTECTED]>: > I've done some searches on Google, PHPClasses.org, etc > for some

RE: [PHP] help needed with forms

2002-11-21 Thread Daniel Masson
My advice is USE JAVASCRIPT Cordialmente Daniel Massón => Ingeniero de desarollo [EMAIL PROTECTED] www.imagine.com.co Tels: (57)(1) 2182064 - 6163218 Bogotá - Colombia - Soluciones web para internet e intranet - Asesoría y So

Re: [PHP] Which is faster?

2002-11-21 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 $start = microtime(); for ( $x=0 ; $x<1000 ; $x++ ) eregi('[A-Z]',$variable); echo (microtime()-$start)."\n"; $start = microtime(); for ( $x=0 ; $x<1000 ; $x++ ) ereg('A-Za-z',$variable); echo (microtime()-$start)."\n"; - -- In this

[PHP] Dynamic results link generated in another frame

2002-11-21 Thread rw
I'm coming up on a challenge. I need to display results from a search in the main frame - not a problem. I also need to copy the generated "get" query to another frame, make it a link so the visitor can return to the original results with one click after surfing through myriad pages in the main fr

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Xin Qi
RE: [PHP] how can php get the values of a group of checkboxthank you, but what if all the checkboxes are generated dynamicly? I mean, I do not know how many checkboxes where will be until the php script generate the html page completely. if i have them unique names, it is kind of boring when php

[PHP] Php search results

2002-11-21 Thread Daniel Masson
Hello everyone ... Im working on some kind of search engine for two little tables on text fields on mssql, and the text fields can be very large fields, im doing the search with SELECT FIELD FROM TABLE WHERE FIELD LIKE '%SOMTHING%' .. My question is: When displaying the search results i dont wan

Re: [PHP] GD : Black background with imagecreatetruecolor

2002-11-21 Thread Morgan Hughes
On Thu, 21 Nov 2002, Arnaud wrote: > Hi everyone, > I'd like to use "imagecreatetruecolor" function in order to "cut and paste" > JPG files on a white background. It seems not to work correctly. This one bit me when I started working with GD 2.x as well. Simply draw a filled rectangle over y

[PHP] Which is faster?

2002-11-21 Thread Leif K-Brooks
I'm wondering which is faster, eregi('[A-Z]',$variable); or ereg('A-Za-z',$variable);? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-21 Thread -<[ Rene Brehmer ]>-
Hi Van Andel, Robert, Eh ... nope, that just made it worse ... Just going to restart windows and try again ... Apache and IE are totally screwed up now ... guess that's another way to kill WinXP... *s* Rene On Thu, 21 Nov 2002 15:21:50 -0600, you wrote about "RE: [PHP] echo'ing array contents t

RE: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Van Andel, Robert
Check boxes should not be given the same name. Radio buttons should to denote a grouping. In other words, if you want to have a bunch of radio buttons indicating a choice between items (say bananas, oranges, and apples), you would name them the same thing and give them each a different value. Ch

Re: [PHP] Cleaning up MSWord HTML

2002-11-21 Thread Jason Wong
On Friday 22 November 2002 05:28, Chris Boget wrote: > I've done some searches on Google, PHPClasses.org, etc > for something like what I'm trying to accomplish but have > had little luch. And since I don't want to reinvent the wheel > I thought I'd ask here. > Has anyone come across a piece of co

Re: [PHP] Cleaning up MSWord HTML

2002-11-21 Thread Chris Boget
> I've done some searches on Google, PHPClasses.org, etc > for something like what I'm trying to accomplish but have > had little luch. And since I don't want to reinvent the wheel > I thought I'd ask here. > Has anyone come across a piece of code that cleans up > the HTML created by MSWord when y

Re: [PHP] running php on apache 2 on windows??

2002-11-21 Thread -<[ Rene Brehmer ]>-
Hi Chris Edwards, I'm running PHP 4.2.3 on Apache 2.0.40 on WinXP Pro ... works troublefree ... except that Apache is very vulnerable when running on XP ... certain web'ed requests to it can cause Windows to hit a stop error ... Think I'm running it CGI though .. dunno ... completely green at thi

[PHP] GD : Black background with imagecreatetruecolor

2002-11-21 Thread Arnaud
Hi everyone, I'd like to use "imagecreatetruecolor" function in order to "cut and paste" JPG files on a white background. It seems not to work correctly. Here is my test scripts : This one works perfectly : I obtain a white image but using GD 2.x, the "imagecopy" function fails. This other sc

[PHP] Cleaning up MSWord HTML

2002-11-21 Thread Chris Boget
I've done some searches on Google, PHPClasses.org, etc for something like what I'm trying to accomplish but have had little luch. And since I don't want to reinvent the wheel I thought I'd ask here. Has anyone come across a piece of code that cleans up the HTML created by MSWord when you "Save As.

[PHP] help needed with forms

2002-11-21 Thread Pushpinder Singh Garcha
Hello I am using php based forms, which collect information from the client and send it in the form a email message to the admin. I need to start using validation i.e. check whether some field/s has been correctly entered in the from. My application consists of 2 php pages 1). info.php(thi

RE: [PHP] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-21 Thread Van Andel, Robert
The message should say: Perhaps the error lies in for ($n = 0; $i < count($$pdag); $n++) { You have $$pdag instead of $pdag. You also have it lower down in the code. -Original Message- From: Van Andel, Robert Sent: Thursday, November 21, 2002 1:10 PM To: -<[ Rene Brehmer ]>-; [EMAI

Re: [PHP] Getting info from users comp?

2002-11-21 Thread -<[ Rene Brehmer ]>-
Hi @ Edwin, On Wed, 20 Nov 2002 01:24:18 +0900, you wrote about "Re: [PHP] Getting info from users comp?" something that looked like this: >> And if its not possible with PHP, what language then? > >I don't think this is possible with a server-side language. But of course, >this in NOT impossible

Re: [PHP] MySQL-port question

2002-11-21 Thread Jason Wong
On Friday 22 November 2002 02:12, Jule Slootbeek wrote: > I have a problem, > i know this is not the MySQL mailinglist, but i hope you guys can help > me. > when i type mysqladmin variables the port comes up as 0 and doesn't let > people connect to my db remotely. > does anyone know why this proble

RE: [PHP] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-21 Thread Van Andel, Robert
Perhaps the error lies in for ($n = 0; $i < count($$pdag); $n++) { You have $$pdag instead of $$pdag. You also have it lower down in the code. Robbert van Andel -Original Message- From: -<[ Rene Brehmer ]>- [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:05 PM To: [EMA

Re: [PHP] OT-Laptops

2002-11-21 Thread Jason Wong
On Friday 22 November 2002 03:17, Edward Peloke wrote: > yes but I am looking for reviews... Well, OK, google -> "Sotec Laptop reviews". That wasn't too difficult was it ;-) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting

[PHP] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-21 Thread -<[ Rene Brehmer ]>-
I've run into something I don't understand... This is my test code: $premieredag = array("2002-11-22","2002-11-29","2002-12-06","2002-12-18"); $d20021122 = array("001"); $d20021129 = array("002","003","004"); $d20021206 = array("005","006","007"); $d20021218 = array("008","009"); for

Re: [PHP] ImageCreateFromJpeg error

2002-11-21 Thread Jason Wong
On Friday 22 November 2002 03:21, Scott Nagel wrote: > I am trying to use the following piece of code: > > $img_resized = imagecreate($img_new_width, $img_new_height); > $img_source = > ImageCreateFromJpeg($pa_strDocroot.$pa_strReadFold."/".$this->Name); > imagecopyresized($img_resized, $img_source

Re: [PHP] Script Question

2002-11-21 Thread Ray Hunter
this should be researched in the javascript archives: google -> groups -> javascript this is probably what you want var mytest = document.myform.myfield.value; if( mytest.toString() == "" ) alert( "No text in " + document.myform.myfield.name ); but i would suggest getting on that group

Re: [PHP] Client IP address

2002-11-21 Thread Ernest E Vogelsinger
At 21:16 21.11.2002, Ron Smith said: [snip] >I know this is probably easily solved, but I'm trying to locate the PHP >function which returns the client's IP address when they request a page >from the server. I'm having no luck searching the php.net function

Re: [PHP] Forgoten

2002-11-21 Thread Ernest E Vogelsinger
At 20:57 21.11.2002, Cesar Aracena said: [snip] >Warning: open(/tmp\sess_d25ead36103aaf410d8ad254d206ada3, O_RDWR) >failed: No such file or directory (2) in >C:\apache\htdocs\joyeriamara\admin\login.php on line 3 [snip]

Re: [PHP] Script Question

2002-11-21 Thread PHP List
Same problem, I still get an undefined error. > Try using the string functions. > > document.myform.mytextfield.value or something... > > On Thu, 2002-11-21 at 13:25, PHP List wrote: > > Hi, > > This is more of a Javascript question so please forgive. > > > > I generate a dynamic form with php. >

Re: [PHP] Script Question

2002-11-21 Thread Ray Hunter
Try using the string functions. document.myform.mytextfield.value or something... On Thu, 2002-11-21 at 13:25, PHP List wrote: > Hi, > This is more of a Javascript question so please forgive. > > I generate a dynamic form with php. > > I need to be able to test in javascript if a certain field

[PHP] Script Question

2002-11-21 Thread PHP List
Hi, This is more of a Javascript question so please forgive. I generate a dynamic form with php. I need to be able to test in javascript if a certain field exists: . . if (document.myform.mytextfield) { . . This line will give me the javascript error "document.myform.mytextfield is undefined"

Re: [PHP] No Reply From cURL

2002-11-21 Thread Bret L Conard
<-- snip -> Well, I'm glad to see someone else say that. Makes me feel less retarded. <-- snip -> Took me 3 weeks on and off and several handfulls of hair ; ) - Original Message - From: "Steve Keller" <[EMAIL PROTECTED]> To: <[EMAIL

Re: [PHP] Client IP address

2002-11-21 Thread Chris Shiflett
--- Chris Shiflett <[EMAIL PROTECTED]> wrote: > It's not a function, merely a variable. > > $REMOTE_ADDR Actually, $_SERVER["REMOTE_ADDR"] is better, as another poster suggested. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] No Reply From cURL

2002-11-21 Thread Bret L Conard
<-- snip -> Thanks Greg, that's a start. Yes, it's returning a 1. So where do I go from here with troubleshooting? <-- snip -> That is cURL returning a (true) value having completed succesfully. Bret - Original Message - From: "Steve Keller

Re: [PHP] Client IP address

2002-11-21 Thread Chris Shiflett
It's not a function, merely a variable. $REMOTE_ADDR Chris --- Ron Smith <[EMAIL PROTECTED]> wrote: > I know this is probably easily solved, but I'm trying to locate > the PHP function which returns the client's IP address when they > request a page from the server. -- PHP General Mailing List

Re: [PHP] No Reply From cURL

2002-11-21 Thread Bret L Conard
I had a devil of a time figuring out how to make it work. After searching the archives and lots of other sites I came up with the following code: (FYI - I am using authorize.net, so some of the response parameters may be different for you) HTH Bret https://secure.website.net/script_or_application"

Re: [PHP] Client IP address

2002-11-21 Thread Stephen
It's not a function, it's a variable: $_SERVER["REMOTE_ADDR"]; - Original Message - From: "Ron Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 21, 2002 3:16 PM Subject: [PHP] Client IP address > I know this is probably easily solved, but I'm trying to locat

[PHP] Client IP address

2002-11-21 Thread Ron Smith
I know this is probably easily solved, but I'm trying to locate the PHP function which returns the client's IP address when they request a page from the server. I'm having no luck searching the php.net function list. Kindest regards, Ron "Yes, they were dinking with the DNS last weekend, a

Re: [PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
At 11/21/2002 11:55 AM, greg R wrote: I don't think cURL is very intuitive. Well, I'm glad to see someone else say that. Makes me feel less retarded. Can you at least echo a response code from your function, such as $res = curl_setopt($ch, CURLOPT_URL, "https://partners.netledger.com/SmbXml

Re: [PHP] Writing a Polling App - Need Some Advice

2002-11-21 Thread Kevin Stone
Somebody suggested downloading a pre-made script that does what you want but I say that's no way to program. Simple scripts like this one clear the mind and are good experience. Besides nobody ever got good at programming by using pre-made scripts. ;-) Okay down to basics. You can break up the

Re: [PHP] How to use string as variable name?

2002-11-21 Thread -<[ Rene Brehmer ]>-
Hi Adam Voigt, On 18 Nov 2002 13:11:30 -0500, you wrote about "Re: [PHP] How to use string as variable name?" something that looked like this: >$date = "2002-11-22"; >$myvar = "a" . str_replace("-","",$date); >$$myvar = "hi"; > >echo "$a20021122"; GREAT ... works right off ..thx a billion ...

[PHP] Forgoten

2002-11-21 Thread Cesar Aracena
Hi all, I’m quite rusty with this sessions stuff (just came from vacations) and have this strange problem with a session I’m trying to build. Along with that, I’m making my first lines of code with a new portable computer and maybe PHP or Apache is not well configured… any ideas? The code goes as

[PHP] re: No Reply From cURL

2002-11-21 Thread greg R
I don't think cURL is very intuitive. Can you at least echo a response code from your function, such as $res = curl_setopt($ch, CURLOPT_URL, "https://partners.netledger.com/SmbXml";); echo $res; That should at least tell you, if nothing else, that you could successfully get into the service. If

php-general@lists.php.net

2002-11-21 Thread -<[ Rene Brehmer ]>-
Hi BAROILLER Pierre-Emmanuel, On Sat, 9 Nov 2002 15:34:56 +0100, you wrote about "[PHP] Re: http$B$G%;%C%7%g%s$r3+;O$7$?>l9g!"(Bhttps$B$X9T$C$F$b7QB3$5$l$k$N$G$7$g$&$+!)(B" something that looked like this: >Hi ! >Could you write it in english please ? Yeah ... not alot of people here can rea

[PHP] ImageCreateFromJpeg error

2002-11-21 Thread Scott Nagel
I am trying to use the following piece of code: $img_resized = imagecreate($img_new_width, $img_new_height); $img_source = ImageCreateFromJpeg($pa_strDocroot.$pa_strReadFold."/".$this->Name); imagecopyresized($img_resized, $img_source, 0 , 0 , 0 , 0, $img_new_width, $img_new_height, $this->Width,

[PHP] Re: Writing a Polling App - Need Some Advice

2002-11-21 Thread Philip Hallstrom
You're best bet is to take a look on zend.com in their application gallery and find one that does what you want :) Or at least you could see how others have done it. On Thu, 21 Nov 2002, Monty wrote: > I'm writing a little polling app for a website, they want to run them each > week. They will b

Re: [PHP] plus sign has changed to space after POST

2002-11-21 Thread bhkwan
finally, I have this issue solved. I have recompiled PHP "without" this --enable-mbstr-enc-trans For those who said they have no problem with the "+" sign, tried to compile your PHP with the option above and tried it out!!! ;) I know this is not a PHP bug but I am curious how people handle th

[PHP] Writing a Polling App - Need Some Advice

2002-11-21 Thread Monty
I'm writing a little polling app for a website, they want to run them each week. They will be the simple "choose your favorite" kind of multiple-choice polls. If anyone has ever written one of these, what is the best way to set up the poll questions? Do I store each question in a separate table an

[PHP] PHP FastTemplates Fails on RH7.3 (regex problem?)

2002-11-21 Thread Gary Smith
Hi All, I've been using PHP and FastTemplates for a couple of years on multiple platforms (Mac OSX, Win98, WinNT, Solaris). I've just installed RedHat 7.3 and FastTemplates doesn't work anymore. I get the message: Warning: Invalid content of \{\} in /var/www/cgi-bin/php/FastTemplate/class.FastTem

Re: [PHP] Base 27?

2002-11-21 Thread Ernest E Vogelsinger
At 20:21 21.11.2002, Leif K-Brooks said: [snip] >I'm trying to make a fairly simple encryption thing. My idea is to use >base 27 numbers (the first 27 digits are the alphabet, the 27th is the >space), and then converting to base 10. Any one know of a way

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Adam Williams
user name=cb[] and PHP will automatically make the array. then call it with $_GET["cb"][#] Adam On Thu, 21 Nov 2002, Xin Qi wrote: > hi there, > > if i have a group of checkboxes, and they have the SAME name, when they are > submited into a php script, how can this php f

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Ernest E Vogelsinger
At 20:14 21.11.2002, Xin Qi said: [snip] >if i have a group of checkboxes, and they have the SAME name, when they are >submited into a php script, how can this php file get the value of each >checkbox? > >since they have the same name, $_GET["checkbox_name"]

RE: [PHP] php programming style

2002-11-21 Thread Ernest E Vogelsinger
At 19:54 21.11.2002, Beau Hartshorne said: [snip] >I agree that it should return a consistent type. I was planning on >returning a populated array on success, or a boolean false on fail. >Instead, I will return an empty (but initialized) array on fail, and us

  1   2   >