Hi all ...
I have script that looks like :
if(file_exists($filename)){
$len = filesize($filename);
//header("Content-type: attachment/pdf");
header('Content-Type: application/pdf');
//header("Content-Type: application/octet-stream");
header("Cont
I vote for the first option. xD
Niklas
Jason Wong wrote:
On Monday 20 September 2004 10:11, Afan Pasalic wrote:
I have right now on my server php 4.3.4 without GD2 support. Actually,
doesn't have GD support at all (nothing on phpinfo(); ).
How can I "turn it on"? :)
You can try performing an erot
-Hatem
- Original Message -
From: "Whitehawk Stormchaser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 18, 2004 11:15 PM
Subject: [PHP] math in PHP
> Hi!
> I have been trying to make some sort of calculator in PHP, but I have
stumbled
> on a problem... I have
adwinwijaya wrote:
Hi all ...
I have script that looks like :
if(file_exists($filename)){
$len = filesize($filename);
//header("Content-type: attachment/pdf");
header('Content-Type: application/pdf');
//header("Content-Type: application/octet-stream");
Jason FB wrote:
PHP General List,
Regarding my the previous post -- the script had another bug in it which
I felt silly for having posted since it's so obvious at the very top (a
misisng "=" sign).
However, I am still having a problem with this script practically copied
and pasted from the PHP
Daniel Guerrier wrote:
I'm using this code to dynamically retrieve windows
media files and send it to the browser. I thought the
cache header would prevent the file from being cached.
The only problems is the .wmv file still ends up in my
IE temp files folder. How can I prevent this from
happenin
John Taylor-Johnston wrote:
No one?
Noone knows the structure of your table. Is the table properly
normalized? From the original array it seems you need at least 2 tables
to properly hold the information.
I had an $array, with a list of authors and an entry number. Below is the code I used.
No
I'm currently using a PHP/Apache 2.0 (prefork) combination which seems to be
running reasonably well, however I've just become familiar with the
potential issues with PHP/Apache 2.0 so I intend to roll back to Apache 1.3
some time soon.
I have a question about a particular error I have received
On Monday 20 September 2004 18:57, Duncan Maitland wrote:
> I have a question about a particular error I have received with this setup:
>
> Many of the virtual hosts on my server have custom php_value settings. A
> user has reported that a particular error occurred in a PHP script, and the
> messa
Hi,
(I know a lot has already been said but...)
On Sat, 18 Sep 2004 17:37:59 -0400
Andre Dubuc <[EMAIL PROTECTED]> wrote:
> Hi,
>
> After googling 'Web Etiquette, Top Posting', I still am
> puzzled why some people on this list insist that top
> posting is bad form, rather than personal preferen
On Sun, 19 Sep 2004 06:11:17 +0800
Jason Wong <[EMAIL PROTECTED]> wrote:
> On Sunday 19 September 2004 05:37, Andre Dubuc wrote:
[...]
> > Seems to me much easier to scan the Subject, see how it's
> > developing by reading the reply on the top, rather than
> > have to wade through even snipped o
Hi,
On Mon, 20 Sep 2004 04:01:47 +0300
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote:
> My email client (Outlook Express) puts a lot of information
> at the top of the message automaticly, like:
>
> The signature,
> --- original message ---
> The From line
> - The to line
> - The date line
> - The
FWIW...
On Sat, 18 Sep 2004 14:46:37 -0700 (PDT)
Chris Shiflett <[EMAIL PROTECTED]> wrote:
> --- Justin French <[EMAIL PROTECTED]> wrote:
> > Can someone recommend a decent PHP5 book?
>
> I think Upgrading to PHP 5 is a particularly good book:
>
> http://www.oreilly.com/catalog/upgradephp5/
+1
Hi all.
Hoping this might be relatively easy...
I'm wondering if I can create a dropdown menu (ABCDE) by
using a select statement and then populating this using PHP...?
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
-
--
PHP
Hi Jason,
On Sun, 19 Sep 2004 23:42:09 -0700
"Jason Davidson" <[EMAIL PROTECTED]> wrote:
> are we still on top posting.. shessh. i only top post cuase
> im lazy...
Maybe we should talk about "one-liners" next time...
Anyway, I'm sure many people will appreciate it if you trim
your posts.
Thank
- Edwin - wrote:
On Sun, 19 Sep 2004 06:11:17 +0800
Jason Wong <[EMAIL PROTECTED]> wrote:
On Sunday 19 September 2004 05:37, Andre Dubuc wrote:
[...]
Seems to me much easier to scan the Subject, see how it's
developing by reading the reply on the top, rather than
have to wade through even snipped o
On Thu, 16 Sep 2004 13:02:31 +0100
"Harlequin" <[EMAIL PROTECTED]> wrote:
> Hi all.
>
> Hoping this might be relatively easy...
>
> I'm wondering if I can create a dropdown menu
> (ABCDE) by using a select statement and
> then populating this using PHP...?
Yes.
Hint: Do a "foreach" on the resu
Duncan Maitland wrote:
I'm currently using a PHP/Apache 2.0 (prefork) combination which seems to be
running reasonably well, however I've just become familiar with the
potential issues with PHP/Apache 2.0 so I intend to roll back to Apache 1.3
some time soon.
I have a question about a particula
[snip]
I definitely mind. I don't believe in rewarding bad behavior. It is
reasonable to contribute to the productive development of solutions, but
the attitude in this group is not productive. I have the impression that
the
real reason you want answers is so that you can continue in unproductive
Ha, ha, ha (sarcastic...)
10 points for Jason and Niklas.
Guys, please, if you don't want to help - keep your stupid comments for
yourself. This is a place to help people, not make a laugh at them.
Yes, I am beginner and I am not ashamed of it. But, you have to be
ashamed of your comments.
Afan
--
Living in the past?
Harlequin wrote:
Hi all.
Hoping this might be relatively easy...
I'm wondering if I can create a dropdown menu (ABCDE) by
using a select statement and then populating this using PHP...?
Yes, it is relatively easy, and it is answered in virtualy every PHP
book. I recomend you
[snip]
Ha, ha, ha (sarcastic...)
10 points for Jason and Niklas.
Guys, please, if you don't want to help - keep your stupid comments for
yourself. This is a place to help people, not make a laugh at them.
Yes, I am beginner and I am not ashamed of it. But, you have to be
ashamed of your comments.
[
If you have a Linux box available here's something to try although it
does have some required software.
http://www.babysimon.co.uk/khtml2png/index.html
There is also a link on the site for a commercial product for Windows that
does the same thing.
I can't endorse either one as I have not used
As you said: easy ace: I didn't call THEM stupid - I am not so stupid.
It was about their COMMENTS.
Also, I spend lat two days trying to figure out what would be solution
for me and wasn't able. I cheked php manual (installation, imge
functions and many more), "google-ed" many sites and - no cle
Hello, folks,
Is there any tool/script to convert PostgreSQL code from PHP scripts into
MySQL (pg_connect > mysql_connect and so forth)?
I'm talking about a website with thousands of code lines.
Also, any script which can convert PostgreSQL db data schema to MySQL? I
only found tutorials for My
[snip]
As you said: easy ace: I didn't call THEM stupid - I am not so stupid.
It was about their COMMENTS.
Also, I spend lat two days trying to figure out what would be solution
for me and wasn't able. I cheked php manual (installation, imge
functions and many more), "google-ed" many sites and - no
Hi all,
I have recently moved a site over to a new server. Now certain
characters are being replaced by weird characters. EG: the ' single
quote is being replaced by a question mark and other characters are also
affected. the information that contains these characters is inside a
mysql database.
running phpinfo() I'm getting this:
'./configure' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin'
'--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share'
'--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/lib'
'--localstatedir=/var/lib' '--sharedstatedir=/usr/co
Hi,
[Warnung: pretty long email about trying to make use of MVC and php5]
I'm seeking some input in (architectually) designed my code so I can reach the
following:
- "overview" from the subject is defined as a table rows/columns displaying simple or
complex results from an sql query
- it is part
[snip]
running phpinfo() I'm getting this:
no GD
also found this:
"... Extensions listed here are (or will be soon) available as external
modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME
:
mysql pgsql sqlite gd imap ldap bcmath bz2 calendar cpdf crack curl
cyrus db dba db
Hi,
> > Happy top posting,
>
> Have fun driving on the wrong side of the road.
Hey that can be fun! Especially in crowded downtown areas. It's a
real challenge!
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ok. That was my thought too.
When I connect to my server (using putty) I found in root directory also
gd.rpm/
gd-2.0.26/
gd-2.0.26.tar.gz
means - I have gd installed on comp. Just have to recompile server, right?
Jay Blanchard wrote:
[snip]
running phpinfo() I'm getting this:
no GD
also found thi
On Mon, 20 Sep 2004 16:18:26 +0300, Stefan Moldoveanu
<[EMAIL PROTECTED]> wrote:
> Is there any tool/script to convert PostgreSQL code from PHP scripts into
> MySQL (pg_connect > mysql_connect and so forth)?
> I'm talking about a website with thousands of code lines.
In vi:
:%s/pg_/mysql_/g
> Als
Please do not top post.
On Monday 20 September 2004 21:56, Afan Pasalic wrote:
> Ok. That was my thought too.
> When I connect to my server (using putty) I found in root directory also
> gd.rpm/
> gd-2.0.26/
> gd-2.0.26.tar.gz
> means - I have gd installed on comp. Just have to recompile server, r
> I definitely mind. I don't believe in rewarding bad behavior. It is
> reasonable to contribute to the productive development of solutions, but the
> attitude in this group is not productive. I have the impression that the
> real reason you want answers is so that you can continue in unproductive
Merlin wrote:
Hi there,
I want to filter out ip adresses out of a given text string. They are
inside a logfile and values are seperated by tabs. I tryed sub_str which
works fine if you know the length of the characters. In case of the ip
adress this is not the case, since they are sometimes shor
Afan Pasalic wrote:
also found this:
"... Extensions listed here are (or will be soon) available as external
modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME :
mysql pgsql sqlite gd ...
then do it:
# urpmi php-gd
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
[snip]
And here is the action page, testing2.php.
if ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') {
echo "Welcome, Andrew."; }
And (shocker!) I got a blank page. So I turned out display errors and got
this:
Parse error: syntax error, unexpected T_BOOLEAN_AND in
c:\TSW\pages\testing
Burhan Khalid wrote:
[snip]
And here is the action page, testing2.php.
if ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') {
echo "Welcome, Andrew."; }
And (shocker!) I got a blank page. So I turned out display errors and
got this:
Parse error: syntax error, unexpected T_BOOLEAN_AND in
I am using PHP to create a button on a window so that a new window is
created when the button is clicked using javaScript. Is there a way to
create a new window inline; that is create a window on top of the
current window without having the surfer press a button?
Here is my current onClick cod
I have noticed that an apostrophy is automatically escaped with a "\",
or at least appears to be if the surfer enters an apostrophy in a text
field. Has this always been the case or is there a setting in the
php.ini file that contols this?
Todd
--
PHP General Mailing List (http://www.php.net/)
this is javascript question isnt it.. but to end the thread quickly...
just dont put your js in the button.. just print it ..
print "win-=open(...);win.focus();";
that wiill open a win when the browser parses it.
Jason
Todd Cary <[EMAIL PROTECTED]> wrote:
>
> I am using PHP to create
Turn off magic_quotes_gpc in the php.ini file, they are bad bad abd..
magic_quotes_gpc 0
Jason
Todd Cary <[EMAIL PROTECTED]> wrote:
>
> I have noticed that an apostrophy is automatically escaped with a "\",
> or at least appears to be if the surfer enters an apostrophy in a text
> field. Ha
JavaScript, not a PHP question., but chekc out onload()
MT
At 11:42 AM 9/20/2004, Todd Cary wrote:
I am using PHP to create a button on a window so that a new window is
created when the button is clicked using javaScript. Is there a way to
create a new window inline; that is create a window on t
Todd,
>From the PHP manual:
magic_quotes_gpc boolean
Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes
are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped
with a backslash automatically.
Note: If the magic_quotes_sybase dire
Todd Cary wrote:
I am using PHP to create a button on a window so that a new window is
created when the button is clicked using javaScript. Is there a way to
create a new window inline; that is create a window on top of the
current window without having the surfer press a button?
PHP cannot ope
Todd Cary wrote:
I have noticed that an apostrophy is automatically escaped with a "\",
or at least appears to be if the surfer enters an apostrophy in a text
field. Has this always been the case or is there a setting in the
php.ini file that contols this?
Magic quotes.
http://us2.php.net/manua
Many thanks to all.
Todd
John Legg wrote:
Todd,
From the PHP manual:
magic_quotes_gpc boolean
Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically.
Hi, I have a bit of a cold today so I probably would have figured this
out for myself eventually but hey ;-)
Right I have a script that I need to run around 90 times thru a cron job
but passing a different i.d. to it each time.
I have experimented with running all 90 at once and its a no go as it
> I have recently moved a site over to a new server. Now certain
> characters are being replaced by weird characters. EG: the ' single
> quote is being replaced by a question mark and other characters are also
> affected. the information that contains these characters is inside a
> mysql database.
> Hi, I have a bit of a cold today so I probably would have figured this
> out for myself eventually but hey ;-)
>
> Right I have a script that I need to run around 90 times thru a cron job
> but passing a different i.d. to it each time.
>
> I have experimented with running all 90 at once and its
Some great recommendations, but my first thought is wondering if you can
interface with IE via COM or something. Or open the URL via IE and use
the Windows API to do a PRINT SCREEN or ALT-PRINT SCREEN to capture it
to the clipboard and do something funny that way.
If I had time right now, I'd lo
On Mon, 2004-09-20 at 16:45, Wouter van Vliet wrote:
> >
> > What I would like to do is fork off say 5-10 at a time and when one is
> > done start another one in its place, as they all take different length
> > of times to compleate.
> >
> > Any clues at where to start? Here is my fork all 90+ co
play around with popen() and stream_select()
John Wards wrote:
Hi, I have a bit of a cold today so I probably would have figured this
out for myself eventually but hey ;-)
Right I have a script that I need to run around 90 times thru a cron job
but passing a different i.d. to it each time.
I have e
On Mon, 2004-09-20 at 16:56, Marek Kilimajer wrote:
> play around with popen() and stream_select()
Oooh that looks handy.
More night time reading I think!
Any further ideas to save a man with a cold from using his brain would
be great!
Cheers
John
--
PHP General Mailing List (http://www.php.n
John Wards wrote:
Hi, I have a bit of a cold today so I probably would have figured this
out for myself eventually but hey ;-)
Right I have a script that I need to run around 90 times thru a cron job
but passing a different i.d. to it each time.
not suprised.
I have experimented with running all
On Mon, 20 Sep 2004 16:36:51 +0100, John Wards <[EMAIL PROTECTED]> wrote:
> Right I have a script that I need to run around 90 times thru a cron job
> but passing a different i.d. to it each time.
>
> I have experimented with running all 90 at once and its a no go as it
> just makes the server run
Gryffyn, Trevor wrote:
Some great recommendations, but my first thought is wondering if you can
interface with IE via COM or something. Or open the URL via IE and use
the Windows API to do a PRINT SCREEN or ALT-PRINT SCREEN to capture it
to the clipboard and do something funny that way.
Good i
And how would I do
1. Configure webserver to send the right headers for
.wmv files.
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> Daniel Guerrier wrote:
> > I'm using this code to dynamically retrieve
> windows
> > media files and send it to the browser. I thought
> the
> > cache header would
Hi People,
I launched The PHP WTF last night. It is for showcasing examples of
bad code we all run across while developing PHP or working with other
people's code. Hopefully it'll help demonstrate good design from bad
design.
If you guys have any code samples that you would like to submit please
On Thu, 16 Sep 2004 13:02:31 +0100, Harlequin
<[EMAIL PROTECTED]> wrote:
> Hi all.
>
> Hoping this might be relatively easy...
>
> I'm wondering if I can create a dropdown menu (ABCDE) by
> using a select statement and then populating this using PHP...?
>
> --
> -
> M
I have some gmail accounts of anyone wants one. Email me off list.
Limited supply, first requests, etc..
And now for my php question:
Which do you prefer, echo() or print() ?
I find that after I've done a bunch of Perl coding and I'm back on
some PHP work I use print. But then after I do a bu
Daniel Guerrier wrote:
And how would I do
1. Configure webserver to send the right headers for
.wmv files.
Depends on your webserver.
For apache, place .htaccess file to the media directory with some Header
directives, more here or on apache mailing list:
http://httpd.apache.org/docs/mod/mod_hea
[snip]
Which do you prefer, echo() or print() ?
[/snip]
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Before I go screwing this code up I thought I would ask for the
formatting. How would you write the following in PHP?
if $entry not equal to "Copy Change"
OR
"Banner Change"
OR
"Price Change"
AND
$ro
Hi,
We migrated from PHP 4 to PHP 5 and we are seeing this error message("(0x00)
in on line") on almost all pages. Has anyone seen this message? What is the
cause of this message? Also I couldn't get the line number and file
information also.
Thanks in advance
Raghu
[EMAIL PROTECTED]
--
PHP Ge
[snip]
Before I go screwing this code up I thought I would ask for the
formatting. How would you write the following in PHP?
if $entry not equal to "Copy Change"
OR
"Banner Change"
OR
"Price Change"
AN
On Mon, 20 Sep 2004, Jay Blanchard wrote:
> There are several ways here is one
>
> if(("" != $row['photo_check']) && (("Copy Change" != $entry) || ("Banner
> Change" != $entry) || ("Price Change" != $entry)))
>
> Note the parentheses to define preference order.
That's what I was looki
Jay Blanchard wrote:
[snip]
Before I go screwing this code up I thought I would ask for the
formatting. How would you write the following in PHP?
if $entry not equal to "Copy Change"
OR
"Banner Change"
OR
Mattias Thorslund wrote:
Disclaimer: I have probably left a silly typo somewhere.
Sure did:
My old nemesis, end parethesis (either too few or too many).
It should be:
if("" != $row['photo_check']){
switch($entry){
case "Copy Change":
case "Banner Change":
case "Price Change":
Greg Donald wrote:
I have some gmail accounts of anyone wants one. Email me off list.
Limited supply, first requests, etc..
I would be interested if there's still one left ;)
And now for my php question:
Which do you prefer, echo() or print() ?
I find that after I've done a bunch of Perl coding a
[snip]
>There are several ways here is one
>
Longer but seems more readable to me.
[/snip]
Another way
$arrFoo = array (
'Copy Change',
'Banner Change',
'Price Change',
);
if(!(in_array($entry)) && ("" != $row['photo_check']))
--
PHP General Mailing List (
True, you'd have to run it on the web client end, but you can run IE on
the server to access the HTML the server is err..serving. The server
can also be a client, in other words. So your server can generate a
thumbnail of what it's serving out by acting as a client for a second.
As long as their
[snip]
Another way
$arrFoo = array (
'Copy Change',
'Banner Change',
'Price Change',
);
if(!(in_array($entry)) && ("" != $row['photo_check']))
[/snip]
Oops
$arrFoo = array (
'Copy Change',
'Banner Change',
'Price Change',
);
if(!(in_ar
Jay Blanchard wrote:
Oops
Yeah, some of us (including myself) could use a php validator in our
mail clients... Maybe a plugin for T-bird?
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> -Original Message-
> From: raditha dissanayake [mailto:[EMAIL PROTECTED]
> Sent: 18 September 2004 03:22
> To: Michael Mao
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] thumbnail of webpage
>
> Michael Mao wrote:
>
> > Is there a way to capture a snapshot of a html page and save it as a
Stefan Holmes wrote:
-Original Message-
From: raditha dissanayake [mailto:[EMAIL PROTECTED]
Sent: 18 September 2004 03:22
To: Michael Mao
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] thumbnail of webpage
Michael Mao wrote:
Is there a way to capture a snapshot of a html page and save it as
I have some invitations too! If you wants one, ask me off list.
Limited supply, first requests, etc, like Greg said!
"Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> I have some gmail accounts of anyone wants one. Email me off list.
> Limited supply, first requests,
Great link. This tool is exactly what I'm looking for. Thanks!
On Mon, 20 Sep 2004 08:01:15 -0500 (EST), Ed Curtis <[EMAIL PROTECTED]> wrote:
>
> If you have a Linux box available here's something to try although it
> does have some required software.
>
> http://www.babysimon.co.uk/khtml2png/in
Ricardo Cezar wrote:
I have some invitations too! If you wants one, ask me off list.
Limited supply, first requests, etc, like Greg said!
"Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
I have some gmail accounts of anyone wants one. Email me off list.
Limited supply,
Sorry, will never happen again!
I was justing trying to help. :(
"Rick Fletcher" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> Ricardo Cezar wrote:
> > I have some invitations too! If you wants one, ask me off list.
> > Limited supply, first requests, etc, like Greg said!
>
From: "Markus Fischer" <[EMAIL PROTECTED]>
Which do you prefer, echo() or print() ?
Albeit that, they're identical I think (both are core language construct,
no real functions).
Come on... all good bottom-posting-firewall-turning-off PHP programmers know
that print() is a function and returns a v
On Mon, 20 Sep 2004 12:15:18 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote:
> Please stop talking about gmail invites on the list. Anyone who wants
> one, or who has some to give away, just do a google search for a place
> to get or give them.
>
> Sites like this one (the 3rd result for "free gm
Rick Fletcher wrote:
Ricardo Cezar wrote:
I have some invitations too! If you wants one, ask me off list.
Limited supply, first requests, etc, like Greg said!
"Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
I have some gmail accounts of anyone wants one. Email me off
On Mon, 20 Sep 2004 15:25:40 -0400, John Holmes
<[EMAIL PROTECTED]> wrote:
> Come on... all good bottom-posting-firewall-turning-off PHP programmers know
> that print() is a function and returns a value while echo does not. We're
> all using templates, anyhow, so your code wouldn't have but one ech
John Nichel wrote:
Yeah...what he said. Don't you people dare try to be nice on this list.
Here we are trying to compete with the qmail list for nastiness, and
y'all try to do something nice. Jerks.
Ahhh, you guys have been cracking me up the past several days. It's
been a good week. :)
--
Hi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
GH wrote:
Hi
I think I may know what's causing your problem, but just to be sure, can
you provide just a bit more information?
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Hi...
Sorry about the last post... did not realize i hit the wrong button
Here is my question. Sorry if it is a basic answer... new to php
I have PHP/mySQL and would like to know how i can set use an external
file to prevent myself for having to code everytime the
"connection/login" to mysql.
[snip]
I have PHP/mySQL and would like to know how i can set use an external
file to prevent myself for having to code everytime the
"connection/login" to mysql.
[/snip]
http://www.php.net/include
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
Hi Gary,
Look up http://php.net/include
It's just like "copy and pasting" the code in the external file in the
one your including it into.
Best,
Daniel Kushner
__
Director of Education
Zend Technologies Ltd.
[EMAIL PROTECTED]
http://www.zend.com
===
GH wrote:
Hi...
Sorry about the last post... did not realize i hit the wrong button
Here is my question. Sorry if it is a basic answer... new to php
I have PHP/mySQL and would like to know how i can set use an external
file to prevent myself for having to code everytime the
"connection/login" to
GH wrote:
Hi...
Here is my question. Sorry if it is a basic answer... new to php
I have PHP/mySQL and would like to know how i can set use an external
file to prevent myself for having to code everytime the
"connection/login" to mysql.
I was thinking of making an external file bu
So i would not need to use correct...
Also as to the other question I asked:
WHat should I use in the other file? the complete connection code or
just the values as variables?
On Mon, 20 Sep 2004 13:23:20 -0700, Daniel Kushner <[EMAIL PROTECTED]> wrote:
> Hi Gary,
>
> Look up http://php.net/
[snip]
So i would not need to use correct...
Also as to the other question I asked:
WHat should I use in the other file? the complete connection code or
just the values as variables?
[/snip]
Put the entire connection string and error checking for the connection
in the 'other file'.
--
PHP Gen
[snip]
So i would not need to use correct...
Also as to the other question I asked:
WHat should I use in the other file? the complete connection code or
just the values as variables?
[/snip]
Something like this:
Main file:
includeFile.php
Cheers,
-jesse-
--
PHP General Mailing List (htt
GH wrote:
So i would not need to use correct...
Also as to the other question I asked:
WHat should I use in the other file? the complete connection code or
just the values as variables?
Yes, you need to enclose it in opening/closing php tags. It will
include the file inline, just as if you wr
Greg Donald wrote:
On Mon, 20 Sep 2004 12:15:18 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote:
Please stop talking about gmail invites on the list. Anyone who wants
one, or who has some to give away, just do a google search for a place
to get or give them.
Sites like this one (the 3rd result for
On Mon, 20 Sep 2004 14:27:41 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote:
> Greg Donald wrote:
> I didn't reply to your email. The email I replied to mentioned nothing
> related to PHP.
Exactly.. you probably don't use a threaded email client, else you
might have noticed the thread was on-topi
John Wards wrote:
On Mon, 2004-09-20 at 16:56, Marek Kilimajer wrote:
play around with popen() and stream_select()
Oooh that looks handy.
More night time reading I think!
Any further ideas to save a man with a cold from using his brain would
be great!
Cheers
John
Wanted to do something interesting
1 - 100 of 136 matches
Mail list logo