I got an idea to solve my problem.
I'll make client side calculation.
I'll set the user pick a future time and then calculate from the client side
how many minutes exists between these two times, then pass the minutes
difference to the server.
"Naintara Jain" <[EMAIL PROTECTED]> wrote in message
echo "$sql";
Adam
On Sat, 7 Sep 2002, Chuck PUP Payne wrote:
> Hi,
>
> I am having a problem with menu options being pass on to my database. Is
> there a way that I can see what is sql statement that is passing on to the
> database? Say maybe print $sql or something like
Hi,
I am having a problem with menu options being pass on to my database. Is
there a way that I can see what is sql statement that is passing on to the
database? Say maybe print $sql or something like that?
Chuck Payne
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
I am doing an application where users can upload a *.zip file into the
server. Virus and hackers threats are my main concern.
Anyone mind sharing their experiences on how to deal with it. If u suggest
any antivirus, please specifiy the name. the server is on windows platform.
Also, if it's virus,
on 07/09/02 12:48 AM, Jon Haworth ([EMAIL PROTECTED]) wrote:
> A couple of s side by side should let you do that.
>
> The biggest problem I can see you hitting is reading the contents of the
> user's hard drive... usually this is impossible, for good reasons.
I *think* that's what he was asking
For testing out stuff, I'd recommend you set up apache/php/mysql on your
local machine (win, linux, unix, mac osx all work), it's a lot easier to
save a file locally and hit refresh in your browser than having to FTP the
updated file again and again and again.
AS far as hosts go, I'm sure if you
At 23:51 09/06/2002, you wrote:
>I have a small problem in converting a plain text to html.
>$newstr = ereg_replace ("\n", "", $newstr);
try
$newstr = ereg_replace("\n\r|\n|\r", "", $newstr);
notice it looks for all types of line feeds
-jacob
--
PHP General Mailing List (http://www.php.n
At 23:51 09/06/2002, you wrote:
>I have a small problem in converting a plain text to html.
>$newstr = ereg_replace ("\n", "", $newstr);
try
$newstr = ereg_replace("\n\r|\n|\r", "", $newstr);
notice it looks for all types of line feeds
-jacob
--
PHP General Mailing List (http://www.php.n
My understanding is that PHP does not currently work well with Apache2,
though this may be a platform specific problem. I couldn't even get Apache
2 to load it (under Win2K). I have seen mentions that PHP 4.3 is supposed
to improve this situation, though I don't actually know if it's true or not
on 06/09/02 10:45 PM, Michael Sims ([EMAIL PROTECTED]) wrote:
> How about this:
>
> function foo()
> {
> return array (
> "foo" => "aaa",
> "bar" => "bbb"
> );
> }
>
> extract(foo());
>
> echo $foo;
> echo $bar;
> ?>
Very cool !! -- thanks to everyone's replies.
Justin
--
PHP General Ma
I'd beg to differ:
http://www.php.net/manual/en/function.show-source.php
Justin French
on 06/09/02 9:10 PM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
> You can't.
>
> --
>
> Nicos - CHAILLAN Nicolas
> [EMAIL PROTECTED]
> www.WorldAKT.com - Hébergement de sites Internet
>
> "Roman Duri
Hello,
On 09/06/2002 08:32 PM, Josh wrote:
> Hey all
>
> I have seen many tutorials on sending HTML email, and sending email with
> attachments, but have found nothing on sending HTML email with the
> images for the html attached.
>
> Anyone familiar with doing this?
Try this class that does
Look up a program called asp2php. That should definitely get you started!
Cheers!
Rick
"The intuitive mind is a sacred gift and the rational mind is a faithful
servant. We have created a society that honors the servant and has
forgotten the gift." - Albert Einstein
> From: "Iguider" <[EMAIL
what commands are you giving it to compile and what errors you getting?
Adam
On Fri, 6 Sep 2002, yoda2005 wrote:
> Is there any way to do it? I cant seem to get it to install as a module
> nomatter what I do. Right now I have it running as a cgi parser but some
> stuff I
Hey all
I have seen many tutorials on sending HTML email, and sending email with
attachments, but have found nothing on sending HTML email with the images
for the html attached.
Anyone familiar with doing this?
Thanks,
Josh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Well this is just a suggestion since I am in the middle of some PostgreSQL
learning and I don't entirely know your situation.. BUT...
In times like this, I usually build one MASTER OBJECT to controll all the
other little happy citizen objects like mindless sheep.
For instance. At one point I ne
Is there any way to do it? I cant seem to get it to install as a module
nomatter what I do. Right now I have it running as a cgi parser but some
stuff I want to do I cant really do when it is running like this... Any
ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
Hi
I have a site web made in ASP ( using frontpage software), After I read
about php I decided to re-do all my site with PHP, but still new in php
script I need help to show me the best way to change borders in ASP to php .
as you know frontpage software put the borders in "_borders", I can still
I'm compositing a class based on other classes. The component classes
are (this is for a transportation application) fuel and vehicle. The
container class is mode (as in mode of transit: rail, bus, etc.). There
can be several vehicles and fuels for each mode (many to one). I want
to be able to
Thank you all very much. Turns out it was yet another browser cache issue
and a quick reboot solved the problem. Minor modification of just two lines
and I'm back in business. It's the details that'll kill you, eh? :)
Final code...
Again much thanks to everyone who helped me.
--
Kevin St
its failing before i can even authorize myself for use in the proxy at
if ($fs = fsockopen("wwp.icq.com",80)) {
what must i do?? :/ the proxy is on port 8080?
cheers
":B Nerdy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> im unable to access the web
> $sql2_results = mysql_fetch_array($top_level);
I guess this must be in a loop otherwise your $sq12_results keep getting
overwitten; thus,
the last record will be shown at the end.
> $query_sql2_rows = mysql_num_rows($top_level);
>
> echo $query_sql2_rows;
> // echo's 2 rows
>
> print " cell
It doesn't matter what variables you assign to "fetch" the data, one of
the effects of mysql_fetch_array() is to increment the database result
variable. It does this without you even knowing it. check out the
mysql_data_seek() function to see how you can make the adjustments
yourself. i.e.
I know this problem. Konqueror, Netscape, Mozilla, and Opera are all broken.
They use cache regardless of whether or not they should when you use the back
button. I know of no way around it.
What especially pisses me off is that Mozilla, shortly before 1.0, worked
properly, even when you us
Hello, Steve,
When you call mysql_fetch_array the first time, you are accessing the data
from the first row of your results and then moving the pointer to the next
row. So, when you call mysql_fetch_array the second time, it is already
starting with the second row of your results. Try something l
OK, this works.. This is wonderful.. But I don't get it.. I assigned two
separate variables to that array function.. I don't understand why this
works now, but thanks a lot for the help.
I hope I don't inadvertently run into this again...
-steve
$sql2 = mysql_connect("localhost", "eweb", "db
Well, when you run the command:
$sql2_results = mysql_fetch_array($top_level);
The first time, it automatically increments the result...
so you fetch the data bu do nothing with it...
so when you get to your loop, you are already at the second entry in
your database..
So, remove the first inst
Can anyone tell me what's wrong with my code? All I get output from this is
the LAST row of data from my Database. There are 2 rows, how do I make it
pull data from all of the rows? It's not going through the loop like it
should I need to be able to tell the mysql_fetch_array which row I w
Again, the new problem is that the Text is not downloading as a file. It is
just being printed to the screen.
I tested the following code:
on a WinNT 4.0 with Apache 1.3.24 and PHP 4.2.3 and did not come across the
same issues as you.
I was prompted to download or open the file.
However,
Correction:
/* Get the first character of a string */
$str = 'This is a test.';
$first = $str{0};
$first will be 'T'
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Alex Shi" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
>
> Where did you seen that it is depreciated?
>
http://www.php.net/manual/en/language.types.string.php
[block quote begins]
String access by character
Characters within strings may be accessed by specifying the zero-based offset of the
desired character after the st
Try it on your own..
$ary = array('key' => 'val');
$ary['key']; //prints val
$ary{'key'}; //prints val
Square brackets are more common but both are valid array syntax. There may
be special cases where curly braces are used in place of square brackets..
this I don't know.
Kevin
- Original
Where did you seen that it is depreciated?
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Robert Cummings" <[EMAIL PROTECTED]> a écrit dans le message de
news: [EMAIL PROTECTED]
>
> Some time ago i wrote some code where I used the now deprecated
It looks like that some yrs ago, the variable $GLOBALS contains all the
variable of the page so thats like describing the variable of the page.
I'm not sure too, I've never tested/used it.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - H¨¦bergement de sites Internet
"Alex Shi"
I used different chars for testing purposes only. chr() function helped
with the original problem. Again, the new problem is that the Text is not
downloading as a file. It is just being printed to the screen. Any ideas
why it wouldn't be prompting the downloading?
-Kevin
- Original Messa
Some time ago i wrote some code where I used the now deprecated
form of accessing characters in a string $string[x]... Would there
be much of a performance gain for me to go take the time to update
the code to the newer $string{x} style?
Cheers,
Rob.
--
.-.
| Robert Cummings |
:
Use the JavaScript object "Location"
Example:
URL: http://www.www.com/index.htm?foo=bar
location.search; returns ?foo=bar
Then use the JavaScript object "String" to search the string and exact the
value.
Use the method: indexOf( ) to search the string for the character "="
Then use the m
I checked the code again...it is $Globals{'lala'}...
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I never saw that is it really working? it is supposed to be
$_GLOBAL['lala']
> too.. but..
>
> --
>
> Nicos - CHAILLAN Nicolas
> [EMAIL PROTECTED]
> www.WorldA
Ewps wrong location.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
<[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hello,
>
> After using the master.php.net's users website since few years, I
think
> that we should pu
Hello,
After using the master.php.net's users website since few years, I think
that we should put more fonctions at it, like levels, more utils etc. If you
allow me to do something, tell me I should make a _better_ user
administration page. If you have any idea, suggestions please tell me.
[snip]
[/snip]
Try this;
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
David T-G wrote:
>
> Brent --
>
> The data file format is
>
> field@@data
> field@@data
> ...
>
> and a real example is
>
> comment@@this is a comment
> latdir@@N
> londir@@W
> latdec@@36
> londec@@89
> ...
>
> and my code [now, after mods,] looks like
>
> ...
> if ( f
Take that to the correct newsgroup.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Raphael Hamzagic" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Anyone knows if there's a way to set a javascript variable in the callin
I never saw that is it really working? it is supposed to be $_GLOBAL['lala']
too.. but..
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Alex Shi" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> I have almost two years of
Here's what your file contains:
ccadev:/# od -c TEST.txt
000L I N E O N E \r L I N E T W
020O \n L I N E T H R E E
034
Wordpad handles it. Notepad does not.
But you have different line terminators for each line
Later
Brent --
...and then Brent Baisley said...
%
% Sorry. Since you were looking to use , I thought you were creating
% HTML content. But then, line feeds are ignored in HTML so then you
Well, yes and no.
% wouldn't have a problem with them. I should have thought of that.
Well, yes and no :-)
Hi List,
Is anyone aware of a script that would allow an image file to be read (like
a map) and then allow a user to add a dot (or any other shape) and/or text
to the image and then save the resulting image.
TIA, verdon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Someone already posted a solution, which was a great idea actually :-)
exec("arp $_SERVER[REMOTE_ADDR]", $output);
echo "H/W Addr should be: $output[1]";
Because you are on a LAN, you should be easily able to acertain the MAC address
through ARP. This would not qork for non-LAN situations, but
Here you go
http://www.zend.com/manual/function.session-is-registered.php
--- Mauricio Cuenca <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm working with register_globals turned off. I'm
> setting this session
> cookie:
>
>if ($nresult) {
> if (mysql_numrows($nresult)) {
> session_
Much thanks. This works but now it won't propmpt the download. Once the
headers are sent anything going to std out is part of the download correct?
But this is just printing to the screen. Any thoughts there?
-Kevin
- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To:
Anyone knows if there's a way to set a javascript variable in the calling
url. Like:
http://www.www.com/index.htm?foo=bar
in index.htm:
Should print "bar"
Thanks
Raphael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
It's certainly _possible_ -
Your httpd.conf (I'm assuming you use Apache, of course) file is just
a text file that can be read/written like anything else. Then you
could do a
system('/path/to/apache/bin/apachectl restart');
to activate. Doing it this simply, thoughm means that your
w
Hello all,
The application I am trying to should only be accessible from work as it is
a timeclock. Consequently, a login will, unfortunately, not work. An IP
address may work, but the whole university is on DHCP and I do not want them
to clock in from other parts of the university (student la
Hi ... You can make it like this:
If you have
$variable4[0]="four";
Then you can have a new variable
$$variable[0] , and the new variable´s name is four
Cordialmente
Daniel Massón => Ingeniero de desarollo
[EMAIL PROTECTED]
www.imagine.com.co
Tels: (57)(1) 2182064 - 6163218
Bogotá - Col
[snip]
I have a script that allows clients to download their email lists from a
database. However I can not get the 'new line' characters (\n \r) to do
their job in Notepad when the download is prompted and the file saved to
disk. I've simplified the problem with the code below. Both \n and \r
> $file = "LINE ONE\nLINE TWO\rLINE THREE\n\r";
Try this instead and see if it works...
$windowsNewLine = chr(13) . chr(10);
$file = "LINE ONE{$windowsNewLine}LINE TWO{$windowsNewLine}LINE
THREE{$windowsNewLine}";
Not sure if Notepad will interpret \r\n correctly...
Chris
--
PHP General
I have almost two years of experience in PHP. so don't think qualified for
being a newbie...However still found something don't know when reading
other's code :(
Here is what I want to know: $Global{'hello'}. What this means? Is it a
Variable-variable?
Alex
--
---
T
I have a script that allows clients to download their email lists from a
database. However I can not get the 'new line' characters (\n \r) to do
their job in Notepad when the download is prompted and the file saved to
disk. I've simplified the problem with the code below. Both \n and \r
display
Hoping someone can help me with this. Below I have an example of what
I'm trying to accomplish.
Bottom line.. I need to print out $variable3[0] and $variable4[0]
and my problem is that I'm trying to generate the variable name. I can
get this to work with $variable1 and $variable2 which are not a
[snip]
I am such a newbie it's not funny. I have a php bible and I am checking the
code on three different websites.
I was wondering if someone had some sample code on this:
I want to list field1 from a mysql db - (I can do that) - but I want to put
a hyperlink so the user can click it and go
I am such a newbie it's not funny. I have a php bible and I am checking the
code on three different websites.
I was wondering if someone had some sample code on this:
I want to list field1 from a mysql db - (I can do that) - but I want to put
a hyperlink so the user can click it and go into t
Sorry. Since you were looking to use , I thought you were creating
HTML content. But then, line feeds are ignored in HTML so then you
wouldn't have a problem with them. I should have thought of that.
How are you reading the file? The key being that you said you read it
"line by line". Once you
search the archive - i posted a gd1 solution about 2 or 3 weeks ago...
dave
-Original Message-
From: Fifield, Mike [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 7:54 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Image Resizing ... lets try this again.
I sent this email ou
no more of a security breach than any other ftp client a user would make the
CHOICE to use. Hey, it's our responsibility as developers to make things as
secure as possible...but only to the point that we continue to help meet the
needs of our clients. When we stop meeting the needs because of ou
Mark McCulligh wrote:
>
>I know how to browse the user's file system using JavaScript or VBScript if
>I use the ActiveX object "FileSystemObject" but then the site will only work
>
Sounds like a massive security breach.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
No announcement in php.announce?
"Zeev Suraski" <[EMAIL PROTECTED]> wrote in message
5.1.0.14.2.20020906171453.01c4d668@localhost">news:5.1.0.14.2.20020906171453.01c4d668@localhost...
> PHP 4.2.3 has been released. It is a maintenance release
and includes a
> large number of fixes for the previo
Hello,
I'm working with register_globals turned off. I'm setting this session
cookie:
if ($nresult) {
if (mysql_numrows($nresult)) {
session_start();
$_SESSION['auth'] = 'TRUE'; } }
And then I'm checking if the cookie is set, but it doesn't work:
if ($_SESSION['auth']
Nice work.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Zeev Suraski" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> PHP 4.2.3 has been released. It is a maintenance release and includes a
> large number of fixes for
Hi,
I have a really huge form handler implemented as a single php class.
The handler takes some POST values and depending on their contents calls
some very big member functions.
Now I have to add new functionality and I fear that a 500K php script will
kill server response time.
Since I don't h
PHP 4.2.3 has been released. It is a maintenance release and includes a
large number of fixes for the previous 4.2.2 version. 4.2.3 is a
recommended upgrade for all users of PHP, and particularly Windows users.
Full list of changes:
- Enabled strcoll() on win32. (Markus)
- Fixed possible ASCI
Hello,
We are developing an aplication to use it over terminal. It has to be a
text-based application, not web-based. Sine we all know PHP very well and
only few of us know C, we want to use PHP to develop it. The application
complexity is like "mc" (Midnight Commander) program and requieres
Brian --
...and then Brian V Bonini said...
%
% I'm sorry, I missed the first part of this thread so am only going by its
% subject line mostly... But, I assume you are all aware of the nl2br function
Well, only sorta; I said "replace" in there, you may notice.
% and there's a special reason
Brent, et al --
...and then Brent Baisley said...
%
% Why not just use the nl2br() function? It's a lot easier that using any
Because it doesn't do what I need. From the Fine Manual:
nl2br -- Inserts HTML line breaks before all newlines in a string
string nl2br ( string string)
Return
Rob, et al --
...and then Robert Cummings said...
%
% David T-G wrote:
% >
% > ...and then Robert Cummings said...
% > %
...
% > % $foo = str_replace( "\n", '', $foo );
% > %
% > % That one work for you? It's more efficient too.
% >
% > Actually, no. I thought about listing all of the thi
$date = date("U",strtotime("-7 day"));
Have a nice day.
Adam Voigt
[EMAIL PROTECTED]
On Fri, 2002-09-06 at 12:37, Mike richardson wrote:
> The attached class is a date utility that I created a long time ago.
>
> It parses out SQL dates, does differences, and specific to your needs,
> you can
The attached class is a date utility that I created a long time ago.
It parses out SQL dates, does differences, and specific to your needs,
you can use dateAdjust() to move a unix timestamp by a number of
seconds, minutes, hours, days, months, quarters, years or centuries.
You should be able t
I'm sorry, I missed the first part of this thread so am only going by its
subject line mostly... But, I assume you are all aware of the nl2br function
and there's a special reason it does not apply here but I thought I'd
mention it any way... Just in case... :)
-B
--
PHP General Mailing List (
Why not just use the nl2br() function? It's a lot easier that using any
replace function you build yourself.
On Friday, September 6, 2002, at 11:58 AM, David T-G wrote:
> Hi, all --
>
> I have a php script which writes comments out to a file in the format
>
> field@@comment
> field@@commen
David T-G wrote:
>
> Rob, et al --
>
> ...and then Robert Cummings said...
> %
> % Actually on second thought... and I don't know why I went with the
>
> *grin*
>
> % crowd in the first place... I do the following:
> %
> % $foo = "I don't like\nnewlines";
> %
> % $foo = str_replace( "\
Rob, et al --
...and then Robert Cummings said...
%
% Actually on second thought... and I don't know why I went with the
*grin*
% crowd in the first place... I do the following:
%
% $foo = "I don't like\nnewlines";
%
% $foo = str_replace( "\n", '', $foo );
%
% That one work for you
I spent a LOT of time several moths back trying to figure this one out. It
worked fine in Outlook Express, but in Outlook, the whole message appeared
on a single line. It only happened when my client filled out the form from
a Mac, which turned out to be the important clue.
The trick ended up b
That's been one of the major problems i've encoutered as well because PHP is
a server based language (what you've got,) not a client based language (what
you need.) If i had to write a web based ftp client. I would do some
exploring with Java, or flash, activeX, or ? all languages which can
Actually on second thought... and I don't know why I went with the
crowd in the first place... I do the following:
$foo = "I don't like\nnewlines";
$foo = str_replace( "\n", '', $foo );
That one work for you? It's more efficient too.
Cheers,
Rob.
David T-G wrote:
>
> Rob, et al --
>
Do you mean use a Java Applet or JavaScript.
I know how to browse the user's file system using JavaScript or VBScript if
I use the ActiveX object "FileSystemObject" but then the site will only work
on IE. I don't like build sites that only work for one browser.
But even if I create a page that l
Rob, et al --
...and then Robert Cummings said...
%
% David T-G wrote:
% >
% I've never had problems with doing:
%
% $foo = "I don't like\nnewlines";
%
% $foo = ereg_replace( "\n", '', $foo );
I'm afraid I do. Given my code
$fin = stripslashes(${base64_encode($k)}) ; ##
This one is in the wrong place... please ignore...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bothe of us got the same problem at same time :-)
- Original Message -
From: "David T-G" <[EMAIL PROTECTED]>
To: "PHP General list" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 9:28 PM
Subject: [PHP] replacing \n with
--
PHP General Mailing List (http://www.php.net/)
To uns
Chandu, et al --
...and then N. Pari Purna Chand said...
%
% I have a small problem in converting a plain text to html.
Son of a gun... Maybe it's world consciousness working on this :-)
I've just posted a similar question. Be sure to watch both threads just
in case.
HTH & HAND
:-D
--
Da
[snip]
> Challenge; Can this be made as simple for rows too?
$val)
$rowTotal += $val;
// display whatever is needed from $row
$rowTotals[] = $rowTotal; // or echo it out to the last column of the
table
}
?>
[/snip]
:^]
Or based on the original query;
while($row
David T-G wrote:
>
I've never had problems with doing:
$foo = "I don't like\nnewlines";
$foo = ereg_replace( "\n", '', $foo );
Cheers,
Rob.
> Hi, all --
>
> I have a php script which writes comments out to a file in the format
>
> field@@comment
> field@@comment
> ...
>
> an
Thanks for your reply! Still have another question: How to use
header() to generate download link?
Alex
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Alex Shi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 7:27 AM
Subject: Re: [PHP] Link for downloadin
Hi, all --
I have a php script which writes comments out to a file in the format
field@@comment
field@@comment
...
and everything has worked delightfully -- until someone put in a newline
in one of the items and now we have
field@@com
ment
field@@comment
...
and things break. I
I have a small problem in converting a plain text to html.
say
$text = "PHP
Rocks";
Observe the '\n',
When I call the converttohtml function which I wrote ( see bottom )
$html = converttohtml($plaintext);
The $html I'm getting is
"PHP
Rocks";
Observe the '\n' still exists,
What is the way to
Thanks...but how to use header() to generate such a download link?
Alex
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> First, to create a link thats just a that point to the file.
> ie file
>
> Second, that depend of your windows's default configuration.
>
I can't believe that I hit wrong buttons two times... so my answer for the
third time...
Thanks for your answer. Here is a genereted email:
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 21481 invoked from network); 6 Sep 2002 15:47:03 -
Received: from notu
Thanks for your answer. Here is a genereted email:
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 21481 invoked from network); 6 Sep 2002 15:47:03 -
Received: from notused.i-dea.de (HELO mail.e-h.de) (62.26.122.219)
by ns.i-dea.de with SMTP; 6 Sep 2002 15:
Is there any easy way of creating,editing and deleting virtual hosts using
PHP via a website?? I have already thought of a way but seems a little long
winded.
Thanks in advance.
Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Reading the users hard drive is impossible from php, but it's really easy
with Java.
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 7:49 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Web based FTP client
Hi Mark,
> I am trying to buil
Hi Jay,
> while($row = mysql_fetch_object($result)){
>print("" . $row->value . "\n");
>print("" . $row->another_value . "\n");
>$value1 = $value1 + $row->value;
>$value2 = $value2 + $row->another_value;
> }
>
> Challenge; Can this be made as simple for rows too?
$val)
One thing I would add to Jay's out loud thoughts...
Always consider alternative approaches. Using a single query and
calculating the totals at the same time is fine if you have a small
dataset, or (as in this case) are producing page totals (I'm assuming
the dataset is paged to fit all on one pag
1 - 100 of 192 matches
Mail list logo