[PHP] Reading mime attachments into a rdbms

2001-05-03 Thread Mattias Segerdahl
Good morning, I've been trying to find out how to use IMAP to read attachments from the MIME E-Mail and save them on the filesystem and later transfer them into a RDBMS, the problem I have at the moment is that I have no clue what so ever how to do this, I've tried using imap_headerinfo and other

[PHP] is this the correct way to use round function?

2001-05-03 Thread Jacky
Is this the correct way to use round function with 2 decimal? $x = round((44.057/2.545),2); cheers? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"

RE: [PHP] How to catch the output of http:// -> text file?

2001-05-03 Thread Kraa de Simon
Thanks, When I try: http://www.ansilion.com";)); echo $lines; ?> I get the following error: Warning: fi

RE: [PHP] How to catch the output of http:// -> text file?

2001-05-03 Thread Kraa de Simon
I'm on Windows 2000, Apache 1.3.12 / PHP 4.0.4pl1 and MySQL 3.23.32. > -Original Message- > From: Kraa de Simon [mailto:[EMAIL PROTECTED]] > Sent: donderdag 3 mei 2001 10:20 > To: 'elias'; [EMAIL PROTECTED] > Subject: RE: [PHP] How to catch the output of http:// -> text file? > > > Than

[PHP] Problem with Mcrypt + PHP 4.0.5

2001-05-03 Thread Stefan Scherf
Hi, does anybody encountered problems while calling Mcrypt-commands with PHP4.0.5 (LAMP)? With 4.0.4pl1 my scripts work fine, but after updating to 4.0.5 they stop without an error-message (php.ini: error_reporting = E_ALL) when I call for example mcrypt_ecb(). After downgrading to 4.0.4pl1 eve

RE: [PHP] How to catch the output of http:// -> text file?

2001-05-03 Thread Kraa de Simon
Could it have something to do with the fact that the webserver is behind a firewall/proxy or something? When I enter the http addres in the browser everything works fine... ??? Simon. > -Original Message- > From: Kraa de Simon [mailto:[EMAIL PROTECTED]] > Sent: donderdag 3 mei 2001 10:

[PHP] Goodbye!

2001-05-03 Thread Soeren Staun-Pedersen
Hi! I've been on this list and working with PHP(/fi) for years now, and I pretty much know the inns and outs of PHP and what to do and what not. Meanwhile, I've grown real tired of webtechnology, and wanna do some hardcore Java integration. Well, it was fun! Thanks to all the people who helped

[PHP] Help plz!

2001-05-03 Thread elias
Hello, It's a little off-topic, but this is driving me crazy! For some weird reason my IE5.5/View Source command is not working! not on any page! it's just not working! I click on it and nothing happens! Any suggestions? -elias -- PHP General Mailing List (http://www.php.net/) To unsubscri

SV: [PHP] Help plz!

2001-05-03 Thread Mattias Segerdahl
Wrong place to search for help with this kind of problem... 1) Reboot your computer 2) Call your tech support 3) Call Microsoft tech support 4) Reinstall the browser 5) Don't ever ask questions like these again // Mattias PS. Nothing personal DS. -Ursprungligt meddelande- Från: elias [

[PHP] RE: Sending information between pages???

2001-05-03 Thread Tim Ward
if you post or get the form $choice is there for php. this is how form submission works in php. try this: "); ?> aaa bbb ccc ddd wh Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-

Re: [PHP] Help plz!

2001-05-03 Thread elias
hmm take it easy! i ask whetever... and you reply if you can't and don't reply at all! PS. Nothing personal too! elias. ""Mattias Segerdahl"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Wrong place to search for help with this kind of problem... > > 1

Re: SV: [PHP] Help plz!

2001-05-03 Thread Tristan . Pretty
Whoa, take a deep breath and lets try again shall we. Elias, I have run into this prob before, but each time, it seemed to dissapear without reason. If you fancy joining a more.. liberal disscussion group, I recomend joining WDVL. It is a list for all things webby, and most computer related iss

[PHP] is there free php+mySql hosting?

2001-05-03 Thread Peter Stevens
Hi, Can anyone tell me if you can get free php+mysql hosting anywhere? Many thanks and regards, Peter Stevens Project Assistant DP - Berent APS Njalsgade 21G,5 2300 København S +45 32 64 12 00 - http://www.berent.dk http://www.berent.de -- PHP General

