php-general Digest 18 Dec 2003 14:48:34 -0000 Issue 2480
Topics (messages 172922 through 172951):
Update issue - more then likely simple problem
172922 by: Eric Holmstrom
172930 by: Eugene Lee
get output in .html file
172923 by: martin
172926 by: Shawn McKenzie
Links of Table to other DB....
172924 by: KidLat Ngayon
PHP IDE opinions
172925 by: Shawn McKenzie
[Newbie Guide] For the benefit of new members
172927 by: Ma Siva Kumar
printing support
172928 by: Danny Schalken
Re: CLI question
172929 by: Ford, Mike [LSS]
172951 by: Rodney Green
E-Mail validation – Checking for 'free' e-mail address
172931 by: Jason Paul
fopen does not open URL-files
172932 by: Taras Panchenko
Re: PHP LDAP query - need to add Exchange fields
172933 by: Stuart
Re: php/mysql data display
172934 by: rush
php special permissions
172935 by: Mat Harris
172936 by: pete M
172937 by: Mat Harris
172938 by: Eugene Lee
172939 by: Mat Harris
172940 by: Andrew Brampton
172942 by: David T-G
172943 by: Mat Harris
172949 by: Eugene Lee
Re: Links of Tables from other DB
172941 by: Raditha Dissanayake
includes...
172944 by: Tristan.Pretty.risk.sungard.com
172945 by: Marco Tabini
172946 by: BAO RuiXian
172947 by: Tristan.Pretty.risk.sungard.com
172948 by: BAO RuiXian
Countries, cities, states database
172950 by: Augusto Cesar Castoldi
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi there,
What im trying to do is read the information from a field in a table called
PARTNO. Then add RU to the front of whatever is in the PARTNO field.
So far i have this.
//connect details rarara
//query
$query= "SELECT PARTNO FROM russell2 ";
// make a query to get old stuff from DB col
$oldstuff = mysql_query($query, $conn) or die(mysql_error());
while ($new = mysql_fetch_array($oldstuff)){
$final = $new['PARTNO'];
//new infomation i want to add infront of PARTNO data
$newstuff = 'RU';
//Combining the two resluts together
$results = $newstuff.$final;
// just use this to check it was going through properly
print_r($results<br>);
}
The problem i have to get it to update. If i add this (see below) inside the
while statement it continually loops, and outside it doesnt work.
$update = "UPDATE rocket SET PARTNO = '$results''";
mysql_query($update);
I know the answer is simple but i seem to be stuck on it.
Thankyou
Eric Holmstrom
--- End Message ---
--- Begin Message ---
On Thu, Dec 18, 2003 at 01:39:57PM +1100, Eric Holmstrom wrote:
>
> What im trying to do is read the information from a field in a table called
> PARTNO. Then add RU to the front of whatever is in the PARTNO field.
>
> So far i have this.
>
> //connect details rarara
> //query
> $query= "SELECT PARTNO FROM russell2 ";
Didn't you say the table was called "PARTNO", not "russell2"?
> // make a query to get old stuff from DB col
> $oldstuff = mysql_query($query, $conn) or die(mysql_error());
> while ($new = mysql_fetch_array($oldstuff)){
> $final = $new['PARTNO'];
> //new infomation i want to add infront of PARTNO data
> $newstuff = 'RU';
> //Combining the two resluts together
> $results = $newstuff.$final;
> // just use this to check it was going through properly
> print_r($results<br>);
> }
>
> The problem i have to get it to update. If i add this (see below) inside the
> while statement it continually loops, and outside it doesnt work.
>
> $update = "UPDATE rocket SET PARTNO = '$results''";
> mysql_query($update);
>
> I know the answer is simple but i seem to be stuck on it.
I don't think you can just update a row that you just fetched within the
same query. If you do this in PHP, you should split the update into a
separate loop. Of course, it would be faster and more efficient to have
MySQL do it for you:
UPDATE rocket SET PARTNO = CONCAT('RU',PARTNO)
--- End Message ---
--- Begin Message ---
Does somebody know how to get the output of an .php file into an .html file
(server side). This in order to cache generated pages for futur visitors.
thanks
Martin
--- End Message ---
--- Begin Message ---
Buffer output and then write it to a file. I do it all the time.
ob_start();
//output some stuff here
$content = ob_get_contents();
ob_end_flush();
if ($handle = fopen("yourfile.html", "w")) {
fwrite($handle, $content);
fclose($handle);
}
-Shawn
"Martin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does somebody know how to get the output of an .php file into an .html
file
> (server side). This in order to cache generated pages for futur visitors.
>
> thanks
>
> Martin
--- End Message ---
--- Begin Message ---
Greetings Guyz.....
I would just like to ask for a help regarding on
"Links of Tables from other DB". I'm just only a
newbie in PHP Programming.
What I have right now is a query result from my table,
and what I wanted to do is on my one of the table I
had is to have a link or button that will open another
page that will get the data from the other table.
It would be highly appreciated if anyone could give me
a sample script or link for a tutorial.
Many Thanks in advance.....
Regards,
ERWIN
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
--- End Message ---
--- Begin Message ---
Any opinions on the most feature rich IDE? I use Maguma now, but I notice
that Zend Studio and phpED have some good profiling features. I didn't see
that Zend had any DB connection features built-in though. Any advice on
these two? Others?
Thanks for your input!
-Shawn
--- End Message ---
--- Begin Message ---
=======================================
This message is for the benefit of new subscribers
and those new to PHP. Please feel free to add
more points and send to the list.
=======================================
1. If you have any queries/problems about PHP try
http://www.php.net/manual/en first. You can
download a copy and use it offline also.
Please also try http://www.php.net/manual/faq.php
to get answers to frequently answered questions
about PHP (added by Christophe Chisogne).
2. Try http://www.google.com next. Searching for
"php YOUR QUERY" may fetch you relevant results
within the first 10 results, if you are lucky.
3. There is a searchable archive of the mailing
list discussion at
http://phparch.com/mailinglists. Many of the
common topics are discussed repeatedly, and you
may get answer to your query from the earlier
discussions.
For example: One of the repeatedly discussed
question in the list is "Best PHP
editor". Everyone has his/her favourite editor.
You can get all the opinions by going through the
list archives. If you want a chosen list try this
link :
http://phpeditors.linuxbackup.co.uk/ (contributed
by Christophe Chisogne).
4. Just put the following code into a file with a
.php extension and access it through your
webserver:
<?php
phpinfo();
?>
This will display tons of info if php is enabled,
or, it will ask you to download a file if php is
NOT enabled. (contributed by Teren)
5. If you are stuck with a script and do not
understand what is wrong, instead
of posting the whole script, try doing some
research yourself. One useful trick is to print
the variable/sql query using print or echo
command and check whether you get what you
expected.
After diagnosing the problem, send the details of
your efforts (following steps 1, 2 & 3) and ask
for help.
6. PHP is a server side scripting language.
Whatever processing PHP does takes
place BEFORE the output reaches the client.
Therefore, it is not possible to access the
users' computer related information (OS, screen
size etc) using PHP. You need to go for
JavaScript and ask the question in a JavaScript
list.
(You can access information SENT by the user's
browser while requesting pages from your server.
You can get the details about browser, OS etc as
reported by this request. - contributed by Wouter
van Vliet)
7. Provide a clear descriptive subject line. Avoid
general subjects like "Help!!", "A Question" etc.
Especially avoid blank subjects.
8. When you want to start a new topic, open a new
mail composer and enter the mailing list address
[EMAIL PROTECTED] instead of replying to
an existing thread and replacing the subject and
body with your message.
9. It's always a good idea to post back to the
list once you've solved your problem. People
usually add [SOLVED] to the subject line of their
email when posting solutions. By posting your
solution you're helping the next person with the
same question. [contribued by Chris W Parker]
10. Ask smart questions
http://catb.org/~esr/faqs/smart-questions.html
[contributed by Jay Blanchard)
Hope you have a good time programming with PHP.
Best regards,
--
Integrated Management Tools for leather industry
----------------------------------
http://www.leatherlink.net
Ma Siva Kumar,
BSG LeatherLink (P) Ltd,
Chennai - 600106
--- End Message ---
--- Begin Message ---
Hello,
I was wondering where the printing support has gone
in php5? Is it still possible? Is is better to use
mysql or sqlite with the new (and improved) php5?
Thanks in advance,
Best regards,
Danny Schalken.
Atrion Information Technology.
--- End Message ---
--- Begin Message ---
On 17 December 2003 21:33, Jay Blanchard wrote:
> [snip]
> I'm using the CLI version 4.3.4 on Windows XP Pro. The script I'm
> writing has only a couple of functions, a couple of "if" conditionals
> and a "while" loop. At the very top of the script I have an echo
> statement with a message I want printed to the console window. The
> problem is that it's not echoed until all of the functions and other
> stuff is executed. Why is this the case? Anything I can do to get the
> echo statement to run first thing?
> [/snip]
>
> Use output buffering and flush the echo statement ....
> http://us2.php.net/manual/en/function.flush.php
Shouldn't that be *don't* use output buffering and...? The flush() function has
nothing to do with output buffering, and if output buffering is on you will need
ob_flush() as well.
Another (and probably better) solution is to create a php-cli.ini file, which will be
picked up only by your CLI version, and put
output_buffering = Off
implicit_flush = On
in it. (Implicit flushing is usually expensive and inappropriate when generating Web
pages, but usually exactly what you want when running from the command line.)
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--- End Message ---
--- Begin Message ---
Ford, Mike [LSS] wrote:
Shouldn't that be *don't* use output buffering and...? The flush() function has nothing to do with output buffering, and if output buffering is on you will need ob_flush() as well.
Another (and probably better) solution is to create a php-cli.ini file, which will be picked up only by your CLI version, and put
output_buffering = Off
implicit_flush = On
in it. (Implicit flushing is usually expensive and inappropriate when generating Web pages, but usually exactly what you want when running from the command line.)
Cheers!
Mike
Thanks Jay and Mike..
Mike.. how does the CLI version of PHP know to use the new ini file?
Rod
--- End Message ---
--- Begin Message ---
Hello all
Over at http://www.DNSstuff.com, they have a great
tool to check whether an e-mail address is from a free
(web-based) e-mail provider. I need to be able to
perform this check from PHP code. However, the Terms
and Conditions of http://www.DNSstuff.com prohibit me
from writing a scraping script to access their
database of free e-mail domains over the WWW
interface.
Would anyone know where to get a list of free e-mail
domains (like hotmail.com, mail.com etc)? Or how one
could (automatically) generate one’s own? Or has
someone already written a function to perform this
check?
TIA
Paul
_______________________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk
--- End Message ---
--- Begin Message ---
I have 2 questions:
1) why gethostbyname() does not resolve my host name into IP?
2) why fopen() (and file()) does not open an external (URL) file via http?
Please, see my example below:
------------------
http://www.management.kiev.ua/try-test/fopen-test-http.php -----------------
--
<?
echo gethostbyname("www.management.kiev.ua");
$h=fopen("http://www.management.kiev.ua/MO/main.php", "r");
echo fread($h,200);
?>
--------------------- browser (interpreted) result -----------------------
www.management.kiev.ua<br />
<b>Warning</b>: fopen() [<a
href='http://www.php.net/function.fopen'>function.fopen</a>]:
php_network_getaddresses: getaddrinfo failed: No address associated with
hostname in <b>/home/manageme/public_html/try-test/fopen-test-http.php</b>
on line <b>4</b><br />
<br />
<b>Warning</b>: fopen(http://www.management.kiev.ua/MO/main.php) [<a
href='http://www.php.net/function.fopen'>function.fopen</a>]: failed to
create stream: Permission denied in
<b>/home/manageme/public_html/try-test/fopen-test-http.php</b> on line
<b>4</b><br />
<br />
<b>Warning</b>: fread(): supplied argument is not a valid stream resource
in <b>/home/manageme/public_html/try-test/fopen-test-http.php</b> on line
<b>5</b><br />
-------------------- or as plain text ----------------------
www.management.kiev.ua
Warning: fopen() [function.fopen]: php_network_getaddresses: getaddrinfo
failed: No address associated with hostname in
/home/manageme/public_html/try-test/fopen-test-http.php on line 4
Warning: fopen(http://www.management.kiev.ua/MO/main.php) [function.fopen]:
failed to create stream: Permission denied in
/home/manageme/public_html/try-test/fopen-test-http.php on line 4
Warning: fread(): supplied argument is not a valid stream resource in
/home/manageme/public_html/try-test/fopen-test-http.php on line 5
------------------------------------
Thanks a lot for help in advance,
Taras V. Panchenko.
--- End Message ---
--- Begin Message ---
Ben Crothers wrote:
At the moment it works fine and extracts fields like first- and surname,
title, department, etc. I need to add the 'office' field, and added it at
the end of this filter line:
---------------------------------------------------
$filter =
"(|(sn=$search[$i]*)(givenname=$search[$i]*)(title=$search[$i]*)(department=
$search[$i]*)(office=$search[$i]*))";
----------------------------------------------------
...but so far it's not working. I *know* there's data in the 'office'
field -- any ideas as to what I'm missing?
Not all of the fields in Exchange are exposed through LDAP (this is from
experience, I have no reference to back this up but would appreciate it
if someone else has any info on the LDAP implementation in Excahnge
5.5+). I would guess from your question that 'office' is one of the
fields that is not.
--
Stuart
--- End Message ---
--- Begin Message ---
"Jlake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a small database that I want to display data from. in such a way
that
> it shows shows in a table with the table header being the department
> category and the table cells being the categories for each department. I
> have no problem connecting to the database) I imagine that I will need
> nested loops, but I haven't seen a tutorial showing quite what I am
looking
> for. If anyone can point me in the right direction that would be great.
Maybe this example would be of some help:
http://www.templatetamer.org/index.php?MySqlRowList
rush
--
http://www.templatetamer.com/
--- End Message ---
--- Begin Message ---
Hi,
I am building a web interface to the vacation autoresponder program on linux.
I let users login, edit their message and enable the autoresponder.
The last step (enabling) is where the fun begins because php is run as apache on
my box, and each users' .vacation.msg and .forward are not owned by apache.
So you say, ok lets make apache run as group 'vacation' and also change the ownership
on .vacation.msg and .forward.
Well this makes sendmail cry out because it doesn't like having group-writable
.forward
files.
How would you guys suggest i did this?
I can post code if required.
--
Mat Harris
Network/Systems Administrator
Genestate
pgp00000.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Have u looked at "sudo" and "sudoers"
http://www.courtesan.com/sudo/
http://www.courtesan.com/sudo/man/sudoers.html
regards
pete
Mat Harris wrote:
Hi,
I am building a web interface to the vacation autoresponder program on linux.
I let users login, edit their message and enable the autoresponder.
The last step (enabling) is where the fun begins because php is run as apache on
my box, and each users' .vacation.msg and .forward are not owned by apache.
So you say, ok lets make apache run as group 'vacation' and also change the ownership
on .vacation.msg and .forward.
Well this makes sendmail cry out because it doesn't like having group-writable
.forward
files.
How would you guys suggest i did this?
I can post code if required.
--- End Message ---
--- Begin Message ---
yes i've looked at sudo but for some reason, when I use sudo in a php
script, the messages file shows the sudo command failing, I believe it
was because sudo only works on a std term.
If this is not the case, I would be delighted.
On Thu, Dec 18, 2003 at 12:31:23 +0000, pete M wrote:
> Have u looked at "sudo" and "sudoers"
>
> http://www.courtesan.com/sudo/
> http://www.courtesan.com/sudo/man/sudoers.html
>
> regards
> pete
>
>
>
> Mat Harris wrote:
> > Hi,
> > I am building a web interface to the vacation autoresponder program on linux.
> >
> > I let users login, edit their message and enable the autoresponder.
> >
> > The last step (enabling) is where the fun begins because php is run as apache on
> > my box, and each users' .vacation.msg and .forward are not owned by apache.
> >
> > So you say, ok lets make apache run as group 'vacation' and also change the
> > ownership
> > on .vacation.msg and .forward.
> >
> > Well this makes sendmail cry out because it doesn't like having group-writable
> > .forward
> > files.
> >
> >
> > How would you guys suggest i did this?
> >
> > I can post code if required.
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Mat Harris
Network/Systems Administrator
Genestate
pgp00001.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
On Thu, Dec 18, 2003 at 12:24:21PM +0000, Mat Harris wrote:
:
: I am building a web interface to the vacation autoresponder program
: on linux.
:
: I let users login, edit their message and enable the autoresponder.
:
: The last step (enabling) is where the fun begins because php is run
: as apache on my box, and each users' .vacation.msg and .forward are
: not owned by apache.
:
: So you say, ok lets make apache run as group 'vacation' and also
: change the ownership on .vacation.msg and .forward.
:
: Well this makes sendmail cry out because it doesn't like having
: group-writable .forward files.
DontBlameSendmail
http://www.sendmail.org/tips/DontBlameSendmail.html
--- End Message ---
--- Begin Message ---
Thanks for the reply but I have already tried the DontBlameSendmail options.
Either the flags are ignored or I am using the wrong combination (there are
several flags I believe). If there is a good sequence for those options
then I would love to know.
thanks
On Thu, Dec 18, 2003 at 06:42:37 -0600, Eugene Lee wrote:
> On Thu, Dec 18, 2003 at 12:24:21PM +0000, Mat Harris wrote:
> :
> : I am building a web interface to the vacation autoresponder program
> : on linux.
> :
> : I let users login, edit their message and enable the autoresponder.
> :
> : The last step (enabling) is where the fun begins because php is run
> : as apache on my box, and each users' .vacation.msg and .forward are
> : not owned by apache.
> :
> : So you say, ok lets make apache run as group 'vacation' and also
> : change the ownership on .vacation.msg and .forward.
> :
> : Well this makes sendmail cry out because it doesn't like having
> : group-writable .forward files.
>
> DontBlameSendmail
>
> http://www.sendmail.org/tips/DontBlameSendmail.html
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Mat Harris
Network/Systems Administrator
Genestate
pgp00002.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Another solution would be to place each change to the files in a MySQL
table, and then have a cron that is run every X minutes read this table, and
makes the actual changes.... I'm not sure if this idea is suitable in your
situation due to the time lag between the client asking for the change, and
the change happening. In some situations this is acceptable.
Andrew
----- Original Message -----
From: "Mat Harris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 12:24 PM
Subject: [PHP] php special permissions
Hi,
I am building a web interface to the vacation autoresponder program on
linux.
I let users login, edit their message and enable the autoresponder.
The last step (enabling) is where the fun begins because php is run as
apache on
my box, and each users' .vacation.msg and .forward are not owned by apache.
So you say, ok lets make apache run as group 'vacation' and also change the
ownership
on .vacation.msg and .forward.
Well this makes sendmail cry out because it doesn't like having
group-writable .forward
files.
How would you guys suggest i did this?
I can post code if required.
--
Mat Harris
Network/Systems Administrator
Genestate
--- End Message ---
--- Begin Message ---
Mat --
[BTW, my gnupg could not find your public key.]
...and then Mat Harris said...
%
% yes i've looked at sudo but for some reason, when I use sudo in a php
% script, the messages file shows the sudo command failing, I believe it
% was because sudo only works on a std term.
Nope; it works anywhere. It's much more likely that you need to create
the proper sudoers file entry. No, I'm not going to tell you how to do
it because you should DEFINITELY understand the security ramifications of
what you're proposing before you just drop something into place :-)
%
% If this is not the case, I would be delighted.
Here's hoping I've made your day :-)
HTH & HAND & Happy Holidays
:-D
--
David T-G * There is too much animal courage in
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgp00003.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
On Thu, Dec 18, 2003 at 08:30:32 -0500, David T-G wrote:
> Mat --
>
> [BTW, my gnupg could not find your public key.]
hmm, i'll look into it.
> ...and then Mat Harris said...
> %
> % yes i've looked at sudo but for some reason, when I use sudo in a php
> % script, the messages file shows the sudo command failing, I believe it
> % was because sudo only works on a std term.
>
> Nope; it works anywhere. It's much more likely that you need to create
> the proper sudoers file entry. No, I'm not going to tell you how to do
> it because you should DEFINITELY understand the security ramifications of
> what you're proposing before you just drop something into place :-)
>
Don't worry, I do have experience with the sudo command/config, I will
investigate when I have a minute.
>
> %
> % If this is not the case, I would be delighted.
>
> Here's hoping I've made your day :-)
>
me too :)
>
> HTH & HAND & Happy Holidays
>
and you, cheers
> :-D
> --
> David T-G * There is too much animal courage in
> (play) [EMAIL PROTECTED] * society and not sufficient moral courage.
> (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health"
> http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
>
--
Mat Harris
Network/Systems Administrator
Genestate
pgp00004.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
On Thu, Dec 18, 2003 at 12:52:14PM +0000, Mat Harris wrote:
: On Thu, Dec 18, 2003 at 06:42:37 -0600, Eugene Lee wrote:
: > On Thu, Dec 18, 2003 at 12:24:21PM +0000, Mat Harris wrote:
: > :
: > : I am building a web interface to the vacation autoresponder program
: > : on linux.
: > :
: > : I let users login, edit their message and enable the autoresponder.
: > :
: > : The last step (enabling) is where the fun begins because php is run
: > : as apache on my box, and each users' .vacation.msg and .forward are
: > : not owned by apache.
: > :
: > : So you say, ok lets make apache run as group 'vacation' and also
: > : change the ownership on .vacation.msg and .forward.
: > :
: > : Well this makes sendmail cry out because it doesn't like having
: > : group-writable .forward files.
: >
: > DontBlameSendmail
: >
: > http://www.sendmail.org/tips/DontBlameSendmail.html
:
: Thanks for the reply but I have already tried the DontBlameSendmail options.
:
: Either the flags are ignored or I am using the wrong combination
: (there are several flags I believe). If there is a good sequence for
: those options then I would love to know.
There are several more options listed in the URL. Two of them:
GroupWritableForwardFile
GroupWritableForwardFileSafe
might look like they could address your specific issues.
--- End Message ---
--- Begin Message ---
Hi,
From your post i the the proper use of databases hasn't 'sunk in' yet.
I propose that you head off to one of the sites such as phpbuilder.com
or devshed.com where you will find lots of articles on dbs as well as
how to use them with php.
all the best
KidLat Ngayon wrote:
Greetings Guyz.....
I would just like to ask for a help regarding on
"Links of Tables from other DB". I'm just only a
newbie in PHP Programming.
What I have right now is a query result from my table,
and what I wanted to do is on my one of the table I
had is to have a link or button that will open another
page that will get the data from the other table.
It would be highly appreciated if anyone could give me
a sample script or link for a tutorial.
Many Thanks in advance.....
Regards,
ERWIN
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--- End Message ---
--- Begin Message ---
bit of a random thought I need answering really...
when referencing external files, what's the difference between:
../
/
./
I know that ../ means back one directory and jsut a / means look from the
root directory, but what is:
./
???
Cheers all..
*********************************************************************
The information contained in this e-mail message is intended only for
the personal and confidential use of the recipient(s) named above.
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original message.
***********************************************************************
--- End Message ---
--- Begin Message ---
That means "the current directory"
Cheers,
Marco
--
php|architect - The Magazine for PHP Professionals
Try us free at http://www.phparch.com!
Complete searchable PHP mailing list archives at
http://www.phparch.com/mailinglists
[EMAIL PROTECTED] wrote:
bit of a random thought I need answering really...
when referencing external files, what's the difference between:
../
/
./
I know that ../ means back one directory and jsut a / means look from the
root directory, but what is:
./
???
Cheers all..
*********************************************************************
The information contained in this e-mail message is intended only for
the personal and confidential use of the recipient(s) named above.
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original message.
***********************************************************************
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
bit of a random thought I need answering really...
when referencing external files, what's the difference between:
../
/
./
I know that ../ means back one directory and jsut a / means look from the
root directory, but what is:
./
???
./ means the current directory.
Best
Bao
Cheers all..
--- End Message ---
--- Begin Message ---
Oh...
So it's the same as not having any /'s
just the file name?
Marco Tabini <[EMAIL PROTECTED]>
18/12/2003 14:01
To
[EMAIL PROTECTED]
cc
[EMAIL PROTECTED]
Subject
Re: [PHP] includes...
That means "the current directory"
Cheers,
Marco
--
php|architect - The Magazine for PHP Professionals
Try us free at http://www.phparch.com!
Complete searchable PHP mailing list archives at
http://www.phparch.com/mailinglists
[EMAIL PROTECTED] wrote:
> bit of a random thought I need answering really...
> when referencing external files, what's the difference between:
>
> ../
> /
> ./
>
> I know that ../ means back one directory and jsut a / means look from
the
> root directory, but what is:
> ./
>
> ???
>
> Cheers all..
>
> *********************************************************************
> The information contained in this e-mail message is intended only for
> the personal and confidential use of the recipient(s) named above.
> If the reader of this message is not the intended recipient or an agent
> responsible for delivering it to the intended recipient, you are hereby
> notified that you have received this document in error and that any
> review, dissemination, distribution, or copying of this message is
> strictly prohibited. If you have received this communication in error,
> please notify us immediately by e-mail, and delete the original message.
> ***********************************************************************
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*********************************************************************
The information contained in this e-mail message is intended only for
the personal and confidential use of the recipient(s) named above.
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original message.
***********************************************************************
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
Oh...
So it's the same as not having any /'s
just the file name?
Not quite. For example, when you have more than one executables with the
same name, when you use ./executable_name, it will call the the one in
your current directory, otherwise it will use the one in your path.
Best
Bao
Marco Tabini <[EMAIL PROTECTED]>
18/12/2003 14:01
To
[EMAIL PROTECTED]
cc
[EMAIL PROTECTED]
Subject
Re: [PHP] includes...
That means "the current directory"
Cheers,
Marco
--
php|architect - The Magazine for PHP Professionals
Try us free at http://www.phparch.com!
Complete searchable PHP mailing list archives at
http://www.phparch.com/mailinglists
[EMAIL PROTECTED] wrote:
bit of a random thought I need answering really...
when referencing external files, what's the difference between:
../
/
./
I know that ../ means back one directory and jsut a / means look from
the
root directory, but what is:
./
???
Cheers all..
*********************************************************************
The information contained in this e-mail message is intended only for
the personal and confidential use of the recipient(s) named above.
If the reader of this message is not the intended recipient or an agent
--- End Message ---
--- Begin Message ---
Hi,
I searching for a database, with the 'complete' world
Countries, cities, states
Just like
http://www.datingplace.com/servlet/NewRegistration
I need for an academic study.
Thanks,
Augusto
______________________________________________________________________
Conheça a nova central de informações anti-spam do Yahoo! Mail:
http://www.yahoo.com.br/antispam
--- End Message ---