RE: [PHP] PHP in HTML

2002-05-17 Thread Peter
I find it better than having every page go thru php not to mention quicker. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 3:52 PM To: Peter Cc: [EMAIL PROTECTED] Subject: RE: [PHP] PHP in HTML On Fri, 17 May 2002, Peter wrote: there are

[PHP] Can anyone help me with fopen ?

2002-05-17 Thread Roman Duriancik
I have some text file, in this text file i write some information. But my problem is : How write/append new information on beginning of document but old information will be there too. When I used fopen with option a or r+ and with command rewind new information rewrited old information. Thanks

[PHP] Multiple Upload using list

2002-05-17 Thread Triax
Hello, currently I want to implement a multiple upload using a listbox. I have 2 link which will dynamically add or remove a file to/from the list box, I'm writing it as a java script as below. - function addFile(){ var temp,

[PHP] Problem with sending information with quotes

2002-05-17 Thread Rosen
Hi, I have follow PHP file test.php: if ($action==) { echo FORM name=\pp\ action=\test.php\ method=\post\ ; echo TEXTAREA name=\text\ rows=\5\ cols=\50\ maxlength=\250\ style=\width:350px\/TEXTAREA; echo INPUT name=\send\ type=\submit\ style=\width:80px\ /INPUT; echo INPUT name=\action\

RE: [PHP] PHP in HTML

2002-05-17 Thread Miguel Cruz
Do you really find it noticeable quicker? Benchmarks I've seen (none of them that current) don't seem to support that. Depending on the software versions involved, it seems to be anywhere from much faster through PHP to a few % slower. Certainly no major penalty in any case. If there's interest

Re: [PHP] Problem with sending information with quotes

2002-05-17 Thread Miguel Cruz
On Fri, 17 May 2002, Rosen wrote: // if in the input form I enter something with quotes, i.e. TEST //here the value of $text is \TEST\ . The PHP send value to me with backslah. // //How can I get the real entered, i.e. TEST ? Where is the problem ?

RE: [PHP] PHP in HTML

2002-05-17 Thread Peter
true there's not that much difference .. though it would depend on the server's connection speed as well as the machines grunt as to how much of a difference there is. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 4:40 PM To: Peter Cc: [EMAIL

Re: [PHP] Re: [PHP-DEV] Console application with PHP

2002-05-17 Thread D Lau
Sorry, I forgot to say my requirement is to make this a browser only application. Would all these still works? Thanks Dominic - Original Message - From: Vail, Warren [EMAIL PROTECTED] To: 'Markus Fischer' [EMAIL PROTECTED]; DoL [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]

Re: [PHP] Multiple Upload using list

2002-05-17 Thread Jason Wong
On Friday 17 May 2002 14:30, Triax wrote: Hello, currently I want to implement a multiple upload using a listbox. I have 2 link which will dynamically add or remove a file to/from the list box, - Upon sbumitting, my php

Re: [PHP] Can anyone help me with fopen ?

2002-05-17 Thread Jason Wong
On Friday 17 May 2002 14:30, Roman Duriancik wrote: I have some text file, in this text file i write some information. But my problem is : How write/append new information on beginning of document but old information will be there too. When I used fopen with option a or r+ and with command

[PHP] DOMXML question

2002-05-17 Thread peter tatischev
What is the type of array returned by child_nodes()? I have an XML doc parsed into a DOM structure by $docnode = domxml_open_file(blah) then I get root by $root = $docnode-document_element(); then I get the first node $f_child = $root-first_child(); and then I want to get an array of all the

[PHP] Looking for web based email

2002-05-17 Thread Craig
I am in the process of developing a website with a webmail system similar in functions to hotmail Does anyone have any suggestions for where to start? thanks craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Looking for web based email

2002-05-17 Thread Mark Harwood
Take a look at some others... http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Web-based_E mail/ Craig [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am in the process of developing a website with a webmail system similar in functions to

RE: [PHP] Looking for web based email

2002-05-17 Thread Brian McGarvie
www.horde.org/imp/ -Original Message- From: Craig [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 9:46 AM To: [EMAIL PROTECTED] Subject: [PHP] Looking for web based email I am in the process of developing a website with a webmail system similar in functions to hotmail Does

[PHP] file error

2002-05-17 Thread Roman Duriancik
I have this code : $text = file(http://www.hokej.sk/spravy/?id=16159;); echo count($text); for ($i=0;$icount($text);$i++): echo $text[$i]; endfor; when in file commnad i insert page from local net or our web server this script run correctly but if i insert page from internet i have

[PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Henry Grech-Cini
Hi All, Is this possible? I really don't want to go back to perl5 to setup an autoresponder system! Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] some Javascript functions with PHP

2002-05-17 Thread savaidis
And what about resolution of the screen? How is possible to keep it in record too or to tailor the page? (get_browser() is not supported from my server, I'm waiting my sypport team answer about browscap.ini) Thanks Makis -Original Message- From: Kevin Stone [mailto:[EMAIL

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Jason Wong
On Friday 17 May 2002 18:11, Henry Grech-Cini wrote: Hi All, Is this possible? Yes, compile php as a stand-alone binary, see manual for details. I really don't want to go back to perl5 to setup an autoresponder system! -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Jon Haworth
Hi Henry, Is this possible? yup. Set your cron job up as lynx -dump http://www.myserver.com/myscript.php /dev/null (or pipe it to a logfile if you fancy) - obviously, you'll need lynx installed for this to work :-) Cheers Jon -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Gettext and PHP4.2.0?

2002-05-17 Thread Danny Shepherd
My guess is that it's something to do with the =shared. In your phpinfo() output, there should be a table about half way down which says GetText Support enabled When I compiled (bsd so it may be different for you) I used --with-gettext=/usr/local/ the gettext binary is in /usr/local/bin and

[PHP] Query/Error

2002-05-17 Thread Anthony Rodriguez
I've a php script that creates (inserts) a new record in a MySQL table. It executes, goes to the next page, but it doesn update the db The db name and table name are OK. I've printed the values passed to the script and it's OK too. What code can I add to the script to find out the error of

[PHP] Re: Using php as a scripting language within cron jobs?

2002-05-17 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi All, Is this possible? I really don't want to go back to perl5 to setup an autoresponder system! Henry Just compile php as an executable (without --with-apache or --with-apxs options) and use the #! syntax in the first line

[PHP] search engine indexing and redirects

2002-05-17 Thread Adrian Murphy
Hi all, firstly: i know nowt about search engines/crawlers spiders really. i'm giving users fake sub-domains i.e www.username.mysite.com gets redirected to www.mysite.com/users/sites/username via mod_rewrite/wildcard dns so i'm wondering if search engines will have any trouble indexing those

[PHP] Installing PHP with Apache and Sybase on Linux

2002-05-17 Thread Vivek Kumar Agrawal
Hi All, Can somebody tell me how to install PHP with Apache and Sybase on Suse linux. It would be great help for me. Regards, Vivek

[PHP] array question

2002-05-17 Thread Josh Edwards
I have an array which I use a loop to add numbers to different elements in the array. I can extract the highest no which in this case is 48. ie ([22 ] = 48 [23 ] = 2 [12 ] = 22 [14 ] = 5 ) Using this highest no (48 in this instance), how do I get the position or [element No] that matches the

Re: [PHP] Installing PHP with Apache and Sybase on Linux

2002-05-17 Thread Jason Wong
On Friday 17 May 2002 18:44, Vivek Kumar Agrawal wrote: Hi All, Can somebody tell me how to install PHP with Apache and Sybase on Suse linux. It would be great help for me. There is a list specifically for php installation issues. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Brian McGarvie
yip it's possible in exactly the same way as you would Perl, use: #/path/to/php /* php code */ eof and add it to cron as you would a perl script -Original Message- From: Henry Grech-Cini [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 11:12 AM To: [EMAIL PROTECTED] Subject:

Re: [PHP] Query/Error

2002-05-17 Thread Jason Wong
On Friday 17 May 2002 17:35, Anthony Rodriguez wrote: I've a php script that creates (inserts) a new record in a MySQL table. It executes, goes to the next page, but it doesn update the db The db name and table name are OK. I've printed the values passed to the script and it's OK too.

Re: [PHP] array question

2002-05-17 Thread Jason Wong
On Friday 17 May 2002 18:42, Josh Edwards wrote: I have an array which I use a loop to add numbers to different elements in the array. I can extract the highest no which in this case is 48. ie ([22 ] = 48 [23 ] = 2 [12 ] = 22 [14 ] = 5 ) Using this highest no (48 in this instance), how do I

Re: [PHP] Installing PHP with Apache and Sybase on Linux

2002-05-17 Thread Vivek Kumar Agrawal
Hi Jason, Thanx for your prompt response. Can you guide me how to install PHP with Apache and Sybase on Linux. Regards, Vivek - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 17, 2002 4:27 PM Subject: Re: [PHP] Installing PHP with Apache

[PHP] PHP,CyberCash,Verisign,PayFlow

2002-05-17 Thread r
Hi Guys, Special greetings to all of you who have helped me in the past. As some of you know i just bought a PHP book called Php Blackbook which i heard is really good. Anyway, In chapter 4 it talks about credit cardsand then CyberCash which is owned by verisign and payflow which too is

[PHP] Re: search engine indexing and redirects

2002-05-17 Thread Michael Virnstein
i would have thought that server-side redirects are no problem for crawlers. That's what i would have thought too. mod_rewrite is an alternativ for virtual domains. if you request www.mydomain.com it doesn't matter to the server if you have virtual domains or mod_rewrite. both got redirected to

[PHP] problem with strtolower()

2002-05-17 Thread David Orn Johannsson
I’m having a problem with StrToLower function in php I’m trying to convert characters like THORN; and acute letters from uppercase to lowercase, but it dosen’t work. this is what the manual says: “Note that 'alphabetic' is determined by the current locale. This means that in i.e. the default

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Michael Virnstein
Set your cron job up as lynx -dump http://www.myserver.com/myscript.php /dev/null (or pipe it to a logfile if you fancy) - obviously, you'll need lynx installed for this to work :-) but this is only needed only if you compile php into apache or am i wrong? if i have the cgi version

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Brian McGarvie
correct... -Original Message- From: Michael Virnstein [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 12:57 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Using php as a scripting language within cron jobs? Set your cron job up as lynx -dump http://www.myserver.com/myscript.php

[PHP] Executing PHP code throught a protected directory on IIS...

2002-05-17 Thread Brian McGarvie
I have restricted the IP Address etc through the directory security, if i goto: www.domain.com/thedir/ it does indeed give me the ip denied, howver if i goto a file within it if it's a basic html page it displayes it, similarly if it's a PHP script it also gets executed... (I know if I was using

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Jon Haworth
Hi Michael, Set your cron job up as lynx -dump http://www.myserver.com/myscript.php /dev/null (or pipe it to a logfile if you fancy) - obviously, you'll need lynx installed for this to work :-) but this is only needed only if you compile php into apache or am i wrong? if i have the

php-general Digest 17 May 2002 12:02:32 -0000 Issue 1350

2002-05-17 Thread php-general-digest-help
php-general Digest 17 May 2002 12:02:32 - Issue 1350 Topics (messages 97988 through 98049): Re: Can anyone help me save img from URL? 97988 by: Victor Polyushko Re: Done w/ PHP - VB or C# ? 97989 by: Miguel Cruz 97990 by: Victor Polyushko 97991 by: Peter

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Jay Blanchard
[snip] but this is only needed only if you compile php into apache or am i wrong? if i have the cgi version installed, i can call the php script directly from the shell. The only thing for me to do then, is to set #!/path.to/php in the first line of the script, right? [/snip] Can you have

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Robert Cummings
Jay Blanchard wrote: [snip] but this is only needed only if you compile php into apache or am i wrong? if i have the cgi version installed, i can call the php script directly from the shell. The only thing for me to do then, is to set #!/path.to/php in the first line of the script,

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Michael Virnstein
afaik yes. The module version should be called if apache has been requested with one of the reqistered php file types. the cgi version can be used as shell interpreter. the only thing that can smash th whole thing imo, is if you try to use the cgi version via web if you have php also installed as

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Michael Virnstein
the only thing that can smash th whole thing imo, is if you try to use the cgi version via web if you have php also installed as apache module. if anyone has infos here, it'll be really nice. Regards Michael Michael Virnstein [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Robert Cummings
Michael Virnstein wrote: afaik yes. The module version should be called if apache has been requested with one of the reqistered php file types. the cgi version can be used as shell interpreter. the only thing that can smash th whole thing imo, is if you try to use the cgi version via web

[PHP] Re: file error

2002-05-17 Thread Michael Virnstein
i do not know if file() can be used with files on remote servers. fopen() can, if this feature is enabled in php.ini. Regards Michael Roman Duriancik [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have this code : $text =

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Jay Blanchard
[snip] Works well, and if your using libraries of code, you can share between the web module and the cgi. his is what I do, and sometimes I run a daemon to update a cache, so that the web module never needs to hang the user while it retrieves data from a remote site. [/snip] Too cool, I will

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Dan Hardiker
[snip] but this is only needed only if you compile php into apache or am i wrong? if i have the cgi version installed, i can call the php script directly from the shell. The only thing for me to do then, is to set #!/path.to/php in the first line of the script, right? [/snip] Can

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Dan Hardiker
the only thing that can smash th whole thing imo, is if you try to use the cgi version via web if you have php also installed as apache module. but all of what i wrote is a guess, never tried by myself. You can do all of the following simultaniously without and clashes: * Use PHP as an

[PHP] Listing the contents of a directory in an array

2002-05-17 Thread webmaster
I am a newbie so be kindI have looked into the manual about directory functions etc.I want to return all the files from a directory into a array. Could some one give me a few pointers or something? I keep getting confused but I have used google and the manual. I canfind functions but I

[PHP] Re: file error

2002-05-17 Thread Michael Virnstein
That's what i found about file(): Tip: You can use a URL as filename with this function if the fopen wrappers have been enabled. See fopen() for more details. So check your php.ini settings. If you're hosted by a hosting company and they failed to enable the fopen wrappers, you can overwrite

[PHP] Variables in PHP: public vs. private

2002-05-17 Thread Christoph Starkmann
Hi there! I'm just starting to get in touch with oo programming in PHP. Now I've got a quite simple question, I guess... In an example in the PHP-help, I found a class definition with accessor functions like dummy-get_some_variable(); But AFAIK (and see ;)), variables in PHP in fact are

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Dan Hardiker
Set your cron job up as lynx -dump http://www.myserver.com/myscript.php /dev/null (or pipe it to a logfile if you fancy) - obviously, you'll need lynx installed for this to work :-) but this is only needed only if you compile php into apache or am i wrong? if i have the cgi version

[PHP] document root variable or function

2002-05-17 Thread webmaster
Is there a variable in PHP which will show the directory of the document root? I have done a few searches and before I go looking harder I thought I'd ask. My problem is that I am using both windows, IIS and linux, Apache. I tried a few things like $document_root which didn't seem to work

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread James E. Hicks III
#!/path.to/php -q I'd like to suggest the -q option for PHP shell scripts, which I rely on every day. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Listing the contents of a directory in an array

2002-05-17 Thread Lowell Allen
From: [EMAIL PROTECTED] I am a newbie so be kind I have looked into the manual about directory functions etc. I want to return all the files from a directory into a array. Could some one give me a few pointers or something? I keep getting confused but I have used google and the

Re: [PHP] document root variable or function

2002-05-17 Thread Jason Wong
On Friday 17 May 2002 20:56, [EMAIL PROTECTED] wrote: Is there a variable in PHP which will show the directory of the document root? I have done a few searches and before I go looking harder I thought I'd ask. My problem is that I am using both windows, IIS and linux, Apache. I tried a few

[PHP] Restricting image height and width in a message

2002-05-17 Thread Jeff Lewis
Currently, people can post links to images in an application I am using but they can post something outrageous like 1000X800 pixels and it messes thing up on the format. I was sent this as a solution but it really bogs down especially on images from certain servers. Is there a better way to do

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Michael Virnstein
-q? this is for disabling the html headers, right? James E. Hicks III [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... #!/path.to/php -q I'd like to suggest the -q option for PHP shell scripts, which I rely on every day. James -- PHP General

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Dan Hardiker
#!/path.to/php -q I'd like to suggest the -q option for PHP shell scripts, which I rely on every day. Sh!! We dont want to give away *everything* heh... bah ... well I might as well give you the rest of the info. [14:03:50][dhardiker@amnesiac]:~$ php -? Usage: php [-q] [-h] [-s

Re: [PHP] Variables in PHP: public vs. private

2002-05-17 Thread hassan
HI, as far as i know private vars should be available in the next release of the zend engine, thus, using get and set functions is a good practice to be sure that your apps will still function in future php releases. Regrads. ___ Hassan El

Re: [PHP] Variables in PHP: public vs. private

2002-05-17 Thread Dan Hardiker
But AFAIK (and see ;)), variables in PHP in fact are never private, but always public, at least within the current script. This is correct, all functions and variables inside a class are public. There are no protected nor private func's / var's. So what would be the sense in having this

[PHP] PHP PDF

2002-05-17 Thread DrouetL
Hi the ML I have the following question : I have constructed several pages with PHP which look likes some reports. (I attached one example to my mail) Now I need to convert this HTML page to PDF to send it by mail . Does any one has an idea ? Laurent Drouet (See attached file: samples.zip)

[PHP] Array problems again

2002-05-17 Thread Josh Edwards
Here's a sample of a weblog. I have a loop that extracts the request ie Get /A1.php How do I get the top ten requests and how many time these were requested after looping thru the whole file. Can you set up an array that is self populating if a string doesn't match an element in the array or is

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Jared Boelens
I personally have never come across the method that is involved in compiling PHP as a binary, but I have come up with a way to run PHP scripts from the Command Line and Cron without the binary. from the cron I would call this command... wget -q -T10 http:/www.mydomain.com/myScript.php -0

RE: [PHP] Looking for web based email

2002-05-17 Thread Jared Boelens
This is the one my company uses: http://nocc.sourceforge.net/ I found it very easy to modify, and it fully supports attachments as well as the related RFCs. -Jared -Original Message- From: Craig [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 4:46 AM To: [EMAIL PROTECTED]

[PHP] Security Alert! PHP CGI cannot be accessed directly. HELP!

2002-05-17 Thread Brett Jenkins
When using xitami with PHP I get the message: Security Alert! PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set. This variable is set, for example, by

RE: [PHP] Listing the contents of a directory in an array

2002-05-17 Thread Jared Boelens
I actaully had to do that yesterday, here is the code i used. $path = /foo/bar; $myArray = $array(); $dir = opendir($path); while($file = readdir($dir)) { // if(!ereg(^\., $file) { $myArray[count($myArray)] = $file; // } } closedir($dir); If you want to exclude the always present . and

[PHP] apache redirect and request

2002-05-17 Thread Adrian Murphy
Hi, my isp has set up an internal redirect that resolves www.mysite.biz to www.mysite.com how can i check if the request was for the .biz version. thx

RE: [PHP] apache redirect and request

2002-05-17 Thread Jared Boelens
getenv(HTTP_HOST); Then parse the data as you need to to get to the root of the domain. -Jared -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 9:20 AM To: [EMAIL PROTECTED] Subject: [PHP] apache redirect and request Hi, my isp has set up

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Dan Hardiker
from the cron I would call this command... wget -q -T10 http:/www.mydomain.com/myScript.php -0 /dev/null I have never had a problem with this method, although I am sure it has a higher overhead than compiling as a binary and directly calling php. This method (again) is insecure in the

Re: [PHP] PHP PDF

2002-05-17 Thread peter tatischev
Why not mail it as MIME?? if that's not the case, refer to http://www.php.net/manual/en/ref.pdf.php - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 17, 2002 5:17 PM Subject: [PHP] PHP PDF Hi the ML I have the following question : I have

RE: [PHP] Looking for web based email

2002-05-17 Thread Dan Hardiker
I use http://www.squirrelmail.org/ ... Im actually currently mailing you from it - I find it very easy, and extreemly configurable. Its open source and developing at a rate of knotts. Its very easy to install, although it does currently require cookies... but Im urging them to shy away from that

Re: [PHP] Looking for web based email

2002-05-17 Thread Martin Wickman
Jared Boelens wrote: This is the one my company uses: http://nocc.sourceforge.net/ I found it very easy to modify, and it fully supports attachments as well as the related RFCs. I had problem with it, since it required imap stuff and whatnot. Anyway, I ended up using squirrelmail and we

[PHP] PHP and MySQL

2002-05-17 Thread City Colleges of Chicago - Mannheim
I just wanted to thank everyone for helping me with the script for my school project. But, of course I must esp. thank JODY, (the man!!). Go ahead Jody, eat up the glory! :) Renee Here is part of the script in its final form if anyone is interested: ?track_vars? ?php $user = adminer; $pass =

Re: [PHP] upload but restrict

2002-05-17 Thread r
Hey, Sorry for the late reply, but i have a boss who wants everything done RIGHT NOW! Anyway, as an example think a person uploads a .php or .exe file, I just dont want it to run on my webserver how can i restrict him/her? Any ideas welcome -Ryan. - Original Message - From: Jason

[PHP] Re: problem with strtolower()

2002-05-17 Thread Martin Wickman
David Orn Johannsson wrote: I'm having a problem with StrToLower function in php I'm trying to convert characters like THORN; and acute letters from uppercase to lowercase, but it dosen't work. this is what the manual says: Note that 'alphabetic' is determined by the current locale.

[PHP] Comon guys, please help.

2002-05-17 Thread r
Hi Guys, Special greetings to all of you who have helped me in the past. As some of you know i just bought a PHP book called Php Blackbook which i heard is really good. Anyway, In chapter 4 it talks about credit cardsand then CyberCash which is owned by verisign and payflow which too

Re: [PHP] PHP and MySQL

2002-05-17 Thread Dan Hardiker
Hi, [..] $user = OMMITTED; $pass = OMMITTED; $db = Book Store1; $local = OMMITED; $link = mysql_connect( $local, $user, $pass ); [..] You do realise, you have just pasted your database connection details to the world?! I gonna have to write an article on how to communicate securely

RE: [PHP] some Javascript functions with PHP

2002-05-17 Thread Brinkman, Theodore
If you want to tailor the page to the screen size (generally a bad idea in the first place), you'd have to do that with client-side code. Otherwise, when the user resizes their window your 'tailored' content doesn't fit correctly anymore. Its generally a better idea to make sure your HTML looks

RE: [PHP] PHP and MySQL

2002-05-17 Thread Craig Vincent
You do realise, you have just pasted your database connection details to the world?! I gonna have to write an article on how to communicate securely over the internet. (not just with PHP, but with the data you communicate in the messages as well!!) Well not quite, she did post her username

RE: [PHP] PHP PDF

2002-05-17 Thread James E. Hicks III
I do a system(html2ps SOME.html SOME.pd); then I do a system(ps2pdf SOME.pd); which gives me SOME.pdf Which I then read into a variable with binary option, $fi=fopen(SOME.pdf,rb); $binfile = fread ($fi, filesize (SOME.pdf)); fclose($fi); then $encoded_attach =

Re: [PHP] apache redirect and request

2002-05-17 Thread Adrian Murphy
naw.i tried that and all i get is the .com all the time - Original Message - From: Jared Boelens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 17, 2002 2:34 PM Subject: RE: [PHP] apache redirect and request getenv(HTTP_HOST); Then parse the data as you need to to get

Re: [PHP] Array problems again

2002-05-17 Thread Jason Wong
On Friday 17 May 2002 21:20, Josh Edwards wrote: Here's a sample of a weblog. I have a loop that extracts the request ie Get /A1.php How do I get the top ten requests and how many time these were requested after looping thru the whole file. Can you set up an array that is self populating if

[PHP] Logging Errors to a File

2002-05-17 Thread Jonathan Rosenberg
I am using an Apache webserver w/ PHP provided by a hosting company I can't seem to get PHP errors logged to a file. From reading the docs, my understanding is that I need to set error_log to the name of a file set log_errors to on in the php.ini file (.htaccess, in my case). Is this correct?

Re: [PHP] PHP PDF

2002-05-17 Thread Chris Boget
I have the following question : I have constructed several pages with PHP which look likes some reports. (I attached one example to my mail) Now I need to convert this HTML page to PDF to send it by mail . Does any one has an idea ? Check out HTMLDoc. It works wonders for us. Chris --

Re: [PHP] Problem with sending information with quotes

2002-05-17 Thread Analysis Solutions
On Fri, May 17, 2002 at 09:40:36AM +0300, Rosen wrote: // if in the input form I enter something with quotes, i.e. TEST //here the value of $text is \TEST\ . The PHP send value to me with backslah. // //How can I get the real entered, i.e. TEST ? Where is the problem ?

Re: [PHP] Problem with sending information with quotes

2002-05-17 Thread Dan Hardiker
Turn magic_quotes off. Check the manual for full details. or use stripslashes() ... rtm ;) -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software Systems Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP,CyberCash,Verisign,PayFlow

2002-05-17 Thread Analysis Solutions
Hi Ryan: Does this mean that if i want to start accepting credit cards on my site i wont have to pay for a credit card merchant account? You betcha. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution

Re: [PHP] DOMXML question

2002-05-17 Thread Thalis A. Kalfigopoulos
On Fri, 17 May 2002, peter tatischev wrote: What is the type of array returned by child_nodes()? I have an XML doc parsed into a DOM structure by $docnode = domxml_open_file(blah) then I get root by $root = $docnode-document_element(); then I get the first node $f_child =

Re: [PHP] document root variable or function

2002-05-17 Thread Michael Virnstein
$_SERVER[DOCUMENT_ROOT] Jason Wong [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday 17 May 2002 20:56, [EMAIL PROTECTED] wrote: Is there a variable in PHP which will show the directory of the document root? I have done a few searches and before

Re: [PHP] PHP PDF

2002-05-17 Thread Thalis A. Kalfigopoulos
I'd suggest you go for FPDF, a free PHP class for generating PDF files fast easy. It's pretty good for simple stuff (i.e. 99% of my work at least) and has a fast learning curve. www.fpdf.org cheers, thalis On Fri, 17 May 2002 [EMAIL PROTECTED] wrote: Hi the ML I have the following

Re: [PHP] PHP,CyberCash,Verisign,PayFlow

2002-05-17 Thread Sqlcoders.com Programming Dept
- Original Message - From: Analysis Solutions [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: May 17 2002 07:27 AM Subject: Re: [PHP] PHP,CyberCash,Verisign,PayFlow Hi Ryan: Does this mean that if i want to start accepting credit cards on my site i wont have to pay for a

RE: [PHP] PHP,CyberCash,Verisign,PayFlow

2002-05-17 Thread Robert Covell
You have to have an account with either one. Payflow or CyberCash is just a card swiper on the Internet. An acquiring bank is still needed. Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.471.1095 Fax:

[PHP] Re: Restricting image height and width in a message

2002-05-17 Thread Hugh Bothwell
Jeff Lewis [EMAIL PROTECTED] wrote in message 004e01c1fda3$78a91cd0$76a1a8c0@LEWISJCIT">news:004e01c1fda3$78a91cd0$76a1a8c0@LEWISJCIT... Currently, people can post links to images in an application I am using but they can post something outrageous like 1000X800 pixels and it messes thing up

Re: [PHP] Looking for web based email

2002-05-17 Thread Craig
Thanks, I have a few to play with now Dan Hardiker [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I use http://www.squirrelmail.org/ ... Im actually currently mailing you from it - I find it very easy, and extreemly configurable. Its open source and

[PHP] Images with GD

2002-05-17 Thread Anzak Wolf
I'm working on getting some image creation scripts done and I have one requirement that I'm not sure how to handle. I have a base image that I can create with no problem. The problem comes in that I want to set some text in the exact center of the image. Is there some sort of formula I can

Re: [PHP] Images with GD

2002-05-17 Thread Rasmus Lerdorf
Use imagettfbbox(). This function calculates the bounding box given the font, size and actual text within which that text would fit. -Rasmus On Fri, 17 May 2002, Anzak Wolf wrote: I'm working on getting some image creation scripts done and I have one requirement that I'm not sure how to

Re: [PHP] PHP,CyberCash,Verisign,PayFlow

2002-05-17 Thread Analysis Solutions
On Fri, May 17, 2002 at 10:27:50AM -0400, Analysis Solutions wrote: Does this mean that if i want to start accepting credit cards on my site i wont have to pay for a credit card merchant account? You betcha. Oh, Dear! I didn't see the wont in there on the second line. I thought you

[PHP] Subscriber count from db

2002-05-17 Thread Randum Ian
Hi all, Ive been searching through the archives for this and I am still none the wiser! Ive done a count on my database and found out I have 1234567890 stored in a variable $count. How do I output 1,234,567,890 so that if I write I have 1,234,567,890 subscribers it looks better than I have

Re: [PHP] Subscriber count from db

2002-05-17 Thread Rasmus Lerdorf
See number_format() On Fri, 17 May 2002, Randum Ian wrote: Hi all, Ive been searching through the archives for this and I am still none the wiser! Ive done a count on my database and found out I have 1234567890 stored in a variable $count. How do I output 1,234,567,890 so that if I write

Re: [PHP] Subscriber count from db

2002-05-17 Thread Sqlcoders.com Programming Dept
I think http://www.php.net/manual/en/function.number-format.php might accomplish what you need. HTH, Dw - Original Message - From: Randum Ian [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: May 17 2002 08:44 AM Subject: [PHP] Subscriber count from db Hi all, Ive been searching

  1   2   3   >