Re: [PHP] session variables between http and https servers.

2002-04-10 Thread heinisch
At 10.04.2002 15:56, you wrote: >Okay, here is my dilemma: > >I have one page, (non-secure), which sets session variables for the users >address, items, prices, etc. I have the next page which is secure, and >cannot get the session variables from the previous page. Is there a way to >pass the var

Re: [PHP] disable global variables

2002-04-10 Thread Jason Wong
On Thursday 11 April 2002 06:47, Norman Zhang wrote: > Hi, > > phpinfo() indicates that register_globals = On by default. How do I set it > to register_globals = Off? edit php.ini -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design &

Re: [PHP] Image Uploading not taking place

2002-04-10 Thread Manisha
yes, I have copied example from there itself, it is the max size which I forgot to copy in email but which is actually in a program. My html do contain max size tag. Still it is not working. html code Send this file:

Re: [PHP] Image Uploading not taking place

2002-04-10 Thread Richard Archer
At 1:52 PM +0800 11/4/02, Manisha wrote: >Image file uploading is not taking place. A 5 second glance at the manual page for file uploads would have shown you what you're doing wrong *and* given you a cut-and-paste example of how to do it right. http://www.php.net/manual/en/features.file-upload

Re: [PHP] seeking help on html anchors

2002-04-10 Thread Analysis & Solutions
Yo B: On Thu, Apr 11, 2002 at 11:12:40AM +0530, Venkateshwar B wrote: > > echo " "; That's not valid HTML. This is: echo ''; But, I suspect that's not your problem. I'm guessing that the browser, or even HTML, doesn't support anchors in POST action statements. You could try "get" as the

[PHP] Image Uploading not taking place

2002-04-10 Thread Manisha
Image file uploading is not taking place. This is the html code : Send this file: This is the php file - uploadtest.php When I run the html and submit it - I get messages "Inside if " and at the end "file upload over" But when I check the directory /img - there is nothing inside.

Re: [PHP] Adding "a" in "try.jpg"! SOLVED!!

2002-04-10 Thread Mike Gohlke
T., Here's what you want in one simple line. It works with multiple periods, spaces, whatever (I've tested it). It's best to use the PCRE functions since they are binary safe, but eregi_replace also works fine (but preg_replace would be better). preg_replace("/(.*)(\..*)/","$1a$2",$your_sear

[PHP] seeking help on html anchors

2002-04-10 Thread Venkateshwar B
Dear sir, I have a problem. I want to transfer form data to an anchor within the same php3 file. But it does'nt seem to work. My code is something like this ... file name is get.php3 "; . . . . ?> this is where we want to come can somebody help? B.Venkateshwar -- PHP Ge

RE: [PHP] ini_set doesn't work

2002-04-10 Thread Hiroshi Ayukawa
>but you'd have to put set_ini() in each of your files (unless you're putting >it in an auto prepended file) Thanks.I haven't explained enough. I have one file included at the beginning of all files. So I only have to write ini_set in that file only once. I really appreciate your answer. thanks.

RE: [PHP] ini_set doesn't work

