*This message was transferred with a trial version of CommuniGate(tm) Pro*
First suggestion- include the URL. :)
Michael Kennedy
-Original Message-
From: Erich Kolb [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Search Submissi
Greetings,
I'm newbie in php and I would like to develop a .php page that constantly
retrieves data from MySQL database, but I having difficulties to doing so.
Please show me the complete code, if possible.
Thanks in advance.
= index.php =
Column1
Column2
Column3
Column4
"Greg Beaver" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Walter,
Hi Greg...
> in PHP 4, you can kludge this:
>
> Class Foo
> {
> function getBaz($set = null)
> {
> static $_TintBaz = 9;
> if (!is_null($set)) {
> $_TintBaz = $set;
>
Hi Walter,
Not until PHP 5
Class Foo
{
static $_TintBaz = 9;
}
echo Foo::$_TintBaz;
in PHP 4, you can kludge this:
Class Foo
{
function getBaz($set = null)
{
static $_TintBaz = 9;
if (!is_null($set)) {
$_TintBaz = $set;
}
return $_TintBaz;
Im putting together a free web based tool available to anyone who wants to
automatically submit their website to multiple search engines at the same
time. I know this has been done before, but I haven't done it and its
pretty much a learning experience for me. It is currently functioning, and
I w
Is there a way that a method within a Class, when called statically, can
access a property of that Class?
Class Foo
{
var $_TintBaz = 9;
function getBaz()
{
return Foo::_TintBaz; // <-- line 8
}
}
echo Foo::getBaz();
This returns...
Parse error:
On Friday 26 September 2003 3:54, Chris Shiflett wrote:
> http://www.php.net/mysql_pconnect
If you have even moderate load on your server mysql_pconnect is going to
really hurt performance.
The best method I have found is to just make sure the connection code is only
in one file and then includ
> Curt Zirzow wrote:
> >
> > hmm.. i think i just rememberd that it might had to do with making
> > sure that session.cache_limiter being set as 'nocache'.
> >
> > Search the archives, the answer is there i believe.
> >
> > Curt
>
> You are close, it was session_cache_limiter('private_no_expir
> Curt Zirzow wrote:
> >
> > hmm.. i think i just rememberd that it might had to do with making
> > sure that session.cache_limiter being set as 'nocache'.
> >
> > Search the archives, the answer is there i believe.
> >
> > Curt
>
> You are close, it was session_cache_limiter('private_no_expir
Curt Zirzow wrote:
hmm.. i think i just rememberd that it might had to do with making
sure that session.cache_limiter being set as 'nocache'.
Search the archives, the answer is there i believe.
Curt
You are close, it was session_cache_limiter('private_no_expire');
--
PHP General Mailing List (h
[snip]
No, but it wouldn't do me any good anyway. I am not trying to link to a
picture residing somewhere else. I am trying to EMBED it.
[/snip]
And snip your replies!
Found in a google search...go figure
Probably the easiest way to do this is to use a mail class PHPMailer
http://phpmailer.s
--- Daevid Vincent <[EMAIL PROTECTED]> wrote:
> But it just seems so wasteful to keep making that mysql_connect().
>
> Isn't there a way to store the $db result so I don't have to keep
> connecting.
http://www.php.net/mysql_pconnect
Hope that helps.
Chris
=
Become a better Web developer wi
* Thus wrote Alex Shi ([EMAIL PROTECTED]):
> Hello,
>
> I have a strange problem with a download script. Here is the situation:
> On my development server, the php is 4.0.6 while on the application
> server it is 4.3.2. I created a very simple code for opening pdf in
> browser. the main part of
[snip]
OK, apparently you are not reading my emails. I said I already did that
but
that it didn't work. Putting the file name in the IMG SRC tag simply
doesn't
work. At least not in that format.
> By putting an img tag in the HTML
I am not that dumb. I realize that people send HTML message
eve
Session auto start is not enabled as default because it is a performance
drain. It is much more efficient to use session_start() only when you
need it.
The easiest way to do things is usual the worst. (Most inefficient)
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]
Se
It does seem wasteful, but you have to make sure there is a connection
before you query a database. What if the user goes out to lunch? Should
you maintain an open database connection for an hour? No, that's a lot
of overhead.
What you can do is change it from mysql_connect to mysql_pconnect. Th
People send HTML e-mail each day with images using PHP...there are
numerous discussion on the archive. If you are using plain text e-mail
you cannot see images.
-Original Message-
From: Igor Frankovic [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 3:30 PM
To: Jay Blanchard
Su
Hello,
I have a strange problem with a download script. Here is the situation:
On my development server, the php is 4.0.6 while on the application
server it is 4.3.2. I created a very simple code for opening pdf in
browser. the main part of it is like following:
This code is working perfect
Mostly a matter of preference I would say.
Cheers,
Rob.
On Fri, 2003-09-26 at 16:10, Daevid Vincent wrote:
> I sent this to php-db with no reply, so I'll try it here then...
>
>
> -Original Message-
> From: Daevid Vincent [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003
I sent this to php-db with no reply, so I'll try it here then...
-Original Message-
From: Daevid Vincent [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] What is the proper way to use mysql db on a multipage
site?
I've been
[snip]
I am wondering if it is possible to embed pictures into email messages
using
this function.
[/snip]
I'm wondering if anyone ever tests this stuff. ;)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am wondering if it is possible to embed pictures into email messages using
this function.
Thanx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Alright that work now Don't know why does the php.ini default is not
what it should be... I found a few that aren't on the list in php.ini, but
hte most important thing right now is that it is fixed...
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is this the
Is this the one???
http://us3.php.net/session
Thanks...
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have been building the website for 6 months with everything and I didn't
> have hte php.ini on it. Just didn't realize it, so I create the php.ini
> that come
I have been building the website for 6 months with everything and I didn't
have hte php.ini on it. Just didn't realize it, so I create the php.ini
that come from php.ini_dist that came with php source code. Now the
$_SESSION doesn't work. I'm not able to make the php.ini to be like the one
that
Hey Jason,
Thanks for replying.
> Probably a bit late but we offer well powered hosting starting at just
> $9.95 a month, 250 MB storage space bandwidth is 5 GB/month, 15 POP 3
> accounts and 15 FTP accounts, 2 databases, PHP 4.3.3 (upgraded
> regularly, Turck MMCache installed, Perl, PHP MyAdm
lol...if on linux...
On Fri, 2003-09-26 at 12:35, Ray Hunter wrote:
> Ive used curl to test stuff out with too...however, if on link i like to
> use wget to test it out. You might not have that option but I have seen
> others use fopen or file_get_contents.
>
> HTH,
>
> BigDog
>
> On Fri, 2003-
[snip]
I just picked up a copy of the PHP Architect magazine this month
(http://www.phparch.com) and they had an article about compiling PHP in
such a way that you can call Java code from within PHP.
How many other languages does PHP support like this? Can I use Perl,
C++, or other languages with
I figured it out already.
if the array has
http://example.com/bbs/index.php?board=1
http://example.com/bbs/index.php?board=1;action=display;thread=12
3
then, the str_replace of that one with the other one that has the
symbols changed, will be
http://example.com/bbs/index.php/board-1
but it'll A
I just picked up a copy of the PHP Architect magazine this month
(http://www.phparch.com) and they had an article about compiling PHP in
such a way that you can call Java code from within PHP.
How many other languages does PHP support like this? Can I use Perl,
C++, or other languages without any
Ive used curl to test stuff out with too...however, if on link i like to
use wget to test it out. You might not have that option but I have seen
others use fopen or file_get_contents.
HTH,
BigDog
On Fri, 2003-09-26 at 10:15, Doug Coning wrote:
> Greetings All,
>
> I am creating a 'links' page a
>> Open sess_4f5d...0367 in any text editor and you will see your variable
>> there.
>
>I can't. I'm unable to open or download or change the permissions. Is it
>an array?
A serialized array, yes.
-
michal migurski- contact info
Doug Coning said the following on 9/26/2003 12:15 PM>>
Greetings All,
I am creating a 'links' page and was wondering if there was a way in PHP
to test the response of an outside link? I'm sure everyone here has
clicked on a links page link and have a "No Page Found" error because no
one is keepi
Greetings All,
I am creating a 'links' page and was wondering if there was a way in PHP
to test the response of an outside link? I'm sure everyone here has
clicked on a links page link and have a "No Page Found" error because no
one is keeping the links uptodate. I was wondering if there was a w
Thanks all! This is definitely one of the most helpfull mailing lists I
belong to.
Jeff
> -Original Message-
> From: Nitin [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 26, 2003 11:26 AM
> To: Jeff McKeon; php
> Subject: Re: [PHP] str_pad
>
>
> It gives
>
> dbranch_no field in
>
It gives
dbranch_no field in
$line array
"$line->dbranch_no" replaces the value of 'dbranch_no' field stored in
'$line' array.
Enjoy
Nitin
- Original Message -
From: "Jeff McKeon" <[EMAIL PROTECTED]>
To: "Nitin" <[EMAIL PROTECTED]>; "Chris Grigor"
<[EMAIL PROTECTED]>; "php" <[EMAIL PRO
On Fri, 2003-09-26 at 11:18, Robert Cummings wrote:
> On Fri, 2003-09-26 at 11:00, Jeff McKeon wrote:
> > Just learning PHP and figuring out all the syntax and stuff. Anyway I
> > had a question about the code example in this post...
> >
> > What does the "->" do in:
> >
> > $dbranch = str_pad($
No, $line is an object (class instance) and dbranch_no is a property of
the object.
www.php.net/oop
Jeff McKeon wrote:
Just learning PHP and figuring out all the syntax and stuff. Anyway I
had a question about the code example in this post...
What does the "->" do in:
$dbranch = str_pad($line
On Fri, 2003-09-26 at 11:00, Jeff McKeon wrote:
> Just learning PHP and figuring out all the syntax and stuff. Anyway I
> had a question about the code example in this post...
>
> What does the "->" do in:
>
> $dbranch = str_pad($line->dbranch_no, 6, '', STR_PAD_LEFT);
>
> Is dbranch_no a "clas
Just learning PHP and figuring out all the syntax and stuff. Anyway I
had a question about the code example in this post...
What does the "->" do in:
$dbranch = str_pad($line->dbranch_no, 6, '', STR_PAD_LEFT);
Is dbranch_no a "class" I don't know about?
Thanks,
Jeff
> -Original Messag
Hi!
Is there any sample code available how to use properly this API ?
zend_file_handle file_handle;
file_handle.type = ZEND_HANDLE_FILENAME;
file_handle.filename = "c:\php\hello.php";
file_handle.free_filename = 0;
file_handle.opened_path = NULL;
php_execute_script( &file_handle TSRMLS_CC );
Wh
>> What's actually stored on the server when using sessions?
>>
>> I've built a content management system on a commercial host, PHP 4.3.2,
>> Apache 1.3.28, and use session_save_path() to specify a directory. When
>> someone logs in, I check the username and password against the database, and
>> s
I finally have my installation of PHP 4.3.3 to work, thanks to your help and
a couple other people on IRC. For knowledge sack here's how I resolve the
problem.
Installed port/packages of...
png-1.2.5p1
jpeg-6b
gd-1.8.3 (built in library of PHP would not work for me)
ImageMagick-5.2.9
zlib (build
Lowell Allen wrote:
What's actually stored on the server when using sessions?
I've built a content management system on a commercial host, PHP 4.3.2,
Apache 1.3.28, and use session_save_path() to specify a directory. When
someone logs in, I check the username and password against the database, an
Thanks Mike,
I set the content type to be text/xml in the C program. Just don't
understand it at all. There appears to be no reason why it's not working.
Thanks for your help so far, any more suggestions?
Brian.
- Original Message -
From: "Mike Brum" <[EMAIL PROTECTED]>
To: "'Brian Moyn
Hello Ho,
If you are using a printer that is postscript enabled (like HP
LaserJet's) it is easy. Simply convert whatever you want to print to a
postscript file (there are several utilities on freshmeat.net they do
this) and then using PHP open a socket to the JetDirect card and send
the data. HP's
What's actually stored on the server when using sessions?
I've built a content management system on a commercial host, PHP 4.3.2,
Apache 1.3.28, and use session_save_path() to specify a directory. When
someone logs in, I check the username and password against the database, and
save username as a
PEAR has a class for image manipluation, http://pear.php.net. Also
there was an excellent class on phpclasses.org that allows you to easily
crop, resize, shrink, etc, etc, I can't remember its name but I used it
for a while.
Dave [Hawk-Systems] wrote:
have a situation where clients will be up
Hey guys,
Have picked up a large hosting package which is really great but cant afford
to have it for long at its current price.
So have decided to share/partition...If anyones intrested in really cheap
hosting you'll get
20mb space
2 mysql dbs
350mb bandwidth
php (duh)
cgi-bin etc etc
No ads.
for
> I am trying to find out how to pass a multidimensional array within a hidden
> input of a form.
> Would it be something like this?
>
>
>
> Any advice would be forever appreciated...
Here's a recycled reply from a similar question last month.
To pass an array in a form, you should serialize i
Hello, my name is anson, I am a year 2 student in Hong
Kong Ive. I have decided to do a final year project by
using php to make a wireless ordering system for
restaurants. In my project, I decide to use php
scripts to sent the order content or some information
to different printers. I have 3 printe
hi ,
i 'm looking for a free php + mysql hosting
thanks .
Fatih Olcer.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
See the image magick tools (http://www.imagemagick.org/) and their API to PHP
(http://pear.php.net/package-info.php?package=imagick)
-Mensaje original-
De: Dave [Hawk-Systems] [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 26 de septiembre de 2003 14:32
Para: [EMAIL PROTECTED]
Asunto:
I don't really know much about Curl, but what it -sounds- like is that Curl
isn't sending the proper headers/MIME types to the PHP script and PHP isn't
putting the input into the $_FILES array. You might want to look in your
$_GET or $_POST array for existance of the file to see if it's being sent
have a situation where clients will be uploading images via a web interface.
We need to process these images to create thumbnails. In the past we have used
image but have found that the output is somewhat less than desireable and
limited to jpg.
We would like to be able to soften the image p
of course, you can specify the optional argument STR_PAD_LEFT like:
$dbranch = str_pad($line->dbranch_no, 6, '', STR_PAD_LEFT);
Enjoy,
Nitin
- Original Message -
From: "Chris Grigor" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 4:49 PM
Subject: [PH
www.hotscripts.com
Angelo Zanetti wrote:
anyone know of a good HTML mailing list? sorry for the OT post.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$dbranch = str_pad($line->dbranch_no, 6, STR_PAD_LEFT);
there's a aslo
$dbranch = str_pad($line->dbranch_no, 6, STR_PAD_BOTH);
and that pads it in the centre
pete
Chris Grigor wrote:
This should be quite an easy task for some...
say for example $line->dbranch has a value of 3
I know that 3 space
This should be quite an easy task for some...
say for example $line->dbranch has a value of 3
I know that 3 spaces will be added on to the end of $dbranch
$dbranch = str_pad($line->dbranch_no, 6);
so the value of $dbranch should look like "3 "
Is there anyway to right justify the 3 using
Hi,
Saturday, September 27, 2003, 8:25:05 AM, you wrote:
H> hi i have a serious problem i want to create qmail user using vpopmail
H> but all the function are for 4.0.5 - 4.2.3 only. what should i do now any
H> help will be highly appreciated.
H> Haseeb_
hi i have a serious problem i want to create qmail user using vpopmail but all the function are for 4.0.5 - 4.2.3 only. what should i do now any help will be highly appreciated.Haseeb
IncrediMail - Email has finally evolved - Click H
Thanks Chris but I don't think that is the issue as the file is being
created and the script is running through.
It's just that $_FILES contains no data which it should?? I is confused as
they say because it works perfectly using the browser ...
- Original Message -
From: <[EMAIL PROTECT
At a first glance:
$fp=fopen(brianLog1, "w+");
brianlog1 should either be in quotes if that's the name of the file and the
file doesn't have an extension. Or maybe it's a variable in which case
you'll need to put the $ in front of it..
Hope that helps
Regards
Chris
-Original Message--
Hi there,
Hopefully someone can shed some light for us on this.
We have a client who is sending us a file through a C program which uses Curl. At our
end we have a php script to accept the file passed through the form. This php script
works fine using a browser however, it does not pick up what
anyone know of a good HTML mailing list? sorry for the OT post.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 26 Sep 2003 08:49:58 - Issue 2319
Topics (messages 163988 through 164018):
Re: Understanding code.. again
163988 by: Jeff McKeon
163989 by: R'twick Niceorgaw
163990 by: Chris Sherwood
163991 by: Brad Pauly
163993 by: Jeff McKeon
Re:
Hi,
It's a "C Like Syntax"
(condition)?true:false;
is like :
if (condition) true
else false
regards.
P.E. Baroiller
"Jeff McKeon" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
I've just picked up a more advanced book on PHP and it has a lot of
example code in it. I und
67 matches
Mail list logo