Re: [PHP] open foxpro database

2001-05-03 Thread Dezider Góra
Just my o.o2 cents... Isn't this table a members od database? When you use VFP 3.0 and up, VFP can change header of file to new format. So it's not compatible with old dbf file. I don't remember all operations that cause this "upgrade", but including into the database will certainly do that. To be

Re: [PHP] is there free php+mySql hosting?

2001-05-03 Thread elias
sure www.f2s.com -elias http://eassoft.cjb.net "Peter Stevens" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Can anyone tell me if you can get free php+mysql hosting anywhere? > > Many thanks and regards, > > Peter Stevens > Project Assistant DP > --

[PHP] PHP 4.0.5 and PDFLib

2001-05-03 Thread Jochen Kaechelin
Are there known probs with PDFLib 4.0 and PHP 4.0.5 on a WAMP-System! It doesn't work after installing PHP 4.0.5! -- phpArbeitsgruppe in Gruendung - Jochen Kaechelin Stuttgarter Str.3, D-73033 Goeppingen Tel. 07161-92 95 94, Fax 07161-92 95 98 http://www.php-arbeitsgruppe.de, mailto:[EMAIL PRO

[PHP] Maximum execution time of 30 seconds exceeded...

2001-05-03 Thread Kraa de Simon
Hi, Any ideas how to get by the following error? Fatal error: Maximum execution time of 30 seconds exceeded in c:\program files\nusphere\apache\htdocs\test.php on line 8 http://www.progress.com/services/support/cgi-bin/techweb-kbase.cgi/web kb.html?TAB=dsp&kbid=' . $i)); $fp =

RE: [PHP] Maximum execution time of 30 seconds exceeded...

2001-05-03 Thread Jon Haworth
Change the max_execution_time setting in your php.ini file. You can also do it on a per-script basis but I can't remember how OTOH - a search on the manual should find it though. HTH Jon -Original Message- From: Kraa de Simon [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 11:48 To: Php-G

Re: [PHP] Maximum execution time of 30 seconds exceeded...

2001-05-03 Thread elias
Never tried it though! But what if you try this: > http://www.progress.com/services/support/cgi-bin/techweb-kbase.cgi/web kb.html?TAB=dsp&kbid=' . $i)); $fp = fopen ($DOCUMENT_ROOT . "/" . $i . ".html", "w"); fwrite($fp, $lines, strlen($lines));

[PHP] textarea -- what happens to my new lines

2001-05-03 Thread Stampe, Lars
I am making a e-card page, and I am having a problem with with my message box which is a when I am previewing or saving/recalling the text all the newline characters are gone. Any good ideas! Thanks Lars Stampe

[PHP] Check if a variable has been posted-- HOW?

2001-05-03 Thread Martin Cabrera Diaubalick
Hi everyone I'm lookign through the manual but can'f find it right now. How do I check if a variable has been created through a posted form? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

RE: [PHP] Check if a variable has been posted-- HOW?

