Philip,
I have the need to be able to mail out a text file. whats the best way that I could
do this?
=simple answer: use PHP's mail() - RTFM, but be aware that it is not the easiest thing
in the world to use. With
a simple text msg and no fancy address-headers you should be ok.
=if you want
Liam,
Check out http://phpguru.org/
=dn
- Original Message -
From: "Liam MacKenzie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 13 February 2002 09:21
Subject: Re: [PHP] SMTP Mail
> Whoops, my bad!
> If there's anyone out there that needs to use SMTP:
> http://phpclasses.upperdes
Erik,
> function get_current_page_name()
> {
> $current_page_name = explode("/", $_SERVER['PHP_SELF']);
> $current_page_name = $current_page_name[-1];
> return $current_page_name ;
> }
>
> $errorcode = get_current_page_name();
> echo $errorcode;
>
> The only thing that works is $errorcode =
>
Hi Jan
> I have an array called $myarray and now I want to store it in a mysql table.
> I tried to just, insert into mytable values('$id', '$myarray') but just got
> Array when I run
> while ($row = mysql_fetch_array ($result))
> $myarray= $row[myarray];
> echo $myarray
> --
> Do I need to first
> Best regards,
> Andrey Hristov
>
> "Back from the exams hell"
=what were you sitting Andrey?
=dn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Peter,
> I have a quick MySQL question...if this is not the correct forum for
> it, then someone please point me to the right one.
>
> Can the UPDATE statement have conditional check embedded in it? I
> have a page that displays a record (in a FORM format) that the user can
> change the inf
Tomek,
> I got the problem , I want make preety debug function that shows array keys
> and values and name of the variable containing array:
> Here it is:
>
> function show_arr($array)
> //wyswietla wartosci z tablicy wraz z kluczami (przeznaczone do debugowania)
> {
> if(DABUG)
> {
> echo "-
So Rick,
Guess you've squashed my little scheme for (fraudulently) convincing everyone that I
can speak Polish fluently -
given that I counldn't answer Tomek's question, I'm already scoring it up as a 'bad
day'!
On the subject of email addresses, does this observation mean that we are patrioti
Lone Star Rick,
I see that your day, and helpfulness to list members, is going a lot better than mine!
> Actually, if I had my druthers, my domain TLD would be ".texas". Some day,
> when Texas
> becomes the independent country it should be, that will be my TLD.
>
>
If it comes from TX... it wo
Jacob,
> I'm sorry to bother the newsgroup with this, but I've been racking my
> brain on it for a few hours, and tried all the documentation, and
> realize it's a coding problem that will take someone about 3 seconds to
> figure out the error in. I have this code:
=don't be sorry, these 'blind
Dear Steven and Kunal,
Agreed with what you had to say.
> In my experience, 'modular coding' is entirely a process of evolution.
> It's impossible to sit down and design software on paper. Every piece of
> code I write is under constant evaluation. Each time a weakness is
> exposed, I rethink my
Hey Kunal,
> The entire concept of OOP was based on the data and not the processing :)
No, this seems too much of a simplification. In the 'good old days' we used to design
a program by using a
flowchart. Such is an entirely procedural/code-based approach. Each of the
philosophies that followe
Scott,
> I am trying to develop a music scheduling system on Windows using the
> command line to fire off WinAMP. The first exec works fine, then it
> stops
> and says that program execution time has been exceeded.
>
> An example would be:
>
> exec ("winamp.exe M01.mp3");
>
> a while loop ki
Anthony,
A common issue.
Pertinent info required:
1 Win or *nix?
2 able to send a single msg to a single email addr?
3 does loop get address and send msg to that address, 136 times; or does loop collect
136 addresses and then
after closing the loop a single msg is sent to 136 recipients in the T
Dear Anthony,
[I've put this back on the list, because others know far more about *nix and email
than I do]
BTW: people will respond more readily if you include a reassurance that you are
emailing a 'membership' list or
its some sort of client opt-in situation - not spamming!
> Thank you for
Have a look at the function getenv()..
eg:
$ip = getenv ("REMOTE_ADDR"); // get the ip number of the user
HTH
Neil
"Narvaez, Teresa" wrote:
> Hello,
> I'm running PHP version 4.1.1. When I invoke this function, phpinfo()?>, all variable
Zeev,
Didn't experience any stability problems with the beta per-se, but using a Windows box
was an exercise in
Unix-ification. Has the released version for Win32 seen significant alterations to the
GUI?
=dn
- Original Message -
From: "Zeev Suraski" <[EMAIL PROTECTED]>
To: "Chris Lott
Is $inst an int or a string?
=dn
> make sure you're doing it like this:
> if ($inst == "1") {
> // do this
> }
> else {
>// do something else
> }
>
> instead of this:
> if ($inst = "1") {
> // do this
> }
> else {
> // do this
> }
>
> Just a thought.
>
> Tyler
>
> - Origi
What symbols are you trying to use? Verdana is good enough for most unicode characters.
hugh danaher wrote:
> Help
> Does anyone know where I can get a simple symbol font which is .ttf and "unicode"
>compatible. Seems that my php graphic program is very sensitive to ttf problems.
>It'll take
Dear Jack,
> I had create a file called "contant.inc".
> What i want to do is to use the require function() to point to this file,
> but when i test it, it says:
>
> "Warning: Failed opening 'constant.inc' for inclusion (include_path='') in
> C:\InetPub\wwwroot\php study\General News\news.php on
I'll offer the following code to get you started on the task - and invite
critiques/improvements!
(cribbed from various sources and 'tuned' - note that either apostrophes or double
quotes can be used to delimit
the URL)
$bValidity = $iFound
= preg_match_all( "/(href *=
Greg,
> >i was wondering if it would be possible to make a web spider in PHP.
> >they work by download a website, then following all the links on the
> >website to other pages, and then following the links on that page...
> >
> >is this possible in PHP without a whole lot of work? i just want to
> > I need to calculate the date to see if it's a holiday, i.e. is today
> > presidents day
>
> No, today is Patriot's Day!
>
> Not sure if it's celebrated outside of Massachusetts
It's celebrated any day there's a SCUD inbound!
=dn
--
PHP General Mailing List (http://www.php.net/)
To un
> I really hate to do this, but it's one of my pet peives.
is that like a pet rock?
BTW if we're exercising peevishness, at the same time as indulging in
anally non-retentive breakfast habits, check out
http://www.onelook.com/cgi-bin/cgiwrap/bware/afen.cgi?type=word_all&word
=peeve
> >>> Ot
> > "etc" (TM) is able to follow up the syntax coloring operation by
making
> > changes to the code to correct syntax errors, puts brackets in
exactly
> > the right place to indicate block structure within the code, imposes
> > data type prefixes in strict convention, chooses better variable
names
Now this IS lazy programming.
;-)
[EMAIL PROTECTED]
---
"Life must be lived as play."
- Plato (427 - 347 BC)
> - Original Message -
> From: Gabriele Biondo <[EMAIL PROTECTED]>
> To: Richard Emery <[EMAIL PROTECTED]>
> Sent: Wednesday,
27; would return 3.
I've had a quick look through the array functions but didn't spot
anything obvious.
Neil
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry - don't worry. Found the function I require.
FYI : array_count_values()
Neil Freeman wrote:
> *
> This Message Was Virus Checked With : SAVI 3.54 Feb 2002
> Last Updated 2
if (($foo % 2) == 0)
{
echo "text";
}
Neil
Craig wrote:
>
> *
> This Message Was Virus Checked With : SAVI 3.54 Feb 2002
> Last U
Hi,
How do you obtain the value of 'error_log' (set within a .htaccess
file). Is there a $HTTP_x_VARS array available which contains this
information?
Any help greatly appreciated.
Cheers,
Neil
Email: [EMAIL PROTECTED]
[EMAIL
>
> On Wed, 1 May 2002, Neil Freeman wrote:
> > How do you obtain the value of 'error_log' (set within a .htaccess
> > file). Is there a $HTTP_x_VARS array available which contains this
> > information?
>
> Nope. You can use phpinfo() to see what most
Why would you want a scripting language to sleep, there is no such thing as
a loop in a web page (yes, I know it would be possible, but it would lock up
a users machine).
I know you can set up the apache daemon to run on-demand to conserver
resources, but I think you are getting mixed up between
FYI...
I'm using sessions successfully using PHP v4.1.0 on Windows NT.
Neil
Edward Marczak wrote:
>
>
>*
> This Message Was Virus Checked With : SAVI 3.57 May 2002
MWAHAHAHAHAH!
[EMAIL PROTECTED]
---
"Life must be lived as play."
- Plato (427 - 347 BC)
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Dani" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, May 25, 200
John,
> Yeeesch! I neet help.
Yeeesch! was exactly my reaction when I read the following!
Now that you have had some responses to 'directly' address the problem may I ask why
you would want to
maintain/work with the data in this format (top) as opposed to the eminently logical
later presentat
Ando
> I need to produce an array of all the links(hrefs) in a remote file
> (actually those that refer to files in the same remote server, but thats
>
> another matter).
> I'm pretty new to php, i was thinking of doing it with ereg, something
> like eregi("a href[\"]?=(.*)>", $file, $link);
> bu
Hi Matt,
> Looking for help on how to activate the automatic passing of variables -
> think i need to change something in my php.ini file maybe?
> got scripts that work fine on one server, but i've recently got a new
> virtual server, and it won't pass variables though - example script..
Yo
Matt,
> thanks a lot!
> works fine now i've changed register_globals.
=great!
> just out of interest, what is the 'newer' way?
> is it using sessions etc, or something else i don't know about?
> or should i rtfm? ;)
Yes it is quicker for me to say "RTFM ", although I wonder if it isn't
perce
> I'm posting this to the list as a private email to you was returned with a 550
>Access denied error.
Surely "open systems" means 'open' - in the support community as well as other
aspects!?
Echoing/amplifying Torben's comment earlier: Private replies do not benefit others on
the list (presu
Terry,
> I am trying to set up a MIME email that would include an HTML and Plain
> Text version of content, such that if the recipient's email client did
> not understand html or have html disabled, that the content would come
> through as plain text, but if html were accepted, the plain text wo
> >Echoing/amplifying Torben's comment earlier: Private replies do not benefit others
>on the list (presumably
with
> >similar questions/learning need), nor do they end up in any archive.
> >
> I did not feel the particular question added to the sum total of
> information so replied privately. I
Sven,
> Is it possible to mail files with the mail() commando?
> Or can it be done on a other way?
You're talking about 'attachments' aren't you?
Yes it is!
Recommend you visit http://phpguru.org/ and pickup the SMTP and MIME classes there
(including sample code which
shows how to attach file
Greetings Svavar
My SMTP server requests I use a password for every time I send(not IP based). How is
it possible to let PHP to
use password authentication when mail is sent.
=Eureka!
I have been looking at this, and made a note to come back to take a look at a 'likely
candidate'. Of course,
Steven
> It may be able to store 8MB, but each line can only hold 1024
> characters. I ran into this using a string variable to store the message
> body of an HTML email. If I did not put a '\n' at the end of each line,
> I would get random '!' placed through the sent email.
Maybe you know more
Steven (and anyone else interested),
I was working on email earlier in the day, and have just cleared my desk of all that
'junk'.
Your reading for tonight (1024/1000/997 byte line length limits in email) can be found
in the discussion of RFC
2646 available from sunsite.dk (and elsewhere) - one
Hi Brad,
> Hi all... I have a line in a page that should send me an email when
the page
> is loaded.
> mail("[EMAIL PROTECTED]", "worked", "Line 1\nLine 2\nLine
3");
> when i load the page...i get NO error msgs, but the function does not
send
> the mail. There is no record of any activity in the
Hi Georgie,
> The date() function is returning the 19th of Januray 2038 as *ALL*
dates no
> matter what timestamp i feed it! whats goin on??
Result outside the UNIX epoch.
Sounds like DATE()'s being fed some crazy data.
What is the server's ToD clock showing?
Make sure you debugECHO the source
Hello Vidyut,
> I have a question regarding array_walk.. I couldn't find any help on
> the website or on irc.. didn't know where else to look.
You've come to the right place.
> I'm stumped, and about to just copy the function on top of this script
> to make it work.. any ideas from anyone else
Monty,
> Is preg_replace() the best PHP command to use for parsing custom codes
in
> text retrieved from a database (e.g., turning "[link= ]" into "")?
It is conventional wisdom that the PCRE functions are faster than their
EREG cousins.
However because/if you can guarantee that your 'template'
Hi Nick,
> masterfile.inc lives in /var/www/includes/ and contains this line:
> include("/var/www/includes/anotherfile.inc");
>
> in index.php I include masterfile.inc and thus get anotherfile.inc.
>
> What I'd like to know though is, is it possible to have the include
line
> in masterfile.inc sp
Brad,
> Yep it is a linux box.
Ok, seeing that's 'sweet', go for "KISS"!
See earlier comments about simplifying and once 'plain vanilla' is
working, add back the optional headers/multiple lines, etc. Will be
easier to work out what's breaking things, and then address that issue.
Regards,
=dn
and Nick Wilson opined in what could be seen to be an arrogant
fashion...
> * and then DL Neil declared
> > > masterfile.inc lives in /var/www/includes/ and contains this line:
> > > include("/var/www/includes/anotherfile.inc");
> > >
> > > i
Anas,
> I am wondering if someone could shed some light on
> this aspect of PHP. It might be something obvious, but
> I am not able to figure it out.
>
> I have a function that returns a dynamically generated
> HTML string. However, I need a way to let the caller
> know if that function has faile
Craig,
AFAIK you can't: fopen opens the file and leaves it up to you to read it
a character or some other chunk at a time, keeping what you want, and
leaving the rest. There is no concept of opening a file at a particular
character position, other than to write-over or write-append. (see
http://w
Hi Tim,
> I'm a major newbie.
I was in the navy so never made it to major!?
I'm only going to comment on your syntax and ignore the
wide/Unix-related issues:
> $noting = "";
> $checkval = "Hello
> World";
> $filename = "thefile.inc";
>
> $fd = fopen ($filename, "w");
> $contents = fread ($fd, f
Georgie,
> I'm getting loads of "undefined variable" errors with this script.
any1 know
> why?
You're using a recent release of PHP aren't you? Check out
http://www.php.net/manual/en/security.registerglobals.php for an
explanation of changes in 4.1.n.
Regards,
=dn
--
PHP General Mailing Lis
Georgie,
> > > I'm getting loads of "undefined variable" errors with this script.
> > any1 know
> > > why?
> >
> > You're using a recent release of PHP aren't you? Check out
> > http://www.php.net/manual/en/security.registerglobals.php for an
> > explanation of changes in 4.1.n.
> no, registergl
Hey Kunal,
> I have a mysql table which stores the IP Address of my site visitors.
When I
> try to sort these Ip address in the ascending or descending order the
order
> is completely out of order. I am currently storing the IP addresses
under a
> varchar column. An int column would not store the
Yow Sven,
> I need to calculate the Time ( days hour minutes between 2 times )
> I have something but I have an error margine of 10 % and that is to
high
>
> Time one 2002/02/24 10:23:43
> Time two 2002/02/02 12:43:12
>
> this need to give me the correct time in days hours and minutes
between the
session vars for browser instance 1 to be cleared out.
We've toyed with many ideas and short of forcing a unique hidden value to be
'POST'ed to every page from every page we don't have an elegant solution. Is
there any other way that we could do this?
Neil
--
PHP Genera
s are problematic, leaving us with POSTs only. But
POSTING to every page is a pain.
Is there any other way?
> -Original Message-
> From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> Sent: 04 March 2002 15:28
> To: Neil Kimber; [EMAIL PROTECTED]
> Subject: Re: [PHP] Multiple brows
s are problematic, leaving us with POSTs only. But
> POSTING to every page is a pain.
>
> Is there any other way?
>
>
> >-Original Message-
> >From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> >Sent: 04 March 2002 15:28
> >To: Neil Kimber; [EMAIL PROTECTED
Ben,
> Is there an easy way to upload a CSV file into a MySQL table? Is
there also
> a way to export the MySQL file into a CSV file? I would like to make
a form
> using PHP to do import a CSV file into an existing table. Any advise
would
> be appreciated.
Manual: 6.4.9 LOAD DATA INFILE Synta
Erik,
> PHP's mktime() function uses a timestamp that is the number of seconds
> since the Unix epoch. MySQL uses the MMDDhhmmss format for its
> TIMESTAMP column type.
>
> I'm not complaining that they're not the same, but curious as to which
I
> should use for storing timestamps -- does it
Andy,
> So what is the proper function in PHP to convert the MySQL timestamp
into a
> proper format like Sonday, Apr. 20th 2002?
SELECT from SQL using UNIX_TIMESTAMP()
Format for presentation in PHP using: string date ( string format [, int
timestamp])
Regards,
=dn
> > > I am playing around
Hi Andy
I apologise. The way I wrote the suggestion looks very much like a SQL
query doesn't it? It wasn't!
It would have been better expressed if I had said:
retrieve the MySQL timestamp field as a UNIX (epoch) timestamp, by using
the UNIX_TIMESTAMP function within the SELECT statement
> I trye
Erik,
Apologies, I missed your reply in the mass of mailings and a rushed
start to the week...
> > The choice comes down to how you are generating the time data prior
to
> > its storage in the db, and how you plan to use it afterwards. If you
are
> > going to be doing lots of temporal processing
Rasmus/others,
O'Reilly are advertising the imminent release (Mar 2002) of "Programming
PHP" (http://www.oreilly.com/catalog/progphp/desc.html).
Is that still going ahead?
(I'll submit an advanced purchase order...)
Regards,
=dn
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
Brad,
[I've put this back on the list, because someone who's into PHP's MAIL()
from Linux might be able to help]
> OK, I 'KISS'ed' it. The line now reads:
> mail("[EMAIL PROTECTED]", "Please call if this works", "Hi
there",
> "From: [EMAIL PROTECTED]");
> and works fine. BUT, if i put my email a
Hi Erik,
> > Rasmus/others,
> >
> > O'Reilly are advertising the imminent release (Mar 2002) of
"Programming
> > PHP" (http://www.oreilly.com/catalog/progphp/desc.html).
> > Is that still going ahead?
> > (I'll submit an advanced purchase order...)
> >
>
> Hmmm... on the one hand, it's an O'Reill
Hi Erik,
> On Wednesday, March 6, 2002, at 05:11 AM, DL Neil wrote:
>
> > My 'rules' are simple:
> > If the date/time is for processing, keep it as a timestamp (consider
> > which type).
> > If the timestamp is being used to keep track of RDBMS a
Hi Berlina,
> Im trying to install an Apache Web Server and PHP in a Windows NT .
>
> * Apache 1.2.23
> * PHP 4.1.1
> * Windows NT Server 4.0 with SP4
>
> The installation of Apache Web Server and PHP was succesfully ok, but
when I
> configure the PHP and Apache, editing the PHP.ini and httpd.con
Have you remembered to set up PHP's include_path to point to the area where
your scripts are located?
Neil
Mauricio Cuenca wrote:
> Hello,
>
> I have a very long script with several functions in it. I wanted to split
> the script into several files, so I created two sub-scr
BTW for all who are following this, Patrick has cleverly illustrated
that most of the northern hemisphere locations where summer time is
observed will 'spring forward' this weekend. Most of the southern
hemisphere locations that were in summer time did their 'fall back' last
weekend!
NB the two us
er time discontinuity. (so I don't need to
run it on another box/change the server's TZ setting, I simply read the
second half of the report)
It is not missing one day, but one hour!
Regards,
=dn
> Fucko. I kicked this pony-style. Yes - typo Didn't know what hit
me th
Erik,
My two cents' (with allowance for inflation...)
> > If you're distributing code in cyberspace it's a good
> > idea to make it error free too, E_NOTICE or otherwise.
To get the maximum help when coding, and to ensure the minimum of
confusion for your users, I recommend:
1 set the dev serve
Justin,
> I think this is a good idea, but it looks to be more of a searchable
FAQ,
> which will highly detailed... I'm really thinking of a medium-length
email
> introduction to the group (as per my attachment) which hopefulyl
cleans up
> the group a bit.
>
> Your resource could be fantastic, an
The answer "cron" refers to *nix OpSys. It is the name of a demon/daemon that kicks of
commands/jobs at a pre-specified
time and/or on a regular basis.
M$ spell it "at".
Was that your question?
=dn
- Original Message -
From: "Lucas Chan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent:
> Is it possible to use imap_mail() on php 4.0.6 on NT machine?
> Maybe anyone has dll for this.
Yes Val. It is possible.
See related thread/discussion list: [PHP-WIN] Help on using mail() function
=dn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
John,
Two inter-dependent problems:
1 a means of identifying a cipher within the text
2 a means of replacing the cipher with HTML code
1 there are a limited number of graphics formats (.GIF, .JPG, .PNG, etc) and the
number you are prepared to contemplate
may be even shorter. Thus it would not b
Isn't it fun when people asking questions on the list spark off your own
thoughts/inspiration!?
Has anyone seen a tabulation of the functions in (manual: IV Function Reference XXVI.
Filesystem functions) that shows
which functions [don't] work under what conditions? eg
Col1: function name,
Col
> Khalid Hazmi wrote:
> > How I can download the current Annotated PHP Manual???
> There is no such thing... AFAIK.
=> Yasuo Ohgaki
Yasuo: Yes there is (and VERY useful it is too), check out the range of PHP
documentation available from
http://www.php.net/docs.php
Khalid: Unlike some other p
ou can make up your own mind.
Warm regards
Neil Gallagher
P.S. After having several negative experiences with network
marketing companies I had pretty much given up on them.
This company is different--it offers value, integrity, and a
REAL opportunity to have your own home-based business...
and
> Is it possible to put variable operators in queries?
=I can see no reason why not - you're not actually putting the 'variable' in the
'query', just using a PHP-variable to
build a PHP-string which will be sent to MySQL as a SQL query...
> I tried this (the real variable comes from a form)
> $
> Hi folks,
> following problem appeared on PHP 3.0.16 on LINUX
> I have a binary file, where I want to replace some letters
> I do the following:
> $filename = "xyz.sdc";
> $fd = fopen( $filename, "r+b" ); // also tried "r"
> $x=filesize( $filename ); // this shows the correct filesize 22528 byte
> > > following problem appeared on PHP 3.0.16 on LINUX
> > > I have a binary file, where I want to replace some letters
> > > I do the following:
> > > $filename = "xyz.sdc";
> > > $fd = fopen( $filename, "r+b" ); // also tried "r"
> > > $x=filesize( $filename ); // this shows the correct filesiz
> I'm running 4.0.6 on a Solaris 8 box. The output given by
> echo mktime(0,0,0,1,1,1970);
> is 3600.
>
> Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write
> this we are in daylight savings (GMT+1). Would this make a difference? (I
> have already tried
> echo mktime(0,0,
ubject: RE: [PHP] mktime() problem
>
>
> Thanks, I'll use gmmktime() from now on!
>
> James
>
> -Original Message-
> From: DL Neil [mailto:[EMAIL PROTECTED]]
> Sent: 23 October 2001 13:54
> To: Fairbairn,J,James,IVLH4 C; php-general
> Subject: Re: [PHP]
Why does your URL contain .asp?
[EMAIL PROTECTED] wrote:
> I found the following code currently used on our website to match a url
> expression. Unfortunately, when I added a question mark, the webpage that
> contained the url with the question mark just "hung" and would not load into
> my brows
> I have a need for a package mechanism like that provided by TCL. We
> write a
> lot of code in reusable libraries and often encounter the situation in
> which
> an application uses a particular library but requires at least version X
> or
> greater.
>
> The require(), require_once(), etc. functi
Douw,
It's kind of eerie the way your reply appears in my email before I can see my
intervening post!!!???
Perhaps you're just more important than me (bow, scrape, simper...)
> Thanks for the feedback and additional ideas.
=HTH
> I had also though that it might be necessary to separate out th
> On Wednesday 24 October 2001 19:14, Richard S. Crawford wrote:
>
> The default value for $image parameter was missing:
>
> > function top ($image="defaultvalue") {
> > if ($image=="defaultvalue") echo "blah blah blah";
> > else echo "blah blah $image blah";
> > }
If the defa
> I suspect that PHP does all of it's work and, only when complete, will it
> send the generated html to the client.
>
> No matter what you try and do there's no way you can output the progress of
> your script to the browser while it is still being parsed.
>
> I could be wrong, but this is my und
> "John A. Grant" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I've installed ActivePerl, which gives me a way to run .pl files,
> > i.e. :
> > c:\> perl someprogram.pl
> >
> > Does the Win32 php installation give me a command-line
> > interpreter lik
> I have just set up PHP on my webserver (IIS 4 on NT4).
> I have set up the script mapping so that I can save php files as .html and
> php processes them.
>
> This works fine until someone goes to a page that doesn't exist - instead of
> getting the customised error 404 page (i.e. the page you r
Please define "long", and perhaps think of that in the context of the RFC ?822 is it?
=dn
- Original Message -
From: "BT News" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 25 October 2001 17:38
Subject: [PHP] Truncating Lines
> Hi,
>
> I have the following code, which reads in an
nd I think that
is where you'lll find (at least) one.
=Regards,
=dn
>
> THanks.
> "Dl Neil" <[EMAIL PROTECTED]> wrote in message
> 048001c15dab$d5c0fcf0$a516100a@jrbrown">news:048001c15dab$d5c0fcf0$a516100a@jrbrown...
> > > I have just set up
> I have an two dimensional array that is returned from code from an included
> file. I'm assigning parts of the array to variables ( $variable =
> $array["key"]["value"]; ). This works fine and can be printed until I send
> it through a function eg. ( ereg_replace(" ", "_", "$variable"); ). After
Don't you like the side-benefits of this list, eg that someone comes up with a
question that gets your thought processes
running or suggests an idea you'd not otherwise come up with!?
So further to the question:
> How can I know the line and the file from where a function has called. I
> alread
Mark,
Backing John's question up by one iteration: is there a PHP environment variable which
can be used to
distinguish between code being run from the command line and code being run in a
browser?
- and the Million dollar question, sorry make that the M$ question: will it also work
under Windo
301 - 400 of 489 matches
Mail list logo