2002-04-10 Thread Martin Towell
> [snip mail header info] > > Hello, > > >why don't you just do an include "hello.html"; at the end of the file? > > Because, there are so many files. > thanks. > > [snip mail footer info] but you'd have to put set_ini() in each of your files (unless you're putting it in an auto prepended file)

RE: [PHP] ini_set doesn't work

2002-04-10 Thread Hiroshi Ayukawa
Hello, >why don't you just do an include "hello.html"; at the end of the file? Because, there are so many files. thanks. Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: ini_set doesn't work

2002-04-10 Thread Hiroshi Ayukawa
>What error message do you get under error_reporting(E_ALL)? > >(Meantime, make sure that the web server's user has permission to read the >file, and perhaps try substituting in the full pathname.) No error is displayed.And there is no problem around permission. thanks. Hiroshi Ayukawa http://

Re: [PHP] A Details Popup

2002-04-10 Thread Justin French
Try this code... this is the originating page, with a link for each person, which passes a user id to the function. The function opens a new window, with all sorts of chrome turned off or on (my defaults are pretty close to what you want) with the url details.php?id=. details.php can then use th

RE: [PHP] A Details Popup

2002-04-10 Thread Martin Towell
use javascript window.open() - call the window some unique name, that way it'll reuse the window if it's already open in the page for that window, use window.focus() to bring it to the front look at http://developer.netscape.com/ and hunt around for the javascript manual (I haven't been there for

[PHP] A Details Popup

2002-04-10 Thread Robbie Newton
Hi everyone, I have a listed result from the MySQL table but I want the user to be able to get more information without having to use the back button a lot after they finish viewing details. So when the user clicks on one of the records then it will open a new window to view the detailed informat

[PHP] Re: ini_set doesn't work

2002-04-10 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Hiroshi Ayukawa) wrote: > I wnat to set auto_append_file in my own php script not in php.ini. > So I used > > ini_set("auto_append_file","hello.html"); > > But it doesn't work. What error message do you get under error_reporting(E_ALL)?

[PHP] Re: PHP and localhost (newbie!!)

2002-04-10 Thread phplists
Yeah, basically, in your httpd.conf file you specify the DocumentRoot for your Apache installation. Then whatever dirs are below that inherit the AddType(s) and such of the parent. You can add different dirs individually if you want. Just add the following to your httpd.conf file (you can put them

[PHP] 4.1.2 Issues: ldap & $PHP_SELF help!

2002-04-10 Thread John Steele
Hello all, I've just installed 4.1.2 on two different windows machines, and have different problems on each: 1. NT4/SP6/IIS - can't load php_ldap.dll - does this require another dll first? 2. 98/Xitami - $PHP_SELF is set, but empty? - 4.0.2 works, everything else since doesn't I've t

RE: [PHP] ini_set doesn't work

2002-04-10 Thread Martin Towell
why don't you just do an include "hello.html"; at the end of the file? -Original Message- From: Hiroshi Ayukawa [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:04 PM To: [EMAIL PROTECTED] Subject: [PHP] ini_set doesn't work Hello, I wnat to set auto_append_file in my own ph

[PHP] Re: editors

2002-04-10 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Does anyone know of any text editors that understand the syntax of php? I > have finally got the company I work for convinced that php is the way to go > for the web based portion of our product. I would like to find an editor > that doe

[PHP] ini_set doesn't work

2002-04-10 Thread Hiroshi Ayukawa
Hello, I wnat to set auto_append_file in my own php script not in php.ini. So I used ini_set("auto_append_file","hello.html"); But it doesn't work. Does anyone know about this? environment: Apache + Windows2000 + PHP4.1.2 Apache + TurboLinuxServer7 + PHP4.1.2 Regards, Hiroshi Ayukawa --

Re: [PHP] templates and listbox

2002-04-10 Thread Analysis & Solutions
On Wed, Apr 10, 2002 at 06:32:18PM -0300, Javier wrote: > Does templates (eg php-templates or Smarty) fill automatically listboxes? > Or do I need to code it? If your list boxes are coming from data in a MySQL or ODBC database, check out my SQL Solution: http://www.sqlsolution.info/. One of the

RE: [PHP] Clicking Once -- buttons?

2002-04-10 Thread Martin Towell
use javascript onClick="this.disabled=true;" I think that's correct -Original Message- From: Jason Caldwell [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 1:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Clicking Once -- buttons? Is there a way I can ensure the end user clicks th

Re: [PHP] GMT / TimeZone modifications

2002-04-10 Thread Richard KS
Thanks for the quick answer! Perhaps you have a smaller code snippet for this? NOTE It wouldn't mind if the entire website would go after one timezone, in this case from GMT+8 to GMT+1. -- Richard, oblivion creations http://oblivion.lunamorena.net [EMAIL PROTECTED] +46 (0) 736 849 531 f

[PHP] Clicking Once -- buttons?

2002-04-10 Thread Jason Caldwell
Is there a way I can ensure the end user clicks the submit button on a given form, *once* ? Can PHP help me with this, or would this be a job for Java? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GMT / TimeZone modifications

2002-04-10 Thread Rasmus Lerdorf
setenv() the appropriate timezone, then use strtotime() or mktime() to create a timestamp. Then setenv() to the other timezone and use date() or strftime() to convert back into a legible format. -Rasmus On Thu, 11 Apr 2002, Richard KS wrote: > Greetings. > > I was wondering if there are any go

[PHP] GMT / TimeZone modifications

2002-04-10 Thread Richard KS
Greetings. I was wondering if there are any good ways of converting a date into another time zone? For instance, from GMT+8 to GMT+1, is this possible in some way? Like if I have a date written 09.04.2002 14:11, I would like to format it into GMT+1.. Any solutions? Thanks alot -- Richard, ob

Re: [PHP] editors

2002-04-10 Thread Justin French
Hi, a quick search on php.net resulted in this page: http://www.php.net/links.php which has a link to a list of editors: http://www.itworks.demon.co.uk/phpeditors.htm similarly, a quick search at google.com resulted in around 249,000 pages :) this question's also been asked on this list abou

RE: [PHP] editors

2002-04-10 Thread Matthew Walker
EditPlus is a great editor, with the added benefit of a built in FTP client. Matthew Walker Senior Software Engineer ePliant Marketing -Original Message- From: Steve Klugherz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:07 PM To: [EMAIL PROTECTED] Subject: [PHP] editor

Re: [PHP] editors

2002-04-10 Thread Phillip S. Baker
At 07:06 PM 4/10/2002 Wednesday, Steve Klugherz wrote: >Does anyone know of any text editors that understand the syntax of php? I >have finally got the company I work for convinced that php is the way to go >for the web based portion of our product. I would like to find an editor >that does contex

RE: [PHP] PHP and localhost (newbie!!)

2002-04-10 Thread Martin Towell
you could set up c:\ as your web root :P -Original Message- From: Tiago Simões [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 11:04 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and localhost (newbie!!) Hello everybody! I'm just entering the wonderful world of PHP and i alread

RE: [PHP] editors

2002-04-10 Thread Martin Towell
emacs, editplus, phpedit, etc, etc. have a look on google -Original Message- From: Steve Klugherz [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: [PHP] editors Does anyone know of any text editors that understand the syntax of php? I hav

[PHP] PHP and localhost (newbie!!)

2002-04-10 Thread Tiago Simões
Hello everybody! I'm just entering the wonderful world of PHP and i already have a doubt. I installed the apache server on my Windows ME :-p, to use for local tests. I have to acess it manually (meaning i have to click the apache startup everytime i want to do something...). Anyway i proceded to

[PHP] editors

2002-04-10 Thread Steve Klugherz
Does anyone know of any text editors that understand the syntax of php? I have finally got the company I work for convinced that php is the way to go for the web based portion of our product. I would like to find an editor that does context highlighting (like visual cafe) to keep grumblings to a m

[PHP] Re: Free PHP Hosting

2002-04-10 Thread Michael Andersson
Try http://www.spaceports.com/ and sign up for a cgi-bin account "Php" <[EMAIL PROTECTED]> skrev i meddelandet news:8heamp$3b5$[EMAIL PROTECTED]... > Does anyone know a free PHP hosting company who is also offering any > database? > > -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] Re: unsetting an instance from within its class

2002-04-10 Thread Maxim Maletsky
Class foo { Var $bar = 'bar'; function baz() { echo '$this->bar once used to be ' . $this->bar; unset($this->bar); echo " ...and not it's not : {$this->bar}"; } } $foo = new foo(); unset($foo); // kill the instance outside the class Cheers, Maxim Maletsky Found

[PHP] Re: unsetting an instance from within its class

2002-04-10 Thread Ian
$this "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a way to unset or destroy an object instance from a method > within its class? I'm trying to write a method that destroys its > instance but I'm not sure how to refer to the object its

RE: [PHP] image dimentions

2002-04-10 Thread Martin Towell
getimagesize() -Original Message- From: Steve Klugherz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] image dimentions Is there anyway to gather image dimentions from a gif or a jpg file? I need to gather this information from use

RE: [PHP] Convert number into percentage????

2002-04-10 Thread Alok K. Dhir
What is a "percentage"? I.e. what do you want as output? The way I read this, you could want one of two things: Assuming $x="040" - 1. string "40%" $percent=intval($x)."%"; 2. float 0.40 $percent=round($x/100,2); > -Original Message- > From: > [EMAIL PROTECTED

[PHP] image dimentions

2002-04-10 Thread Steve Klugherz
Is there anyway to gather image dimentions from a gif or a jpg file? I need to gather this information from user uploaded files and can not trust the user to enter them correctly. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] OO-PHP Style question

2002-04-10 Thread Martin Towell
Re: about referencing A from B You're exactly right - to make a reference, you'll need to either 1) make A global, or 2) pass A as a parameter to B's constructor. Re: (un)serialising maintaining reference, not copy Sorry, haven't tried serialising an object with references in it before - I guess

RE: [PHP] PHP/ASP/Siteminder

2002-04-10 Thread Martin Towell
throw in a phpinfo() on the page you want to access that variable on, go down to the bottom and have a look at was variables are set. HTH Martin -Original Message- From: peter ferrigan [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:08 AM To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] ImageTTFtext Bug

2002-04-10 Thread The Walters
I finally found other people with the same problem I am having as addressed here: http://bugs.php.net/bug.php?id=14876 I am wondering when this will be addressed however because in the bug report it lists no solutions to this problem. Anyone? -Brandon -- PHP General Mailing List (http://

[PHP] session variables between http and https servers.

2002-04-10 Thread Keith Posehn
Okay, here is my dilemma: I have one page, (non-secure), which sets session variables for the users address, items, prices, etc. I have the next page which is secure, and cannot get the session variables from the previous page. Is there a way to pass the variables between the secure and non-secur

[PHP] disable global variables

2002-04-10 Thread Norman Zhang
Hi, phpinfo() indicates that register_globals = On by default. How do I set it to register_globals = Off? Thanks and Regards, Norman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] String?