2001-05-03 Thread Nicolas Guilhot
you can try if (isset($HTTP_POST_VARS['posted_variable_name'])){ // do something } -Message d'origine- De : Martin Cabrera Diaubalick [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 3 mai 2001 13:10 À : [EMAIL PROTECTED] Objet : [PHP] Check if a variable has been posted-- HOW? Hi everyone

Re: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread heinisch
At 13:10 03.05.01 +0200, you wrote: > >I am making a e-card page, and I am having a problem with with my message >box which is a when I am previewing or saving/recalling the text >all the newline characters are gone. Any good ideas! > >Thanks >Lars Stampe Try this make "hard" LF´s Oliver --

[PHP] "maximum execution time exceeded" but !connection_timeout() ???

2001-05-03 Thread John Clements
Hi, (PHP 4.0.3pl1 on Apache/1.3.14) I hope somebody can help me. I'm at my wit's end with this one. I need to use a shutdown function that does something only if it was called due to a connection timeout. I register a shutdown fuction and provoke a timeout; the function is called. But it sees co

Re: [PHP] Working with numbers

2001-05-03 Thread Christian Reiniger
On Thursday 03 May 2001 08:53, Jennifer wrote: > I have a shopping cart that allows decimal points for quantities. > I like it like that, but would like to remove any trailing zeros > and if the quantity is not a fraction I would like to remove the > decimal point too. > > What would be the easie

[PHP] "maximum execution time exceeded" but !connection_timeout() ???

2001-05-03 Thread John Clements
Hi, (PHP 4.0.3pl1 on Apache/1.3.14) I hope somebody can help me. I'm at my wit's end with this one. I need to use a shutdown function that does something only if it was called due to a connection timeout. I register a shutdown fuction and provoke a timeout; the function is called. But it sees co

[PHP] odbc

2001-05-03 Thread claudia
Hi, hope it is the right newsgroup. I have a php application which uses odbc to connect to a informix database. (NT4, Apache 1.3.x, PHP4.x) Is it advisable to turn the odbc pooling on? What else should i take care off when working with PHP and ODBC? Thanks and Greetings Claudia -- PHP Genera

[PHP] Include and require

2001-05-03 Thread Ronald
Hi There, According to the docu u should not require() files or external code in loops or u must use curly Bracket when used in if conditions. But everythink works fine. I require() successfully in for loops, I can use it in if..elseif..else constucts without curly brackets. (only one line of ca

Re: [PHP] REG_BADPAT ERROR!

2001-05-03 Thread Gyozo Papp
what version of PHP are you running? It works for me on PHP 4.0.4pl1. (CGI) but, you may try: $pattern = quotemeta("&"); // see quotemeta in the manual ! ereg_replace($pattern, "&", $url); - Original Message - From: "Jason Murray" <[EMAIL PROTECTED]> To: "'Martin Bittner-Lamy'" <[EMAI

Re: [PHP] Template programming

2001-05-03 Thread Gyozo Papp
another template engines: http://phpclasses.upperdesign.com and browse for Templates! or: http://va.php.net/~andrei/tpl-engine.html http://www.phpinsider.com/php/code/Smarty/ Smarty - Original Message - From: "Henrik Hansen" <[EMAIL PROTECTED]> To: "Daniel Guerrier" <[EMAIL PROTECTE

Re: [PHP] Working with numbers

2001-05-03 Thread Gyozo Papp
what about function round() with precision argument ? check it: for ($i = 0; $i < 10; $i += 0.25) { echo round($i,2). ""; } - Original Message - From: "Jennifer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. május 3. 08:53 Subject: [PHP] Working with numbers > I have a s

RE: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread Stampe, Lars
Thanks for the idea, it didn't work, let me just explain a bit further! this is a simple version of the code input.htm:: show.php:: When I put in : 1 2 3 4 I get: 1 2 3 4 how do I fix this ( want it to appear like it was typed!)? Regards Lars Stampe -Original Mess

[PHP] log analysis scripts

2001-05-03 Thread Paul Newby
I'm looking for a full-featured PHP script for log file analysis. Can anyone recommend one? Thanks in advance, Paul N. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrat

Re: [PHP] how?

2001-05-03 Thread Jason Stechschulte
On Thu, May 03, 2001 at 10:12:55AM -0700, elias wrote: > hello. > i read from a text file a line like: "Key=$value" > so, i do like: > $lines = join('', file("myfile.txt")); > echo $lines; > // output= Key=$value > Now how can i replace the values in the $lines variables? > i want like: > $value =

Re: [PHP] how?

2001-05-03 Thread elias
No, ... Actually,... I want it so generic, like myfile.txt can have like: - Welcome $username Enjoy your staying at: $site_name Mail admin. at $admin_mail for any questions... - so bascially, i don't want to do str_replace or else i could have used the sprintf() and with '%s' instead of str_replac

Re: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread elias
okay,...now that you showed some code... basically, when you input via all new lines are in the string like \n so to display them correctly in show.php do like: basically, in HTML the '\n' doesn't show you a new line, or else you can replace all the '\n' with '' tag! -elias www.eassoft.cjb.ne

RE: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread Jon Haworth
Try this: For more info, have a look at http://www.php.net/nl2br. HTH Jon -Original Message- From: Stampe, Lars [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 13:35 To: [EMAIL PROTECTED] Subject: RE: [PHP] textarea -- what happens to my new lines Thanks for the idea, it didn't work,

[PHP] Returning Lowest Number Not In Array

2001-05-03 Thread Mike Potter
Hi all: I'm hoping someone can help me out with this array problem. I'm trying to find the lowest number which is not in the array. For example: Given this array :return this: (0, 0)1 (1,0)2 (1,2,0)3 (3,0)

RE: [PHP] Maximum execution time of 30 seconds exceeded...

2001-05-03 Thread Michael Geier
set_time_limit(n) where n is number of seconds (or 0 for no time limit) -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:53 AM To: 'Kraa de Simon'; Php-General (E-mail) Subject: RE: [PHP] Maximum execution time of 30 seconds exceeded... Chan

RE: [PHP] Returning Lowest Number Not In Array

2001-05-03 Thread Matthew Luchak
pseudo code: for($i=-1; $i < count($my_array); $i++) { if (!in_array($i,$my_array)){echo $i; exit;} } should do it. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Mike Potter [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] mailing list

2001-05-03 Thread Nikhil Goyal
nope, that's not it. sorry Nikhil ""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message 051c01c0d2e1$2f9bfb40$7a24fea9@oemcomputer">news:051c01c0d2e1$2f9bfb40$7a24fea9@oemcomputer... > > start sending email (this process would take many minutes). However before > > this script finished, another

Re: [PHP] Reading mime attachments into a rdbms

2001-05-03 Thread Larry Hotchkiss
I did a bit of research on the same subject a couple months back for an upcomming project. I still have not gotten to it so wont have to many specifics for you, but what I would recommend is NOT using php for this task. I would say your best bet, assuming a unix install, is to use procmail

RE: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread heinisch
At 14:34 03.05.01 +0200, you wrote: change wrap ! "physical means pyhsical" not HARD echo nl2br($textfield); //turns your nl´s in ´s That should work Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

[PHP] sessions and reg_globals=off

2001-05-03 Thread ahmad varoqua
Hello, I'm having a problem getting sessions to work with register_globals=off. The following 2 files work fine if reg_globals=on but not when off. When I look at the session file it reads like this: !varA|!varB| and not like it should: varA|s:4:"funk";varB|s:4:"that"; //---

RE: [PHP] Maximum execution time of 30 seconds exceeded...

2001-05-03 Thread heinisch
At 08:32 03.05.01 -0500, you wrote: >set_time_limit(n) where n is number of seconds (or 0 for no time limit) but DO NOT SET 0 on production-servers, your ISP will, after he killed the processes, kill you :-) >-Original Message- >From: Jon Haworth [mailto:[EMAIL PROTECTED]] >Sent: Thursda

[PHP] Problems with ifx

2001-05-03 Thread Oleg Stukalov
Hello I've got a problem using PHP under Win32 (PHP/4.0.4pl1). On my PC I use Informix-Cli 32 (for Informix Online Server 7.22C1) + Apache/1.3.12. When I want to load _php_ifx.dll_ library, it writes that it can't find such a module (but i've got php_ifx.dll) + it can not find _isqlt09a.dll_ ! I

[PHP] Homesite - Windows and CVS

2001-05-03 Thread Michael Stearne
We are working on a project that is hosted on Linux, but the development is being done on Windows using Homesite. I have looked around but haven't found any real solutions with an IDE that can work directly with a remote CVS project like MacOS's Project Builder can for example. Are there any

RE: [PHP] sessions and reg_globals=off

2001-05-03 Thread Nicolas Guilhot
When reg_globals is off, you can't access session vars just with $varA and $varB (thess variables are not set), you need to use $HTTP_SESSION_VARS['varA'] and $HTTP_SESSION_VARS['varB'] to access these variables !! -Message d'origine- De : ahmad varoqua [mailto:[EMAIL PROTECTED]] Envoyé :

[PHP] php/mySql SELECT where clause using dates.

2001-05-03 Thread Dan Eskildsen
***NEWBIE ALERT*** (I am only very new at this) PHP and MySQL OK - I have a table with data and one of the fields is a Date field. Now I would like to SELECT all records where the date is less that 45 days old. Eh, How do I do that? I have tried this: #Declaring variables $today=date("Y-m-d

Re: [PHP] Help plz!

2001-05-03 Thread Tristan . Pretty
Here you go mate... type in: view-source:http://www.anyurl.com and you'll see the source code. I did this in IE, but I presume it'll work in NN Good luck mate. Tris... === hmm take it easy! i ask whetever... and you reply if you can't and don't reply at all! PS. N

RE: [PHP] Homesite - Windows and CVS

2001-05-03 Thread Altunergil, Oktay
As far as I know there's no such application. We are using WinCVS for the same purpose. I would be interested if you come accross some application that would this though. oktay -Original Message- From: Michael Stearne [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:18 AM To: p

Re: [PHP] php/mySql SELECT where clause using dates.

2001-05-03 Thread Jon Rosenberg
Take out the order by clause or chaqnge it. You can't order by a column you aren't selecting. - Original Message - From: "Dan Eskildsen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 10:30 AM Subject: [PHP] php/mySql SELECT where clause using dates. > ***NEW

[PHP] feof with fsockopen don't work

2001-05-03 Thread Thomas Häger
Hi NG, my problem is following: I've write some code like this: $sFile = fsockopen($strHost,$intPort,$intErrNum,$strError,10); if (!empty($strError)) { echo ("Ein Fehler ist aufgetreten : $strError"); } else { $strCommand = trim($strCommand); $strAnswer = fgets($sFile,128); fputs(

Re: [PHP] php/mySql SELECT where clause using dates. ooops

2001-05-03 Thread Jon Rosenberg
i'm sorry, I looked at the wrong part. You need to use the PHP functions to convert your date to a timestamp, then subtract 30 days from it, then reconvert to a MySQL date format. Jon - Original Message - From: "Jon Rosenberg" <[EMAIL PROTECTED]> To: "Dan Eskildsen" <[EMAIL PROTECTED]>

Re: [PHP] php/mySql SELECT where clause using dates.

2001-05-03 Thread Pierre-Yves Lemaire
Hello, maybe this could help, WHERE TO_DAYS( NOW()) - TO_DAYS( your_date_field ) <= 45 py At 04:30 PM 5/3/01 +0200, you wrote: >***NEWBIE ALERT*** (I am only very new at this) > >PHP and MySQL > >OK - I have a table with data and one of the fields is a Date field. > >Now I would like to SELEC

Re: [PHP] is there free php+mySql hosting?

2001-05-03 Thread Rene Maldonado
Hi try www.f2s.com Peter Stevens wrote: > Hi, > > Can anyone tell me if you can get free php+mysql hosting anywhere? > > Many thanks and regards, > > Peter Stevens > Project Assistant DP > - > Berent APS > Njalsgade 21G,5 > 2300 København S > +45 32 64 12 00 >

RE: [PHP] is there free php+mySql hosting?

2001-05-03 Thread Greg Schnippel
>From the archives: "The number of free PHP web hosts is growing . More and more are offering MySQL options too! Each category below is in alphabetic order. > Some don't require banners : http://www.1st-home.net/ (requires affiliate signups) http://www.mycgiserver.com/ htt

RE: [PHP] session_register()

2001-05-03 Thread Johnson, Kirk
Jennifer, there are at least two of us totally confused. I did a copy and paste of your code and got the expected results: session id is afb1f9e27afc752f7d9e96e096ca2209 session_register worked. testing is a registered variable with the contents of /tmp/sess_afb1f9e27afc752f7d9e96e096ca2209 bein

Re: [PHP] how?

2001-05-03 Thread Jason Stechschulte
On Thu, May 03, 2001 at 03:56:55PM -0700, elias wrote: > No, ... > Actually,... > I want it so generic, > like myfile.txt can have like: > - > Welcome $username > Enjoy your staying at: $site_name > Mail admin. at $admin_mail for any questions... > - > so bascially, i don't want to do str_replace

Re: [PHP] Hosts.

2001-05-03 Thread Subodh Gupta
Check out www.spaceports.com. Subodh Gupta I have learned, Joy is not in things, it is in us. You will ultimately be known by what you give and not what you get. - Original Message - From: "David Bruce" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 7:

Re: [PHP] How to catch the output of http:// -> text file?

2001-05-03 Thread Wieger Uffink
Hi Simon, Try the following for reading the files, for(i=1;i<2000;i++) { $response=""; $request="kbid=$i"; //Header $header = "POST kb.html HTTP/1.0\r\n"; $header .= "Content-type: application/x-www-form-urlencoded\r\n"; $header .= "Content-l

[PHP] Make text a submit button?

2001-05-03 Thread Brandon Orther
Hello, I am currently using image buttons for my submit buttons on a project I am working on. What I would like to use is regular text like a hyperlink. Does anyone know of how I can use text as the submit button? Thanks for any help Brandon -- PHP General Mailing List (http://www.php.net/)

[PHP] need CORBA/satellite examples

2001-05-03 Thread Peter Dudley
I have been searching for some time now for examples of code that uses = satellite, but the best I can find is the README and the entries in the = PHP manual. Can anyone point me to code that uses satellite that I can = learn from (or if you have code you don't want to post, feel free to = send d

RE: [PHP] Make text a submit button?

2001-05-03 Thread Sander Pilon
bleh Or something very similar. See the form.submit() function in your favorite Javacsript manual. > -Original Message- > From: Brandon Orther [mailto:[EMAIL PROTECTED]] > Sent: 3 May 2001 18:09 > To: PHP User Group > Subject: [PHP] Make text a submit button? > > > Hello, > > I am

[PHP] very basic question, needs direction!

2001-05-03 Thread Web master
Hello, I am using PHP as my main language in my websites. I am planning to set up my own server to host all my domains. Is there a place, where I can see, how do I set up a server with PHP as the main language and what are the hardware/software requirements for this? All I need is just a url o

Re: [PHP] Strange behaviour of mktime() in objects

2001-05-03 Thread Gyozo Papp
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. május 2. 21:34 Subject: [PHP] Strange behaviour of mktime() in objects > Hi folks, > I have to make several conversions from / to timestamp (seconds in the > UNIX-Epoche) > here you see two snippets of

RE: [PHP] is there free php+mySql hosting?

2001-05-03 Thread Philip Olson
for "informational purposes", an updatable page that contains all the "free php web host" information presented below can be found here : http://www.faqts.com/knowledge-base/view.phtml/aid/4058/fid/27/ regards, philip On Thu, 3 May 2001, Greg Schnippel wrote: > >From the archives: > > "T

Re: [PHP] very basic question, needs direction!

2001-05-03 Thread Johannes Janson
Hi, have a look at this article: http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/ it describes the setup of Apache, PHP, SSL and MySQL. Johannes "Web master" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I am using PHP as my main

RE: [PHP] apache toolbox

2001-05-03 Thread Jerry Lake
Just out of curiosity, what problems did you have ? Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Chris Schneck [mailto:[EMAIL PROTECTED]] Se

Re: [PHP] is this the correct way to use round function?

2001-05-03 Thread Henrik Hansen
"Jacky" <[EMAIL PROTECTED]> wrote: > 1. (*) text/plain > > Is this the correct way to use round function with 2 decimal? > $x = round((44.057/2.545),2); yep -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP] very basic question, needs direction!

2001-05-03 Thread Henrik Hansen
Web master <[EMAIL PROTECTED]> wrote: > Hello, > > I am using PHP as my main language in my websites. I am planning to > set up my own server to host all my domains. Is there a place, where I > can see, how do I set up a server with PHP as the main language and > what are the hardware/soft

[PHP] OT-Please bare with me :)

2001-05-03 Thread Brandon Orther
Hello, I am making a suite of php tolls that I want to have all incorporated in one management website. What I would like to have is a drop down menu in a frame on the left. A great example of what I want is the left drop down menu on the new Cobalt XTR server admin section. If anyone has a Ja

Re: [PHP] OT-Please bare with me :)

2001-05-03 Thread KPortsmout
In a message dated 03/05/2001 18:07:18 GMT Daylight Time, [EMAIL PROTECTED] writes: << Hello, I am making a suite of php tolls that I want to have all incorporated in one management website. What I would like to have is a drop down menu in a frame on the left. A great example of what I wa

[PHP] Error logging in PHP-4pl1 and Apache 1.3.19 w/ output buffering

2001-05-03 Thread Simon Stewart
I've an installation of PHP4pl1 running under Apache 1.3.19. Without output buffering enabled, the error logging is fine (going to Apache's error_log as expected) The problem is that when I turn on output buffering (to enable me to send cookies when I feel like it ;) the error logging stops being

[PHP] help variables ..

2001-05-03 Thread exodus
ok here is the problem.. im trying to create a php script that parses some info throws it into a database.. simple enough. now the program im getting the info from stores stuff in a flat file like so $VictimNumber1 = "nickhere"; $VictimNamenickhere = 2; now what i want to do is to do something l

php-general Digest 3 May 2001 17:25:01 -0000 Issue 664

2001-05-03 Thread php-general-digest-help
php-general Digest 3 May 2001 17:25:01 - Issue 664 Topics (messages 51215 through 51301): Re: REG_BADPAT ERROR! 51215 by: Jason Murray 51255 by: Gyozo Papp Re: session_register() 51216 by: Jennifer 51220 by: Warren Vail 51222 by: Jennifer 512

Re: [PHP] REG_BADPAT ERROR!

2001-05-03 Thread CC Zona
In article <007001c0d38f$c50929b0$a0a6ca18@renttib>, [EMAIL PROTECTED] ("Martin Bittner-Lamy") wrote: > Warning: REG BADPAT in /usr/home/64.157.1.190/public html/test/segrabs.php on > line 236 > > and the line 236 is: $url=ereg replace("&","&",$url); Why are bother to use a regex function fo

RE: [PHP] Include and require

2001-05-03 Thread Johnson, Kirk
> According to the docu u should not require() files or > external code in loops > or u must use curly Bracket when used in if conditions. > > But everythink works fine. I require() successfully in for > loops, I can use > it in if..elseif..else constucts without curly brackets. > (only one li

[PHP] File Uploads and Get Method

2001-05-03 Thread Omar Elkassir
when i upload a file, the form method must be POST because when GET is used, it adds backslashes to the windows path name that already has backslashes, and this causes an error. for instance, the following snippet of code -- if ($add){ $newimage = "whatever.gif"; copy($image, $directory.

RE: [PHP] Include and require

2001-05-03 Thread Philip Olson
for a lengthy post on the subject that clearly explains the differences/similarities/history between require and include, see this post by Zeev : RE: [PHP] Require() vs Include() http://marc.theaimsgroup.com/?l=php-general&m=9741

[PHP] PHP 4.0.5 & Apache 2.0

2001-05-03 Thread Devin Atencio
I was wondering if anyone has gotten Apache 2.0 Beta to install with DSO Support and got PHP 4.0.5 to compile as a DSO using Apache 2.0? I am using FreeBSD 4.3 and can't seem to get it to work for the life of me. /'^'\

RE: [PHP] File Uploads and Get Method

2001-05-03 Thread Johnson, Kirk
> -Original Message- > now, on the same form, i have a multiple select box, where > you can select > multiple values from one select box. the code is as follows -- > > [ snip ] > > > if the user selects more than one country, then if you echo > $country, it > will show you only the

[PHP] BET News

2001-05-03 Thread MTV Jams
http://www.mp3.com/mcpedro from [EMAIL PROTECTED] The question is this, If you placed a Jamaican born MC on a Hip Hop/Trance/Techno track and told him to flow without losing his yard essence (Jamaican Vibes), what would you get? Most likely confusion of course, unless the MC was Pedro! Pe

[PHP] MySQL select rand() with weighting?

2001-05-03 Thread James, Yz
Hi Guys, Does anyone know how to select one field randomnly from a MySQL table against a weighting column in the same row the field is selected from? For example, "SELECT id, url, image FROM table ORDER BY rand() LIMIT 1". And have a column like "weighting" where values between 1 and 100 ar

[PHP] Shorten String or encode/decode a string

2001-05-03 Thread Jared Howard
I want to shorten a string that I'll be throwing through the url. It's not so much that it's too long, but it's ugly. What it is, is my query string that I need to pass through to different pages, i.e. viewing multiple pages. Anyway, I was looking at encode and decode features but not really s

Re: [PHP] MySQL select rand() with weighting?

2001-05-03 Thread Mark Maggelet
On Thu, 3 May 2001 20:15:26 +0100, James, Yz ([EMAIL PROTECTED]) wrote: >Hi Guys, > >Does anyone know how to select one field randomnly from a MySQL table >against a weighting column in the same row the field is selected >from? > >For example, "SELECT id, url, image FROM table ORDER BY rand() LIMI

Re: [PHP] Starting PHP script with crontab

2001-05-03 Thread Noah Spitzer-Williams
is there a service on the web that can do this for you? i once found a site that would accept a url and an interval and would retrieve that url (therefore running any code you had in there) on your interval - Noah "Anuradha Ratnaweera" <[EMAIL PROTECTED]> wrote in message Pine.LNX.4.21.010502111

Re: [PHP] Starting PHP script with crontab

2001-05-03 Thread MaD dUCK
also sprach Noah Spitzer-Williams (on Thu, 03 May 2001 03:34:02PM -0400): > > > with lynx (lynx http://www.domain.nl/test.php) as a commandline within did you use 'lynx -dump '??? martin; (greetings from the heart of the sun.) \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@mad

[PHP] Redirect With Authentication Question

2001-05-03 Thread stan
Authentication Question... My company subscribes to several pay-to-view e-commerce sites that require htaccess-type authentication. To keep things simple for our users and to ensure that our users don't use these accounts w/out our permission, we would like to keep the account IDs and passwords

Re: [PHP] Starting PHP script with crontab

2001-05-03 Thread Michael Kimsal
Noah Spitzer-Williams wrote: > is there a service on the web that can do this for you? i once found a site > that would accept a url and an interval and would retrieve that url > (therefore running any code you had in there) on your interval > > - Noah cronservice.com is one. -- PHP Genera

[PHP] question about broadcast application

2001-05-03 Thread Michael Geier
My bosses came to me and asked me to spec out a broadcast mailer (spam box) that clients could: - log into - choose a pre-approved list (clients could have multiple lists) - choose a stored email - send sample - send broadcast I know that Qmail and EzMLM a

[PHP] Need a partner for PHP dev.

2001-05-03 Thread cedric
Hi, I know this isn't the best place to post this, but I tried a lot of other places without much success. I am developing a very flexible shopping cart system, as I have clients who needs one and I think that the available software is either overpriced or lacks features / flexibility. I

[PHP] changing a file on the server using a web form

2001-05-03 Thread Sherman
Hi, I have installed mod_php on my Apache web server and there is something I was curious about. I would like there to be a web page with a form that a user can enter some info into.. and it change a file in say /etc/file.txt when they submit the form .. any tips or advice on how I would g

[PHP] using an array with form list values

2001-05-03 Thread Claudia
I need to check that a form entry defined as an array contains a value before initiating the foreach code in my script. I have my form field defined in my form as: Bermuda California Caribbean Caroli

[PHP] problem search in array

2001-05-03 Thread Jan Grafström
Hi! This file will not work for me. I have tried in several ways and I want it to print "Got word" if it find $word. $filename = "test.xml"; $fp = fopen($filename, "r"); $string = fread($fp, filesize($filename)); $string = strip_tags($string); $refined_string = explode(" ", $string); if (in_a

RE: [PHP] using an array with form list values

2001-05-03 Thread Johnson, Kirk
Try enclosing the foreach inside an: - if block which checks that count($preferred_location) > 0; or, - if block which checks if it is defined, if($preferred_location). Hopefully, one of these should work :) Kirk > -Original Message- > From: Claudia [mailto:[EMAIL PROTECTED]] > Sent: T

Re: [PHP] Need a partner for PHP dev.

2001-05-03 Thread Michael Kimsal
Perhaps you could post this project on sourceforge - you might be able to attract some developers that way. [EMAIL PROTECTED] wrote: > Hi, > >I know this isn't the best place to post this, but I tried a lot of > other places without much success. > >I am developing a very flexible shoppi

Re: [PHP] Redirect With Authentication Question

2001-05-03 Thread Philip Hallstrom
Take a look at: ftp://ftp.isi.edu/in-notes/rfc2617.txt To receive authorization, the client sends the userid and password, separated by a single colon (":") character, within a base64 [7] encoded string in the credentials. basic-credentials = base64-user-pass base64-user-pass

Re: [PHP] using an array with form list values

2001-05-03 Thread Philip Hallstrom
Something like this should help: if( is_array($preferred_location) ) { #your code goes here. } In article <9csden$8qu$[EMAIL PROTECTED]> you write: >I need to check that a form entry defined as an array contains a value >before initiating the foreach code in my script. > >I have my form

[PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
When does a session variable become available? Immediately after the session_register command or after the script ends? And if the commands are as follows: session_start(); session_register("hello"); $hello=3; will the session variable $hello be set to 3 or do I have to add another session_regi

  1   2   >