|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: php3 Digest 12 Feb 2000 18:00:01 -0000 Issue 1474
From: php3-digest-help
lists.php.netDate: Sat Feb 12 2000 - 12:00:01 CST
- Next message: php3-digest-help
lists.php.net: "php3 Digest 13 Feb 2000 06:00:01 -0000 Issue 1475"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 12 Feb 2000 06:00:01 -0000 Issue 1473"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 12 Feb 2000 18:00:01 -0000 Issue 1474
Topics (messages 75746 through 75790):
Adding a / forward slash to dynamic file creation.
75746 by: "Martin E. Koss" <mek
mek.co.uk>
75748 by: Lars Torben Wilson <torben
pinc.com>
75749 by: "Martin E. Koss" <mek
mek.co.uk>
A simple and quick guesbook ?
75747 by: Darin Lang <darin
flashcom.net>
Question about executing Perl scripts
75750 by: Carl Osterly <carl
liquidweb.com.au>
75751 by: rasmus
php.net
why so many problems???
75752 by: Dean James <sacramone
mediaone.net>
75754 by: rasmus
php.net
75759 by: "Jason Brooke" <jason
qgl.org>
75764 by: "Martin Edelius" <martin.edelius
spirex.se>
75766 by: "NickM" <terado
hotmail.com>
what is the best configuration
75753 by: Dean James <sacramone
mediaone.net>
Site Stats Programs
75755 by: Brian Clark <brianj
ais.ais-gwd.com>
Binary Data + MySQL + PHP
75756 by: "Ed Lazor" <osmosis
atfantasy.com>
Number's format
75757 by: Felipe Fernández <felipef
mundivia.es>
Parsing CSV
75758 by: "Ted Knudson" <tedk
cyberlink.com>
Ouppsss, sorry ...
75760 by: "Opi" <opi
volny.cz>
Premature end of script headers & Win2000
75761 by: "MacWilt - Webmaster chaos.fsgs.com" <webmaster
chaos.fsgs.com>
ASP inside PHP
75762 by: Sugianto Yonatha <sugi
home.unpar.ac.id>
php script in .html file
75763 by: anik <anya
cbrf.vyatka.ru>
75767 by: "NickM" <terado
hotmail.com>
Can't seem to install PHP3 on NT w/ IIS4 today.
75765 by: "mark stabb" <mark
northdevon-on-the.net>
Upload Examples
75768 by: "WL" <will
localads.net>
75778 by: "WL" <will
localads.net>
75782 by: idban secandri <idban
satunet.com>
Kind of a gateway
75769 by: Anders Thorsby <anders
thorsby.dk>
session functions not working
75770 by: rasmus
php.net
text
75771 by: <sinisa
mysql.com>
BAPUG - Bay Area PHP Users' Group
75772 by: rasmus
php.net
florida user's group
75773 by: "Rossi Designs" <webmaster
rossidesigns.net>
75775 by: "Bryan Batchelder" <bbatchel
stetson.edu>
75777 by: Damien Mc Kenna <mckenna
wso.net>
75783 by: "Andy Frankford" <andylist
alliancecommerce.net>
Help for mysql connectivity with php3.0.12 on Apache server on WinNT
75774 by: "Ravi" <ravindrapandit
hotmail.com>
Is it possible to include different files depending on link ??
75776 by: Sandeep Hundal <sandeephundal
yahoo.com>
75780 by: "Martin Edelius" <martin.edelius
spirex.se>
php3_engine on/off
75779 by: "Vegard Hanssen" <vhansen
chello.no>
75781 by: rasmus
php.net
undefined symbol: ifx_module_entry
75784 by: "Danny Heijl" <danny.heijl
pandora.be>
For Italian People only (sorry)
75785 by: ZioBudda <michel
michel.enter.it>
PHP with SQL Server
75786 by: "Gustavo" <gustavo
interbrain.com.br>
About subcribe/unsubcribe function on http://www.php.net/support.php3
75787 by: "Chia-Hao Chang" <cowboy
tkgis.tku.edu.tw>
Work needed to be done
75788 by: "Chris W." <falco
perfekt.perfekt.net>
modifying records
75789 by: "M. Erickson" <merickson
fix.net>
filemtime(...) problem
75790 by: Tim Fountain <tim
tfountain.co.uk>
Administrivia:
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php3-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php3
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hi,
I am creating a file dynamically and need to insert PHP Comments, for
example:
// Info...
But when I run the script I get an error on the line containing the forward
slashes. The line in the script is:
$TheTEXT .= "// Could be Header, Footer or Both"\n";
And here's the error:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
Any ideas how I can include these characters without the error.
Regards,
Martin E. Koss
Active Media Solutions
E: mek
mek.co.uk
T: 0870-740-1300 (01507-602553)
F: 0870-740-1303
W: www.activesolutions.co.uk
attached mail follows:
Martin E. Koss writes:
> Hi,
> I am creating a file dynamically and need to insert PHP Comments, for
> example:
That shouldn't be a problem.
> // Info...
> But when I run the script I get an error on the line containing the forward
> slashes. The line in the script is:
> $TheTEXT .= "// Could be Header, Footer or Both"\n";
^
I think that extraneous " (double-quote) is what's doing you in. Could
just be a typo in the email, but if that's really what the code looks
like, the parser would choke there.
Hope this helps (cause then it's real easy and I don't have to think
any more :)
Torben
> And here's the error:
> Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
>
> Any ideas how I can include these characters without the error.
>
> Regards,
>
> Martin E. Koss
> Active Media Solutions
> E: mek
mek.co.uk
> T: 0870-740-1300 (01507-602553)
> F: 0870-740-1303
> W: www.activesolutions.co.uk
-- +----------------------------------------------------------------+ |Torben Wilson <torbenphp.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben
netmill.fi| +----------------------------------------------------------------+
attached mail follows:
I found my mistake - nothing to do with the forward slashes, I had a typo at the end of the line. What an idiot I am...
-----Original Message-----
From: Martin E. Koss [mailto:mek
mek.co.uk]
Sent: 12 February 2000 06:50
To: PHP
Subject: [PHP3] Adding a / forward slash to dynamic file creation.
Hi, I am creating a file dynamically and need to insert PHP Comments, for example: // Info... But when I run the script I get an error on the line containing the forward slashes. The line in the script is: $TheTEXT .= "// Could be Header, Footer or Both"\n";
And here's the error: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
Any ideas how I can include these characters without the error.
Regards,
Martin E. Koss
Active Media Solutions
E: mek
mek.co.uk
T: 0870-740-1300 (01507-602553)
F: 0870-740-1303
W: www.activesolutions.co.uk
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
You could read it in from say a pipe delimited file so you don't have to worry about commas, quotes etc. and write the output to a new file whatever.html
Then run the script whenever you need to update.
Darin Lang mailto:darin
flashcom.net
My Web Sites: http://ChandelierShop.com
http://KodiakLodge.com
and Coming Soon----> http://YahooFarm.com
> From: Sandeep Hundal <sandeephundal
yahoo.com>
> Reply-To: sandeephundal
yahoo.com
> Date: Fri, 11 Feb 2000 17:10:24 -0800 (PST)
> To: php3
lists.php.net
> Subject: [PHP3] A simple and quick guesbook ?
>
> Hey all,
>
> I'm wondering how this could be done... : I'm
> trying to use a form to throw some one line
> quotes (and people names linked to their email
> address) into table cells. The only problem is
> that i'm wondering how this could be done without
> all the data going into text files which are then
> pulled into the table cells. Isn't it possible to
> get PHP to write to the html file and keep it
> there for ever ??
>
> Something like :
> <table>
> <tr>
> <td><!--First quote--> The force will always
> be with you - Obe won kenobe</td>
> </tr>
> </table>
>
> and make it so it automatically adds in a new
> table row.....
>
> or are there any similar examples i could modify
> used within tables ??
>
> thanks for any help
>
> Sunny Hundal
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hi there,
This is probably a dumb question, but I find it hard to locate the exact answers from the PHP manual.
What's the PHP equivalent of the following SSI statement:
<!-- #exec cgi="name_of_perl_document.cgi" -->
Any answers would be greatly appreciated. Thanks for your time.
Regards,
Carl
--Liquid Web - corporate internet services
Email: carl
liquidweb.com.au Web: http://www.liquidweb.com.au/
attached mail follows:
virtual()
On Sat, 12 Feb 2000, Carl Osterly wrote:
> Hi there,
>
> This is probably a dumb question, but I find it hard
> to locate the exact answers from the PHP manual.
>
> What's the PHP equivalent of the following SSI statement:
>
> <!-- #exec cgi="name_of_perl_document.cgi" -->
>
> Any answers would be greatly appreciated.
> Thanks for your time.
>
> Regards,
>
> Carl
>
> --
>
> Liquid Web - corporate internet services
>
> Email: carl
liquidweb.com.au
> Web: http://www.liquidweb.com.au/
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hello,
I have two questions...the second is to follow in another email.
Why is it that almost a third of all the emails that come thru this list talk about all the errors and problems they are having with PHP3 and one thing or another in terms of installation and compatibility. I am in no way dogging PHP, cause I am actually learning it myself. But I get to thinking that maybe its not as stable as other technologies...ie.. PERL, ASP, JSP??? I don't know, can someone "enlighten me"
thanks, dean
attached mail follows:
> Why is it that almost a third of all the emails that come thru this list > talk about all the errors and problems they are having with PHP3 and one > thing or another in terms of installation and compatibility. I am in no > way dogging PHP, cause I am actually learning it myself. But I get to > thinking that maybe its not as stable as other technologies...ie.. PERL, > ASP, JSP??? I don't know, can someone "enlighten me"
Well, there are many more questions because there are many more users. And installation problems have nothing to do with stability issues.
-Rasmus
attached mail follows:
Probably a combination of people not knowing enough about their system, and the huge variety of different systems configurations out there. I think that the number of times installation problems are caused by actual errors in the release of Php itself would be tiny.
Another thought - in my 18 months of using Php and Linux, I have had one installation in about 40-50 on a variety of Linux, Freebsd, and Win32 systems which gave me trouble. It'd be interesting to know how many other people have had a similar track record, just for comparison's sake with the number you've noticed that have had trouble.
What did you mean about stability anyway? How is that related to the installation?
jason
> Hello, > > I have two questions...the second is to follow in another email. > > Why is it that almost a third of all the emails that come thru this list > talk about all the errors and problems they are having with PHP3 and one > thing or another in terms of installation and compatibility. I am in no > way dogging PHP, cause I am actually learning it myself. But I get to > thinking that maybe its not as stable as other technologies...ie.. PERL, > ASP, JSP??? I don't know, can someone "enlighten me" > > thanks, > dean
attached mail follows:
Well, if everyone started using this list to praise PHP and it's many uses then what good would it be? Imho this list is here to help me when I run into a problem.
Best regards, Martin Edelius
Spirex Digital Design
--------------------------------
www: http://www.spirex.se
Mail: martin.edelius
spirex.se
Phone: +46-31-514651, 0708-113711
Fax: +46-31-514331
Aröds Industriväg 3c
S-422 43 Hisings Backa
--------------------------------
If I haven't got back to you or done what I'm supposed to, let me know again
as I have too much to do for my own good...
----- Original Message -----
From: "Dean James" <sacramone
mediaone.net>
To: <php3
lists.php.net>
Sent: Saturday, February 12, 2000 9:06 AM
Subject: [PHP3] why so many problems???
> Hello,
>
> I have two questions...the second is to follow in another email.
>
> Why is it that almost a third of all the emails that come thru this list
> talk about all the errors and problems they are having with PHP3 and one
> thing or another in terms of installation and compatibility. I am in no
> way dogging PHP, cause I am actually learning it myself. But I get to
> thinking that maybe its not as stable as other technologies...ie.. PERL,
> ASP, JSP??? I don't know, can someone "enlighten me"
>
> thanks,
> dean
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Exactly, and often the problems are simply people needing to know how to do something or if a fucntion exists and how to use it. I would say that would be more a problem in Perl as its construct is more difficult to follow.
Rarely are there bugs sent here, and often they are misunderstood. You see it is in effect a CGI scripting language, as is Perl when used for webpages, this means that the webserver is skiped over and therefore no filtering of nasty characters and so on. There certainly are problems with PHP but I would rather know of them and work to find another way around it than have a list of oh this is such a pretty language.
Nick
----- Original Message -----
From: "Martin Edelius" <martin.edelius
spirex.se>
To: "Dean James" <sacramone
mediaone.net>; <php3
lists.php.net>
Sent: Saturday, February 12, 2000 12:11 PM
Subject: Re: [PHP3] why so many problems???
> Well, if everyone started using this list to praise PHP and it's many uses
> then what good would it be? Imho this list is here to help me when I run
> into a problem.
>
>
> Best regards,
> Martin Edelius
>
> Spirex Digital Design
> --------------------------------
> www: http://www.spirex.se
> Mail: martin.edelius
spirex.se
> Phone: +46-31-514651, 0708-113711
> Fax: +46-31-514331
> Aröds Industriväg 3c
> S-422 43 Hisings Backa
> --------------------------------
> If I haven't got back to you or done what I'm supposed to, let me know
again
> as I have too much to do for my own good...
>
> ----- Original Message -----
> From: "Dean James" <sacramone
mediaone.net>
> To: <php3
lists.php.net>
> Sent: Saturday, February 12, 2000 9:06 AM
> Subject: [PHP3] why so many problems???
>
>
> > Hello,
> >
> > I have two questions...the second is to follow in another email.
> >
> > Why is it that almost a third of all the emails that come thru this list
> > talk about all the errors and problems they are having with PHP3 and one
> > thing or another in terms of installation and compatibility. I am in no
> > way dogging PHP, cause I am actually learning it myself. But I get to
> > thinking that maybe its not as stable as other technologies...ie.. PERL,
> > ASP, JSP??? I don't know, can someone "enlighten me"
> >
> > thanks,
> > dean
> >
> >
> > --
> > PHP 3 Mailing List <http://www.php.net/>
> > To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> > To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> > To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hello again,
I am in the process of getting a new computer that I want to use as a "php/perl" environment type of deal for development. I am getting tired of always having to upload to the server ..testing...blah blah blah..I don't want to install these libraries on my windows machine...
the question: WHAT IS THE BEST CONFIGURATION FOR A BLANK HARDDRIVE IN WHICH TO DEVELOP PHP/PERL??? Linux/apache/mysql etc... basically I want to start off on the right foot..
any help
thanks, dean
attached mail follows:
I've looked in the few places that I know to look, but haven't found any existing _complete_package_ solutions.
Does anyone know of any site stats programs (other than crappy counters) written in PHP?
I'm thinking of converting an existing Perl/Flat-File based solution over to PHP/MySQL and I didn't want to reinvent the wheel.
Surly there's something. Anyone?
Brian
attached mail follows:
Hi =)
I read through this article:
http://phpbuilder.com/columns/florian19991014.php3
Good stuff! =)
Any recommendations on how to store html documents in the database and then pull them back out a page at a time?
So far I've been able to store the documents in the database pretty easily using one of two approaches:
- Display a form, have the person copy / paste their web document into the form, and submit it to the database.
- Use the method described in your article.
Once the documents are in the database, it's actually easy to pull them back out and have them display on the viewer's browser.
Of course, here's the catch: if the document is large, the viewer is in for a long wait.
The result is that I'd like to somehow "page" through the information.
I came up with what seems like a really "crude" way of accomplishing this. When someone requests a document, use a key to tell which page they are on. Then you just skip through each line in the document until you reach the page they are on, print the next 50 lines (or however many lines) to their browser and exit.
The reasons why this seems so "crude" is that the work load gets greater the further into the document the person gets. If it's a 30 page document, it's quick the first time, then longer, and then forever by the time you get to page 30. Plus, I would imagine that this puts a large load on the server.
Sooo... after that long winded description *grin*, I'm writing to see what other approaches you'd recommend on doing this. Any ideas or helpfull suggestions (especially examples) would be greatly appreciated =)
-Ed
attached mail follows:
Hi, Enrique Try printf / sprintf functions:
$cantidad=26.7123; $a = sprintf ("Cantidad: %'015.2f \n<br>", $cantidad); // $a: 000000000000026.71 // relleno (padding): 0 , 15 caracteres enteros (integers) , 2 decimales (decimals)
Un saludo, Felipe
________________________________
Felipe Fernandez-Perera
Epsilon Eridani
http://www.epsilon-eridani.com
mailto: felipe
epsilon-eridani.com
Enrique Gonzalvo wrote:
> Hi,I have a variable like this: $a=1and i want to conver to $a='01'How > can i do that?Thanks.
attached mail follows:
> -----Original Message-----
> From: SANIsoft [mailto:tarique
nagpur.dot.net.in]
> Sent: Friday, February 11, 2000 11:02 AM
> To: php3
lists.php.net
> Subject: Re: [PHP3] Parsing CSV
>
>
> Hello Folks
>
> Thanks to all those who replied
>
> Here is a function I rolled out to explode CSV strings -
>
Why not just use fgetcsv().
Here is some code I use.
$ReadFile = fopen($DoorQuoteFile,"r");//Opens the data file
while ($data = fgetcsv($ReadFile,$FSize)) { //Turns the file into an array by looping... $num = count($data);
//The array... $doors[$row] = array($data[0], $data[1], $data[2], $data[3], $data[4], $data[5], $data[6], $data[7], $data[8], $data[9], $data[10], $data[11], $data[12], $data[13], $data[14]); $row++; }
Ted Knudson http://www.automatedcabinets.com
attached mail follows:
try cz.comp.lang.basic.visual, cz.comp.microsoft.asp
news.volny.cz
to subscribe send "SUBSCRIBE VISBAS-L Anonymous" or "SUBSCRIBE ASP-L Anonymous"
(without quotes) to LISTSERV
LIST.EMWAC.CZ. You can replace Anonymous with Your Full
Name.
| I am a php3 oriented, but I must finish my homework with visual basic. :(
| how can I find, mailing list about visual basic ...
| can you help me ?
|
|
|
| -kreshna-
|
|
| --
| PHP 3 Mailing List http://www.php.net/
| To unsubscribe send an empty message to php3-unsubscribe
lists.php.net
| To subscribe to the digest list: php3-digest-subscribe
lists.php.net
| For help: php3-help
lists.php.net Archive: http://www.php.net/mailsearch.php3
| List administrator: zeev-list-admin
zend.com
|
|
attached mail follows:
Greetings,
I wasn't able to get PHP3 to run on a Apache 1.3.11 / Win2000 System. Plain HTML-Sites work fine, but when interpreting a php3-script, Apache returns a error 500. The logs say it's a 'Premature end of script headers' error.
What's the problem here?
Thanks for your help,
Markus Wilthaner
-- http://sqo.de.st
attached mail follows:
On Mon, 3 Jan 2000, Richard Lynch wrote:
> At 06:46 PM 1/3/00 +0700, you wrote: > >I know it sound silly, but can we include an ASP script inside PHP script > >and the ASP is parsed as usual? > > You could fopen() another URL that has .asp, and then include its output... > Thx for the answer, and sorry for reply it for so long But finally I use readfile() rather than fopen(). And it's work perfectly the way I want it.
Thx anyway.
Regards, Sugianto Y.
attached mail follows:
Hello php3,
what should i do to exec php script in .html file ?
Best regards,
anik mailto:anya
cbrf.vyatka.ru
attached mail follows:
Are you using apache?
If so then just add to your config file: AddType application/x-httpd-php3 .html
(assuming you are using php3 also) When you ask these sort of questions yuo should add some info on you setup.
Nick
----- Original Message -----
From: "anik" <anya
cbrf.vyatka.ru>
To: <php3
lists.php.net>
Sent: Saturday, February 12, 2000 12:06 PM
Subject: [PHP3] php script in .html file
> Hello php3,
>
> what should i do to exec php script in .html file ?
>
> Best regards,
> anik mailto:anya
cbrf.vyatka.ru
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
I installed php with the php_iis_reg.inf file then added
SET PHPRC=\windows\php3.ini to autoexec.bat as instructed.
In IIS 4 ISManager - properties-home directory-application
settings-configuration
add php3 c:\php3\php3.exe %S%S and it works fine.
Good Luck
Mark
----- Original Message -----
From: Christopher Ditty <CDitty
email.usps.gov>
To: php3 <php3
lists.php.net>
Sent: Saturday, February 12, 2000 12:03 AM
Subject: [PHP3] Can't seem to install PHP3 on NT w/ IIS4 today.
>
> I just installed php on my nt4 box with iis4 and for some reason, I
> can't seem to get php to work. I moved the php.ini to the winnt
> directory and installed the php_iis_reg.inf file. When I call up a
> page with the php_info tag in it, it will just display a white page.
> If I view the source, the tag is shown in the source but not on the
> page itself.
>
> Any pointers? I have installed php on nt before and had no problems.
> This is confusing.
>
> thanks
>
> CDitty
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi,
I've been trying and trying to upload files from a local computer to a remote server with no luck - can anyone give me some basic examples, or direct me to somewhere that will?
Thanks,
Will
------------ Web Developer and Programmer - SharkDesign.co.uk ------------ Lukrative Media Ltd
attached mail follows:
How can I tell it to use the real file name that's uploaded as opposed to this strange name it creates on the server? (like pHpwheiu)
Thanks,
Will ----- Original Message ----- From: Ufuk Kayserilioglu To: WL Sent: Saturday, February 12, 2000 1:51 PM Subject: Re: [PHP3] Upload Examples
Hi,
>From "Core PHP Programming":
--begin quote The form must ise the post method to allow for uploads, and they must also contain enctype attribute with a value of multipart/form-data. A hidden form variable, MAX_FILE_SIZE, must precede the file input tag. Its value is the maximum fle size in bytes to be accepted... --end quote
Well, in my experience I did not NEED the MAX_FILE_SIZE variable... But you have to play around with the upload_max_filesize in php.ini...
After you submit the form, you will have 4 variable defined.. If the name of your FILE field was "userfile" then:
1) $userfile : contains the complete path to the temporary file name 2) $userfile_name : conatins the original name of the file on the submitter's computer 3) $userfile_size : contains the size of the file 4) $userfile_type : conatins the mime type of the file, if it was offere by the browser.
I am attaching one submission HTML file and one action PHP3 file as examples...
Hope it helps,
Ufuk Kayserilioglu
----- Original Message -----
From: WL <will
localads.net>
To: <php3
lists.php.net>
Sent: 12 February 2000 15:18
Subject: [PHP3] Upload Examples
> Hi,
>
> I've been trying and trying to upload files from a local computer to a
> remote server with no luck - can anyone give me some basic examples, or
> direct me to somewhere that will?
>
> Thanks,
>
> Will
>
> ------------
> Web Developer and Programmer - SharkDesign.co.uk
> ------------
> Lukrative Media Ltd
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
this is the upload script from my site ( id-counter ) http://www.linux.web.id
--- begin --- <html><body> <form enctype="multipart/form-data" method="post" action=" <?php echo $PHP_SELF ?>"> Image File <br> <input type="File" name="picture" size="25"> <br><br> <input type="submit" name="submit" value="Upload"> </form> <? // $picture = picture name ( temporary name given by system ) // $picture_name = picture name ( original name )
if ($submit) { // check if sumbit button pressed, then copy the file from temp to directory // that we already set ( /change/where/the/files/should/be/upload/ ) // be sure dir location chmoded with 777 ot 666 exec( "cp $picture /change/where/the/files/should/be/upload/$picture_name");
// do some checking show the file was uploaded (img) echo "<img src=\"/change/where/the/url/of/uploades/files/$picture_name\"><br>\n"; } ?> </body></html> --- end ---
WL wrote:
>
> Hi,
>
> I've been trying and trying to upload files from a local computer to a
> remote server with no luck - can anyone give me some basic examples, or
> direct me to somewhere that will?
>
> Thanks,
>
> Will
>
> ------------
> Web Developer and Programmer - SharkDesign.co.uk
> ------------
> Lukrative Media Ltd
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Fri, 11 Feb 2000, Richard Lynch wrote:
> At 09:53 PM 2/11/00 +0100, you wrote: > >I don't want to process all the data through a single connection...of > >cause I need a connection for every file! > > > >My point is, that I want to connect to he server, get the data, determine > >the content-type. If the content-type is image, java, sound etc (nothing > >but html) it shall just be printed out with the correct Header. > >If html, it shall process through my code, to change all the HREF's SRC's > >etc in the HTML-tags and then print it out to the client. > >If I could do that in one HTTP-request, it would be great? > > > >I have used the readfile() function which makes the HTTP-request, and > >prints out the data, and that is great, cause this works with pictures > >(but I cant do the HTML-processing)
No this is not my problem, i know I need the regular expressions. My problem is to mahe the HTTP-request, determine the content type and the either print out the data (correct, even if binary) or send it to my regex-filter.
>
> So, like, "stealing" another web-site on the fly?
>
> You'll need a regex or 10 to find all the HREFs and SRCs and replace their
> links with links to where you store your files, or to some sort of script
> that will spit out their images through your site...
>
> Okay, if that's the question you are asking, look for ereg_xxx examples
> involving HREF= and SRC= throughout the code archives and mailing list
> archives.
>
> --
> "TANSTAAFL"
> http://CHaTMusic.com http://EmphasisEntertainment.com
> http://L-I-E.com http://JadeMaze.com
> http://CatCatalani.com http://MGMH.com
> http://VoodooKings.net http://UncommonGround.com
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
regards
Anders Thorsby
=============================================
Internet and PC Applications Developer
Copenhagen, Denmark
=============================================
anders
thorsby.dk - http://www.thorsby.dk
Phone: +45 22 64 19 02 - ICQ: 50 53 86 86
=============================================
Linux is like a wigwam:
* No Windows
* No Gates
* And an Apache inside...........
Go Linux! http://www.linux.org =============================================
attached mail follows:
> I am using php3 with Personal web server on win98 > > When I try to use any session function it says unsuppourted call . Any idea > ? Please help
That's because these are only in PHP 4.
-Rasmus
attached mail follows:
kathryn kasprow writes: > Hi, > > I am wondering that can I store the resume into database mysql? > and How? I know that the string is only 145 character string for text? I > would like to build a form for user to fill in and he submit it to the > database. When he want to retrieve that text from the database, it will pop > up the whole text. > > Can anyone lead me to the example scripts of php or mysql? > > Thanks in advance, > MH
Hi!
You can use varchar column for text up to 255 characters and beyond that you will have to use TEXT or BLOB attribute, depending on whether you need case (in)sensitive searches. There are some subtypes of the above two types, depending on the max. size you will require.
Regards,
Sinisa
+----------------------------------------------------------------------+
| TcX ____ __ _____ _____ ___ == mysql
tcx.se |
| /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic |
| /*/ /*/ /*/ \*\_ |*| |*||*| mailto:sinisa
mysql.com |
| /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaka, Cyprus |
| /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ |
| ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ |
| /*/ \*\ Developers Team |
+----------------------------------------------------------------------+
attached mail follows:
Could I get a show of hands here of people interested in a Bay Area user group for PHP? I am in San Francisco now and would like to start a user group if there is any interest. Send replies privately please, to avoid list clutter.
Also, if anybody reading this happens to have some inside info on a place opening up in the next month or two, please drop me a note. The housing market in this area is ridiculous and we are having some trouble finding something decent. 2 or 3 bedroom, no elevator or a lot of stairs (7-foot grand piano) anywhere within a somewhat sane commute from downtown SF.
-Rasmus
attached mail follows:
Hi list, I just saw an post from Rasmus about a users group in SF bay area. Is there a group near Daytona Beach, Florida?
Rossi Designs (904) 226-8979 P.O. Box 1084, Holly Hill, Florida 32125-1084 http://rossidesigns.net
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I don't know about any existing user groups, but I am sitting here over in DeLand, FL willing to help start one up.
- --Bryan
- -----Original Message-----
From: Rossi Designs [mailto:webmaster
rossidesigns.net]
Sent: Saturday, February 12, 2000 9:50 AM
To: php3
lists.php.net
Subject: [PHP3] florida user's group
Hi list, I just saw an post from Rasmus about a users group in SF bay area. Is there a group near Daytona Beach, Florida?
Rossi Designs (904) 226-8979 P.O. Box 1084, Holly Hill, Florida 32125-1084 http://rossidesigns.net
- --
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to
php3-unsubscribe
lists.php.net
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail:
php-list-admin
lists.php.net
-----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBOKV2wVRic7nL/q8wEQLy2wCgpKnGwsCaqYZzw4eazrNcm1P568oAoOF6 jxVH+nLGLJJ4HpcATtkqugc6 =Zxap -----END PGP SIGNATURE-----
attached mail follows:
On 2/12/00 10:05:37 AM, "Bryan Batchelder" wrote: > I don't know about any existing user groups, but I am sitting here > over in DeLand, FL willing to help start one up.
I'll be living in Sanford/Orlando in the summer, so I'd be interested too.
Damien Mc Kenna Keene State College student mckenna
crosswinds.net
Married to Jen http://www.crosswinds.net/~mckenna ICQ:17066133
attached mail follows:
Hello,
(From Boca Raton, FL) IS there a state U Group?
Any benefit to establishing one guys?
We probably have enough bandwidth to host one if there is any mutual benefit for us ( http://alliancecommerce.net ). I'd spring for a DN entry.
And... there is always the opportunity for eyball contact - (ya, we're a bit south of Orlando, but no big hills to cross :-)
How about private replies - off list.
Andy Frankford Alliance Commerce, Inc.
>>-----Original Message-----
>>From: Damien Mc Kenna [mailto:mckenna
wso.net]
>>Sent: Saturday, February 12, 2000 10:34 AM
>>To: php3
lists.php.net
>>Subject: RE: [PHP3] florida user's group
>>
>>
>>On 2/12/00 10:05:37 AM, "Bryan Batchelder" wrote:
>>> I don't know about any existing user groups, but I am sitting here
>>> over in DeLand, FL willing to help start one up.
>>
>>I'll be living in Sanford/Orlando in the summer, so I'd be interested too.
>>
>>
>>Damien Mc Kenna Keene State College student mckenna
crosswinds.net
>>Married to Jen http://www.crosswinds.net/~mckenna ICQ:17066133
>>
>>
>>--
>>PHP 3 Mailing List <http://www.php.net/>
admin
lists.php.net
>>
>>
attached mail follows:
Hello, I am trying to install Apache, Mysql and php3.0.12 on Apache Web server on Windows NT. They are running well when I run them individually. But when I connect mysql with php. it is giving me following error.
Fatal error: Call to unsupported or undefined function mysql_connect() in c:\program files\apache group\apache\htdocs\test.phtml on line 10
Please guide me. I have installed in following way.
We've installed php-3_0_14-win32.zip in folder c:\php3 We've installed apache_1_3_9_win32.exe in folder C:\Programme\Apache Group\Apache We've installed mysql in folder c:\mysql In c:\windows\php3.ini we took extension_dir = "c:\php3" and removed ';' before extension=php3_mysql.dll In C:\Programme\Apache Group\Apache\conf\httpd.conf we changed the values as followed: DirectoryIndex index.html index.php3 index.php ScriptAlias /cgi-bin/ "C:/Programme/Apache Group/Apache/cgi-bin/" ScriptAlias /php3/ "C:/php3/" AddType application/x-httpd-php3 .php AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3 .phtml Action application/x-httpd-php3 "/php3/php.exe" Restart Windows Then start 'StartApache' ("C:\Programme\Apache Group\Apache\Apache.exe" -d "C:\Programme\Apache Group\Apache" -s) Then start 'mysql' ( C:\mysql\bin\mysqld.exe )
Please help me. Thanx in advance.
Ravi
attached mail follows:
Hey people,
just a simple question. Say I have page, which has loads of news article links, and all of them lead to different pages. But the template is the same for each page, all i do is make copies of the template and have includes for the relevant text file.
Now, short of putting the articles (which i don't want to hold for mora than a month) into a database, is it possible is anyway that i link to only the one template page, but somehow tell that page which include file to use for that link ??
Any help would be GREATLY appreciated. Thanks !!
Sandeep
__________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
attached mail follows:
Yes, there's probabaly a lot of ways to do it, here's two.
Pass along an id of sorts to the page: index.php3?id=page1 Use this id to determine what page you want to include. You can do this in two ways, depending on how much control you want to have over things: -Just include the id.html file with include($id.".html"); This assumes that you only want to include html files
-Do a switch statement and depending on what id you get, you include the correct file: switch($id) { case "page1": include("page1.html"); break; case "submit" include("submit.php3"); break; default: include("start.html"); break; }
The pros of the former method is that you can add pages without having to mess with the switch statement. The pros of the latter method is that you can control what the user sees in a much stricter manner.
Hope this helps.
Best regards, Martin Edelius
Spirex Digital Design
--------------------------------
www: http://www.spirex.se
Mail: martin.edelius
spirex.se
Phone: +46-31-514651, 0708-113711
Fax: +46-31-514331
Aröds Industriväg 3c
S-422 43 Hisings Backa
--------------------------------
If I haven't got back to you or done what I'm supposed to, let me know again
as I have too much to do for my own good...
----- Original Message -----
From: "Sandeep Hundal" <sandeephundal
yahoo.com>
To: "PHP3" <php3
lists.php.net>
Sent: Saturday, February 12, 2000 4:34 PM
Subject: [PHP3] Is it possible to include different files depending on link
??
>
> Hey people,
>
> just a simple question. Say I have page, which
> has loads of news article links, and all of them
> lead to different pages. But the template is the
> same for each page, all i do is make copies of
> the template and have includes for the relevant
> text file.
>
> Now, short of putting the articles (which i don't
> want to hold for mora than a month) into a
> database, is it possible is anyway that i link to
> only the one template page, but somehow tell that
> page which include file to use for that link ??
>
> Any help would be GREATLY appreciated. Thanks !!
>
> Sandeep
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
I have a directory tree I want to turn php of in, but on in a subdirectory of it. I tried this in httpd.conf
<Directory "/home/delila"> php3_engine off </Directory>
<Directory "/home/delila/a/vhanssen"> php3_engine on </Directory>
The longer path should override the shorter and turn on the php engine in /home/delila/a/vhanssen, but that doesn't happen.
I use php 3.0.12 and Apache 1.3.9
Vegard
attached mail follows:
You need to upgrade to PHP 3.0.14 for this to work right. We had a bit of a logic problem in earlier version which caused this not to work.
On Sat, 12 Feb 2000, Vegard Hanssen wrote:
> I have a directory tree I want to turn php of in, but on in a subdirectory
> of it. I tried this in httpd.conf
>
> <Directory "/home/delila">
> php3_engine off
> </Directory>
>
> <Directory "/home/delila/a/vhanssen">
> php3_engine on
> </Directory>
>
> The longer path should override the shorter and turn on the php engine in
> /home/delila/a/vhanssen, but that doesn't happen.
>
> I use php 3.0.12 and Apache 1.3.9
>
> Vegard
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
You could build the Informix module as a shared library too (look in the dl/informix directory) and load it dynamically from php3.ini.
Or you could build modphp3 with Informix statically into Apache.
It is also possible that your only problem are the Informix shared libraries that are missing from ldconfig or the shared library path.
Danny
-------- Original Message ----- From: "Gabriele Bartolini" <g.bartol
comune.prato.it> Newsgroups: php3.general Sent: Friday, February 11, 2000 12:52 PM Subject: Re: [PHP3] undefined symbol: ifx_module_entry
> In 09.31 11/02/00 +0100, Stefano Brozzi ha scritto: > >Gabriele Bartolini wrote: > >> > >> Ciao my friends, > >> > >> This is my situation: on a RedHat Linux 6.1 with Informix Internet > >> Foundation 2000 and Apache 1.3.11, I am trying to load the PHP shared > >> module (libphp3.so) dynamically. > >> > >> I got no errors during the module making (configure, with > >> --with-informix=yes among many other options, + make) but, when trying to > >> load the module at Apache startup, the laungh aborts and httpd doesn't > start. > >> > > > >I guess you should use --with-informix=/<path to informix dir> > >well, you could even put your informix in the 'yes' path > > > > Manual says I can put --with-informix=yes if have set INFORMIXDIR properly. > I did so and configure works fine, as the make process. What doesn't work > is the LoadModule of the Apache 1.3.11 configuration directive. > > Please, any answers? > > -Gabriele > > > ------------------------------------------------- > > Gabriele Bartolini > Computer Programmer - supposed to be ;-) > U.O. Rete Civica - Comune di Prato > Prato - Italia - Europa > > e-mail: g.bartol
comune.prato.it > http://www.po-net.prato.it > http://www.comune.prato.it > > ------------------------------------------------- > Luna Rossa Prada Challenge - America One 5-4 ;-D > ------------------------------------------------- > ------------------------------------------------- > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-admin
lists.php.net >
attached mail follows:
Hi, I want to start a web site dedicated to PHP for Italian People. I know that this web site is not present in Italy. I need volunteers (??).. Any one? The site will be php.ziobudda.net with the possibility to have mysql/postgresql. Tnx in advance...
Micro$oft: Dove volevi andare ieri?.... ....prima che ti si impiantasse il PC!
-- Michel <ZioBudda> Morelli michelenter.it ICQ UIN: 58351764
Sito WWW http://www.ziobudda.net Italian Linux FAQ http://faq.ziobudda.net Forum su Linux http://phorum.ziobudda.net
attached mail follows:
How can I use SQL Server with PHP in a Linux Environment, HOw i install it. and How can I call, in PHP a Stored Procedure of SQLServer.
attached mail follows:
Dear all: I am a new user of PHP3, I am very interesting to the source code of http://www.php.net/support.php3 ,anyone who could let me know how to develop the "subscripe/unsubcribe mailing List"function on http://www.php.net/support.php3 ??
Thanks in advance! Best regards.
cowboy
tkmail.tknet.net
attached mail follows:
Sorry about this message, I do not want to spam the mailing list nor cause any troubles but I do not know where actually I could post this message but here it goes:
I started to setup a mysql server with apache and php3. But dues to time restrictions (have other work and no more time) I am not able to work on what I wanted to, even though I want this to be finished so I am looking for someone to either start from scratch or continue what I did to setup a database for me with simple but yet powerful web interface. Requirements are mysql, php3 and apache. Maybe in future I will move to oracle and something different but for now its just those 3. Ah, also its run on Solaris Intel box. So please let me know if you would be interesting in doing some job for me as a project and let me know how much you would like for doing that job.
Please respond to this message privately so I will not cause problems on the
mailing list because I love this mailing list and I learned so much from it
so I do not want to be kicked out of here. So please once again if you are
interesting in doing some job for me write me email to falco
perfekt.net and
I will respond to your email with all the details.
Thank you.
Chris W.
attached mail follows:
I have sucessfully created several sites now w/ PHP, an I have to say I'm pretty darn happy with it, however, I can't figure out a good way to do the following:
I want to be able to modify existing records, like the following site: http://mot.sourceforge.net/ (click on demonstration, modify)
I can get the form to come up w/ all the values for any given record, but how do I keep track of which ones have been changed etc? store and ID as a hidden variable name, and then just update the whole record? Is this how it's normally done?
so the form would have:
<input name="field1" value="foo">
so they change it to read "monkey" and then when the form is processed, I just update using all the values?
anyone know of a better way of doing this?
/me
----------------------------------------------------------------
Mike Erickson <merickson
fix.net> http://www.fix.net/~merickson/
"The world is my country and my religion is to do good."-T Paine
attached mail follows:
Hi,
Can anyone suggest a reason why the following might be returning false?
filemtime("schq.txt")
The file schq.txt definitely exists, and I can view the file in my browser without any problems. PHP just doesn't seem to want to give me the last modified date for it :-(
Cheers, Tim.
-- Tim Fountain (timtfountain.co.uk) http://www.tfountain.co.uk/
- Next message: php3-digest-help
lists.php.net: "php3 Digest 13 Feb 2000 06:00:01 -0000 Issue 1475"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 12 Feb 2000 06:00:01 -0000 Issue 1473"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]