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
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 &
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:
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
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
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.
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
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
>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.
> [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)
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
>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://
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
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
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
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)?
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
$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
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
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
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: 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
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]
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://
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
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
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
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
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
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
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)
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
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
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