2002-04-10 Thread jas
I hate to say it but that didn't work, I have been trying different variations of the same ereg('_(^90-9{4}$).jpg$',$file_names) and nothing seems to work for me, I have also been looking at the ereg and preg_ereg functions but they don't seem to make sense to me, here is the code as a whole if th

[PHP] Re: Convert number into percentage????

2002-04-10 Thread Scott Fletcher
Someone replied by email suggesting that I use "040 / 100". Unbelievable. I can't think of something simple. But thanks! Scott "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > > Excuse me if I seem a bit stump on how to convert the nu

Re: [PHP] preg_match doesn't seem to work!

2002-04-10 Thread Lars Torben Wilson
On Wed, 2002-04-10 at 15:01, Erik Price wrote: > Hi everyone. I'm really banging my head against this one. Everything > seems to be working, but this constructor method doesn't seem to want to > pass. The error message I am getting is "you did not pass the > preg_match()", so I'm clearly not

[PHP] Convert number into percentage????

2002-04-10 Thread Scott Fletcher
Hi! Excuse me if I seem a bit stump on how to convert the number to a percentage. I looked up on the function, printf() and sprintf() and I'm still a bit stump on that. Is there such a php function that would convert this number, "040" to a percentage? I hope there is one. Thanks, Scott

Re: [PHP] String?

