Im trying to pass an object into functions and class methods, and for some
reason, Im unable to access the object's methods.
When I var_dump() the object, its a valid object with the function or
class method.
When I check via get_class_methods, all the methods are there, from
within the function
On Sun, 2003-06-22 at 23:20, Gerard Samuel wrote:
Im trying to pass an object into functions and class methods, and for some
reason, Im unable to access the object's methods.
When I var_dump() the object, its a valid object with the function or
class method.
When I check via
Does anyone have a code snippet that connects to a remote server using
NTML
and gets the HTML source?
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
First, you don't need to set the $seat array over and over in the for
loop, put
$seat = array('A1', ...
before the loop, it will make your page faster.
If you mean by secure that $_SESSION will contain only one of those 240
seats, then no, the user can type in anything and you just take it. You
Hello,
I have a working C program that runs like a cgi
by sending back a web page. I would like include in it
some authentication code by checking
$au = $_SESSION['AuthenticatedUser']
previously set up by a php script.I don't like to recode
all in php because I expect a nasty performace
I am using the following codes to create cookie and validate login, but some
members can't login, I checked their username and password is correct..
function docookie($id, $username, $passwd,$fname, $lname,
$suspended,$rememberme) {
$info =
Okay, my dhcp client web page is pretty much done...
http://daevid.com/examples/dhcp/
The .tgz file is linked at the bottom if you want it.
This was also an extreme amount of work just to simply see the active leases
and 'client-hostname' associated with an IP/MAC?! Seems to me there should
have
Hello,
This is a reply to an e-mail that you wrote on Mon, 23 Jun 2003 at 10:18,
lines prefixed by '' were originally written by you.
I am using the following codes to create cookie and validate login,
but some
members can't login, I checked their username and password is
correct..
$info
On Mon, 23 Jun 2003 08:59:56 +0300, you wrote:
Is there any way, doc, article, example, idea, suggestion to how to
prevent sql injection on php sites...
It's really not that hard to do.
Rule 1: Never trust the client
This means validating all data that comes from the client - make sure that
Artoo [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
How can I start searching for the first space in a string while starting
at
say the 150th character? I'm trying to display the first 150 characters
of
an article that is stored in a LONGTEXT filed of a MYSQL database, and
should
php-general Digest 23 Jun 2003 11:46:20 - Issue 2134
Topics (messages 152462 through 152486):
limit on displaying a LONGTEXT filed from MySQL database
152462 by: Artoo
152463 by: Adam i Agnieszka Gasiorowski FNORD
152472 by: Justin French
152486 by: Hugh
-Original Message-
From: Kyle Babich [mailto:[EMAIL PROTECTED]
Sent: 20 June 2003 17:55
I have a input field in a form that is disabled by javascript
but is assigned a value in the code that is the RFC 822
formated date. Why is this field not included in the $HTTP_POST_VARS?
-Original Message-
From: Sævar Öfjörð [mailto:[EMAIL PROTECTED]
Sent: 22 June 2003 01:27
Actually, if we want too go into details, according to the
international
standard for units, there is a big difference in 'M' and 'm'.
'M' means
Mega and 'm' means milli. You are probably
-Original Message-
From: Dave Alger [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 05:12
This one is causing me a few headaches. How should I be doing this?
On my previous page I've created a series of fields using a
loop so that a
field is created like this:
echo
Can anyone point me to some sample code for uploading and later retrieving PDFs
or other binary files into an Oracle BLOB field? I've been searching for some
time and haven't been able to come up with anything. It looks like there's
new LOB functions for OCI but they aren't documented at all on
Hi,
chop and rtrim just take out white space. Perl's chomp takes off the last
character no matter what it is.
$foo = substr($foo, 0, -1);
That will emulate Perl's chomp.
-Dan Joseph
-Original Message-
From: Sparky Kopetzky [mailto:[EMAIL PROTECTED]
Sent:
Hi everyone,
I am about to start work on a PHP script and I need to know how to
today's date. Is there a default variable built into PHP that has
today's date?
Many thanks
Gary Ogilvie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I am about to start work on a PHP script and I need to know how to
today's date. Is there a default variable built into PHP that has
today's date?
[/snip]
RTFM at http://www.php.net/date
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
www.php.net has a few useful things on there, one of them is the date()
function.
-Dan Joseph
-Original Message-
From: Gary Ogilvie [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 9:22 AM
To: 'PHP General'
Subject: [PHP] - Default Date
Hi everyone,
I am about to start
Hi Gary,
Is there a default variable built into PHP that has
today's date?
Have a look at http://php.net/date for this - http://php.net/mktime will
probably be of interest as well.
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Done a lot of Perl PHP coding over the years and one thing I _really_
liked about Perl is its 'use strict;' directive. For those of you not
familiar with Perl, this made the script die if you don't (among other
things) declare your variables before using them.
Once the fingers are flying,
[snip]
'use strict;' directive
[/snip]
One thing you can do is
error_reporting(E_ALL);
(see http://www.php.net/errorfunc )
but there is nothing really that operates the way 'use strict' does.
However, if you have an undefined variable this will give it back to you
if it does not contain a
Done a lot of Perl PHP coding over the years and one thing I _really_
liked about Perl is its 'use strict;' directive. For those of you not
familiar with Perl, this made the script die if you don't (among other
things) declare your variables before using them.
Once the fingers are flying,
Hi List
I am having trouble using headers.
I try to include a redirect header in my script, but is fails with the
familiar ( headers already sent) error.
I KNOW you should put the headers call where it will cause the first
output, and I do that, the only thing happening infront of the headers
Hi,
Is there any way, doc, article, example, idea, suggestion to how to
prevent sql injection on php sites...
http://www.nextgenss.com/papers/advanced_sql_injection.pdf
http://www.nextgenss.com/papers/more_advanced_sql_injection.pdf
Kirk
--
PHP General Mailing List (http://www.php.net/)
So what is the diffirent between :
session_start ();
$_SESSION['eventid'] = 'arma2';
and
session_start ();
session_register('arama2');
Use the first method to create session variables when register_globals is
off in the php.ini file. Use the second method when it is On.
Hi List
I am having trouble using headers.
I try to include a redirect header in my script, but is fails with the
familiar ( headers already sent) error.
I KNOW you should put the headers call where it will cause the first
output, and I do that, the only thing happening infront of the
I try to include a redirect header in my script, but is fails with the
familiar ( headers already sent) error.
I KNOW you should put the headers call where it will cause the first
output, and I do that, the only thing happening infront of the headers
call is an include statement to my main
Hello,
I have to make a lot of input and edit form to mysql tables. Is there any
tool with it I can easy make php based html forms?
I mean eg.: User can select fields from mysql table and the tool generate an
input or an edit form to it.
Thanks!
--
PHP General Mailing List
Karina,
I am not exactly sure of all it does but a link was posted on phparch today
http://www.phparch.com/news/283 (read the user comments at the bottom) about
formWizard, it may be worth a look.
Eddie
-Original Message-
From: Karina S [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23,
Hi Group,
I have a question regarding retrieving the
information. I have the functionlity in which on every
user click, system needs to retrieve information for
particular user and display the page according to the
retrieved information. Now question is which is the
scalable solution? (1)
On Mon, Jun 23, 2003 at 04:26:40PM +0200, Petre Agenbag wrote:
I am having trouble using headers.
I try to include a redirect header in my script, but is fails with the
familiar ( headers already sent) error.
I KNOW you should put the headers call where it will cause the first
output, and
I have a question regarding retrieving the
information. I have the functionlity in which on every
user click, system needs to retrieve information for
particular user and display the page according to the
retrieved information. Now question is which is the
scalable solution? (1) Retrieve
On Mon, Jun 23, 2003 at 08:09:57AM -0700, Hardik Doshi wrote:
Hi Group,
Hi Hardik.
I have a question regarding retrieving the
information. I have the functionlity in which on every
user click, system needs to retrieve information for
particular user and display the page according to the
[EMAIL PROTECTED] wrote:
Hello,
I have a working C program that runs like a cgi
by sending back a web page. I would like include in it
some authentication code by checking
$au = $_SESSION['AuthenticatedUser']
previously set up by a php script.I don't like to recode
all in php
Dave == Dave Alger [EMAIL PROTECTED] writes:
Dave Hi all, This one is causing me a few headaches. How should I
Dave be doing this?
Dave On my previous page I've created a series of fields using a
Dave loop so that a field is created like this:
Dave echo hr$fieldname:input
It depends on your HW / Application / number of visitors.
If you are planning to have many visitors and plan this number to
constantly
grow than you should avoid going to the DB as much as possible.
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you
How many times have you manually calculated the hours, minutes and
seconds between two dates? I was doing that again (for the million'th
and one times) and thought there should be a different way to do
this Here is what I came up with (I don't know if it's more
efficient than the old
I've had a look around lots of script sites (hotscripts, etc) and there are
lots of scripts for gd-library galleries, but unfortunately the server i'm
using does not support it, and I really want to have a gallery where
pictures can be uploaded and all the appropriate directories are created
When I include ?xml version=1.0 encoding=UTF-8? in my html
code, I get a parse error. The version is 4.1.2; phpinfo() reports
that XML support is turned on. Can anyone help with this?
Doug
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well,
Start here to read about how to upload files to a web server..
http://us2.php.net/features.file-upload
And then as for displaying them, look into some standard HTML to display the
text links, and possibly this solutions for readin directory contents:
It may happen because your HTML is not written in an XML standard.
- Original Message -
From: Doug Essinger-Hileman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 7:22 PM
Subject: [PHP] ?xml version=1.0 encoding=UTF-8
When I include ?xml version=1.0
I believe this is because the PHP engine thinks that the ?xml is a PHP opening tag.
1. Turn off short PHP tags (short_open_tag in php.ini)
-OR-
2. Use this instead: ?php echo '?xml version=1.0 encoding=UTF-8?'; ?
Joseph
Doug Essinger-Hileman [EMAIL PROTECTED] wrote in message news:[EMAIL
Doug Essinger-Hileman wrote:
When I include ?xml version=1.0 encoding=UTF-8? in my html
code, I get a parse error. The version is 4.1.2; phpinfo() reports
that XML support is turned on. Can anyone help with this?
Doug
Do you have short tags disabled in you php.ini? If not, try turning it
off,
Hello,
This is a reply to an e-mail that you wrote on Mon, 23 Jun 2003 at 18:18,
lines prefixed by '' were originally written by you.
When I include ?xml version=1.0 encoding=UTF-8? in my html
code, I get a parse error. The version is 4.1.2; phpinfo() reports
that XML support is turned on.
On Mon, 23 Jun 2003 13:22:40 -0400, you wrote:
When I include ?xml version=1.0 encoding=UTF-8? in my html
code, I get a parse error. The version is 4.1.2; phpinfo() reports
that XML support is turned on. Can anyone help with this?
? opens a php block. Then the PHP interpreter attempts to
When I include ?xml version=1.0 encoding=UTF-8? in my html
code, I get a parse error. The version is 4.1.2; phpinfo() reports
that XML support is turned on. Can anyone help with this?
The first two characters are opening up a PHP block of code, so you get a
parse error. Either disable short
Can some1 tell me how can I define Super Globals (like the Application
Scope in ASP)?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does anyone know if there are issues with using the header() function inside
frames? Is there extra stuff that needs to be added to it to get it to work
correctly?
Or if there were issues with header in php 4.06?
Thanks,
-Mike
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
Can some1 tell me how can I define Super Globals (like the Application
Scope in ASP)?
[/snip]
Start here http://us4.php.net/globals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I highly recommend this Gallery: http://sourceforge.net/projects/gallery
I've used it in many webs, it's very fast, modular, handles multiple formats
and is fairly easy to customize. Here is a web that I integrated it with:
http://www.roundaboutdesigns.com/gallery
Johnny
-Original
I am getting the following error when I am trying to include a file using
include(includes\handle_errors.inc);
-
Warning: open_basedir restriction in effect. File is in wrong directory
in /var/hosting/www/www.site.com/http/PHP/compare.php on line 4
Does anyone know if there are issues with using the header() function
inside
frames? Is there extra stuff that needs to be added to it to get it to
work
correctly?
No... each frame is it's own HTTP request. PHP operates server side so it
has no idea of frames. It simply processes the code and
Hi,
Tuesday, June 24, 2003, 3:36:12 AM, you wrote:
DAC Can some1 tell me how can I define Super Globals (like the Application
DAC Scope in ASP)?
Have a look at msession, that will allow you to setup application wide
variables
--
regards,
Tom
--
PHP General Mailing List
Denis 'Alpheus' Cahuk wrote:
Can some1 tell me how can I define Super Globals (like the Application
Scope in ASP)?
You can't.
--
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
On Wed, 28 May 2003 10:23:22 -0500, Wendell Brown wrote:
To force all of the pages (both pseudo-static and dynamic) to generate
a Last-Modified header, I set up prepend.php script which is
configured as a directory level (.htaccess) parm to auto_prepend_file.
As appears to be the usual case with
Hello all mailing list, House for rent - Good price, :), bye.
URL : http://www.geocities.com/rapogo
http://fr2.php.net/manual/fr/function.vpopmail-add-alias-domain-ex.php
How can i do to use vpopmail functions ?
What doesnt that means ?
vpopmail_add_alias_domain_ex
(4.0.5 - 4.2.3 only) ?
Is there a set of php scritp that allows to manage vpopmail, I have vqadmin
in perl but it has some bug
I have absolutely no experience with Berkeley db but have been told by my
ISP that it is what I need to use. How do I connect to it? Do I use SQL to
set up the structure? does it accept standard SQL? If anyone knows of a good
resource that would be wonderful as well.
Thanks in advance,
~Logan
I am storing dates in an Access database in a field with a Date/Time Type
the date is being generated using date(n/d/Y h:i a). It appears to be
stored in Access correctly but when I output it to the page using PHP it
seems to be changing. It is being stored in the database as 6/19/2003
1:44:00
I am storing dates in an Access database in a field with a Date/Time Type
the date is being generated using date(n/d/Y h:i a). It appears to be
stored in Access correctly but when I output it to the page using PHP it
seems to be changing. It is being stored in the database as 6/19/2003
1:44:00
Hi Group,
Is there any way to change the image size (Not height
and width. I am talking about image file size)
dynamically?
Our users upload the big files and we want to find a
way so once user upload such file, system will
automatically generate the small file and store both
versions on the
Hi folks
I'd like to know if you know any page where I can download a tree dynamic
menu made in PHP.. The options of this menu will be pulled from a mysql
database
thanks
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Jun 23, 2003, David Elìas Sánchez Vásquez claimed that:
|
|Hi folks
|
|I'd like to know if you know any page where I can download a tree dynamic
|menu made in PHP.. The options of this menu will be pulled from a mysql
|database
|
|thanks
|
|David
I know this breaks the rules/recommendations
check out this link it should have the answers your looking for
http://ca3.php.net/manual/en/function.imagecreatefromjpeg.php
- Original Message -
From: Hardik Doshi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 2:14 PM
Subject: [PHP] Change image file size
Hi,
I'm trying to upload a small image via a form. This code worked with php
versions prior to 4.1.0. I assume it would still work if register_globals
was turned on.
Here's the error:
Warning: fread(): supplied argument is not a valid stream resource in
Hello,
I just updated PHP on my local computer from PHP 4.0.2 to 4.3.2 (Yes, I know, its a
very very long time). I also downloded the latest version of Apache and installed PHP
as a module. Now PHP runs fine on the server. I have a small problem though. Variables
being sent via the GET method
Set register_globals to On in php.ini.
Kirk
-Original Message-
From: Sid [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 3:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem with GET variables
Hello,
I just updated PHP on my local computer from PHP 4.0.2 to
4.3.2
Hello,
I hope someone can help me or point me in a good direction.
I have a database driven website, all ODBC to postgresql, that little
by little eats up resources on apache.
The child processes will start off at 30Mb of virtual memory and run
up around 230Mb each child. (see below ps
I'm using PHP 4.3.1 as an Apache module. No matter what I try, I can't get
set_error_handler() to do anything other than return false. Under what
circumstances does this happen?
?php
function doobee($errno, $errstr, $errfile, $errline, $errcontext) {
echo Handled.;
}
$retval = true;
if
On Mon, 2003-06-23 at 15:12, Jeff Stewart wrote:
I'm using PHP 4.3.1 as an Apache module. No matter what I try, I can't get
set_error_handler() to do anything other than return false. Under what
circumstances does this happen?
?php
function doobee($errno, $errstr, $errfile, $errline,
What tools do you recommend or use for a team
environment that will allow us to maintain source
control and even offer some version tracking/history
in case we need to go back to old code?
We need the ability to check-in and check-out files in
a team environment --- normally just HTML and PHP
J J wrote:
What tools do you recommend or use for a team
environment that will allow us to maintain source
control and even offer some version tracking/history
in case we need to go back to old code?
We need the ability to check-in and check-out files in
a team environment --- normally just HTML
What tools do you recommend or use for a team environment that will allow
us to maintain source control and even offer some version
tracking/history in case we need to go back to old code?
We need the ability to check-in and check-out files in a team environment
--- normally just HTML and PHP
CVS is a known versioning tool... it resides on a linuxx or unix server and
is free (from gnu) if I remember correctly
otherwise its a google search
- Original Message -
From: J J [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 3:31 PM
Subject: [PHP] Source/version
Hi,
That looks like a unix timestamp. Try this:
Echo date(Y/m/d h:i:s, 1056044640);
www.php.net/date
Check that link to see the lettering codes and the syntax, I
might be off on what I typed up there, but you'll get the concept.
-Dan Joseph
-Original
I am using the below function (error_db) witch is called thus:-
function query_db( $sql, $db ) {
$result = mysql_query( $sql, $db ) or
error_db( $sql, $db );
return $result;
}
But $sqlerr is always blank (it is set with '$sqlerr = mysql_error( $db
);'). Any idea why?
Ben
[EMAIL PROTECTED] wrote:
Hello all mailing list, House for rent - Good price, :), bye.
URL : http://www.geocities.com/rapogo
Can someone PLEASE unsubscribe the spammer?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted
php-general Digest 23 Jun 2003 23:47:50 - Issue 2135
Topics (messages 152487 through 152553):
Re: Passing Date/Time
152487 by: Ford, Mike [LSS]
Re: Convert KB to MB?
152488 by: Ford, Mike [LSS]
Re: Getting at $_POST values using a loop
Of course you have to have GD library installed.
-Original Message-
From: Chris Sherwood [mailto:[EMAIL PROTECTED]
Sent: 23. júní 2003 21:34
To: Hardik Doshi; [EMAIL PROTECTED]
Subject: Re: [PHP] Change image file size dynamically
check out this link it should have the answers your
Yeah this is no Real State List. Put up an ad on the newspaper.
O.
Leif K-Brooks wrote:
[EMAIL PROTECTED] wrote:
Hello all mailing list, House for rent - Good price, :), bye.
URL : http://www.geocities.com/rapogo
Can someone PLEASE unsubscribe the spammer?
--
PHP General Mailing List
i have problems with client side cache, how can i disable it?
i use this, but it still caches pages.
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);
On 23 Jun 2003 at 13:22, CPT John W. Holmes wrote:
The first two characters are opening up a PHP block of code, so you
get a parse error. Either disable short open tags in php.ini,
I don't have access to php.ini. Can I do this on a script by script
basis with
ini_set(short_open_tag, off)
Hey...
A quick question...
How can I do the following (I know it's simple..!!!)
All from the same page...
Do some processing...
Open an external page
Write some stuff to the external page...
The issue I seem to have is that if I open the external page during the
onload... it's not ready
I don't know if this is what you mean, but here is what you need to edit
files:
http://us2.php.net/manual/en/function.fopen.php
http://us2.php.net/manual/en/function.fwrite.php
http://us2.php.net/manual/en/function.fclose.php
-Original Message-
From: my [mailto:[EMAIL PROTECTED]
Sent:
sorry
to make it a little more clear...
I'd like the external page to be a separate web page...I'm using it to
simply write out some debug data on the fly
thanks
bruce
-Original Message-
From: Sævar Öfjörð [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 5:31 PM
To:
Aljosa Mohorovic wrote:
(B i have problems with client side cache, how can i disable it?
(B i use this, but it still caches pages.
(B
(BWhat are your problems exactly and what is the client?
(B
(BRemember that the client might not be honouring your caching headers and
(Bif that is the case
J == J J [EMAIL PROTECTED] writes:
J What tools do you recommend or use for a team environment that
J will allow us to maintain source control and even offer some
J version tracking/history in case we need to go back to old
J code?
All of the responses I saw recommended the same
on 24/06/03 10:26 AM, my ([EMAIL PROTECTED]) wrote:
Do some processing...
easy :)
Open an external page
I assume you mean open a window with another URL in it
Write some stuff to the external page...
Wrong order...
1. do some processing (eg home.php)
2. open/create a file (eg
On Mon, 23 Jun 2003, Doug Essinger-Hileman wrote:
On 23 Jun 2003 at 13:22, CPT John W. Holmes wrote:
The first two characters are opening up a PHP block of code, so you
get a parse error. Either disable short open tags in php.ini,
I don't have access to php.ini. Can I do this on a
Thanks Ralph and everyone else who posted a hint.
I'm using the array method. Much better and, I'm ashamed to admit it, it
means I can do away with my hidden input with number of fields too...
regards,
Dave
Ralph [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
echo
91 matches
Mail list logo