2002-04-10 Thread Erik Price
On Thursday, April 11, 2002, at 05:59 AM, jas wrote: > Is this a correct string to show only files that look like so: > *_.jpg > if ($file_names != "." && $file_names !=".." && > ereg('(^[0-1231]$).jpg$',$file_name)) > Any help would be great. preg_match(/^_[0-9]{4,4}\.jpg$/, $file_name)

[PHP] error status - how to get it

2002-04-10 Thread Charmaine Tian
Hi there, How can I determine if a script is terminated normally or with an error (execution time out, memory limit exceeded, etc.)? I'm writing a new PHP extension, and I need to generate an alert if the script is terminted due to a timeout error or memory limit exceeded error. However, I canno

[PHP] preg_match doesn't seem to work!

2002-04-10 Thread Erik Price
Hi everyone. I'm really banging my head against this one. Everything seems to be working, but this constructor method doesn't seem to want to pass. The error message I am getting is "you did not pass the preg_match()", so I'm clearly not passing the preg_match(). But I can't figure out why

RE: [PHP] SESSIONS in javascript

2002-04-10 Thread alfonso orion x allende
might be a solution: don't use a javascript includepage, instead use the "inline code" method in a php.includefile, something like this include "javascript.inc"; where the javascript.inc (js.inc, js.php, javascript.php - your name, your choice) contains