Re: [PHP] PHP and mySQL...

2002-04-04 Thread Miguel Cruz
On Thu, 4 Apr 2002, Anthony Ritter wrote: > Sorry if my original question was confusing. > > This is what I would like to accomplish: > > I am currently developing a database on my website using mysql which is on > my harddrive. > I have installed Apache as well and I am using PHP. > > My datab

Re: [PHP] Read and Escape file

2002-04-04 Thread Miguel Cruz
On Thu, 4 Apr 2002, Weston Houghton wrote: > I'm thinking then of reading these text files into php through filesystem > functions, turning the template into a string assigned to a php variable. Is > there anyway I can do this and escape any elements in the file that might > terminate the string?

[PHP] Read and Escape file

2002-04-04 Thread Weston Houghton
Hey all, I am looking to build a bit of a weird templating system for a project I am working on. Currently, I am looking at building these templates in separate text files, and allowing certain elements to be replaced within those files. I'm thinking then of reading these text files into php th

[PHP] Session Authentication error

2002-04-04 Thread Patrick Hartnett
After logging in, i end up in a continual loop between index.php and checklogin.php. Can someone give me a clue as to what is up and how to fix it? If i set the checklogin to go to a page that does not check authentication if the user/pass combo passed, it works fine, but whe i send it to a

RE: [PHP] Returned e-mail (PHP mail function)

2002-04-04 Thread Jason Murray
Actually, having just checked through a message from Yahoo Groups' list server, I think you'll find it's "Return-Path". -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" > -Original Message- > From: Jason Murray [mailto:[EMAIL PROTECTED]] > Sent: Fr

RE: [PHP] Returned e-mail (PHP mail function)

2002-04-04 Thread Jason Murray
You can specify a From: field in the extra headers area of the mail() function. Additionally, you can specify the address you want bounces sent to by the same method (I think it's "bounces-to" or something like that). J -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now,

RE: [PHP] Returned e-mail (PHP mail function)

2002-04-04 Thread Martin Towell
I believe the default from address is the user of the process that sends the email, in this case, the web server. (your isp's sys admins are going to be "happy" with you if you have too many bounced emails.) -Original Message- From: Anthony Rodriguez [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Returned e-mail (PHP mail function)

2002-04-04 Thread Anthony Rodriguez
I just send my ISP the following question: One of my PHP scripts automatically sends a "Thank You" e-mail to users who just registered. I use PHP's mail function. If, during registration, the user enters the wrong e-mail address the e-mail would, of course, be returned. Who is the e-mail retu

Re: [PHP] Warning: Undefined variable

2002-04-04 Thread Erik Price
Good to hear from you again David, On Wednesday, April 3, 2002, at 06:28 AM, DL Neil wrote: > If they are one and the same machine/server, then use 'debug' code to > reset options at the beginning of dev code (and remove it when the > routine is 'promoted' to prod). Excellent idea. E_ALL for

Re: [PHP] Re: PHP 4.1.2 - does not work. !

2002-04-04 Thread Jason Sheets
Works fine for me, I run PHP 4.1.2 on FreeBSD 4.5 RELEASE and STABLE and Windows 2K and XP all with apache 1.3.x $_SESSION doesn't work on windows but thats already known about. Jason - Original Message - From: "R'twick Niceorgaw" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursd

Re: [PHP] PHP and mySQL...

2002-04-04 Thread Justin French
check out phpMyAdmin, as per my last post on the issue to you. Justin French on 05/04/02 1:25 PM, Anthony Ritter ([EMAIL PROTECTED]) wrote: > Sorry if my original question was confusing. > > This is what I would like to accomplish: > > I am currently developing a database on my website using

Re: [PHP] PHP and mySQL...

2002-04-04 Thread Anthony Ritter
Sorry if my original question was confusing. This is what I would like to accomplish: I am currently developing a database on my website using mysql which is on my harddrive. I have installed Apache as well and I am using PHP. My database is functioning fine on localhost. I would like to find

[PHP] Re: [PHP-DB] Forms and mysql

2002-04-04 Thread Bob
I don't understand what the curly brackets are for in this query.. I don't ever use them and it seems to work fine without them over here.. But I don't know if that's where you are having.the trouble.. "]=("UPDATE {$config["prefix"]}_items set quantity =quantity - 1 WHERE id = '$ItemID'"); I don

RE: [PHP] Help with " Function " parameter

2002-04-04 Thread Maxim Maletsky
Turn error_reporting to: error_reporting (E_ERROR | E_WARNING | E_PARSE); // that is the function to mess in the code, you can also set it within php.ini then fix your function: It cannot have more then one return (sure it can, but will break the execution on the first-come basis). If you n

[PHP] Dynamic Binding for PHP?

2002-04-04 Thread Chris
Is there a way to implement Dynamic Binding using PHP? Chris Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Incrementing number by .1 or substracting .1

2002-04-04 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Devin Atencio) wrote: > I am trying to figure out how to write a script to increase > a number by .1 or decrease a number by .1 but the number needs > to be in the syntax of x.x. $start=1; $up=$start+ 0.1; $down=$start-0.1;

RE: [PHP] Incrementing number by .1 or substracting .1

2002-04-04 Thread Martin Towell
so try something like this for ($i = 5; $i < 6; $i += .1) { echo number_format($i, 1) . ", "; } -Original Message- From: Devin Atencio [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:37 AM To: [EMAIL PROTECTED] Subject: [PHP] Incrementing number by .1 or substracting .1 D

[PHP] Help with " Function " parameter

2002-04-04 Thread Simonk
I have programed a function for counting Date: function Datereturn() { $monthorder = Array ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); $day = Date("j"); $monthday = Date("t"); $month = Date("n"); $year = Date("Y"); $current = 42 - ($monthday - $day); if ($current > $mo

RE: [PHP] Help with " Function " parameter

2002-04-04 Thread Martin Towell
Your problem lies in these lines Return $realday; Return $month; Return $year; and Datereturn(); A function can only return one "value" - that value can be an array (see later) To use the returned value, you need to assign it to something (or use it directly) So, change your return to t

[PHP] Re: Help with " Function " parameter

2002-04-04 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Simonk) wrote: > I have programed a function for counting Date: > > function Datereturn() > { > Return $realday; > Return $month; > Return $year; >} > > But when I want to echo out the result, I have typed: > > Datereturn

[PHP] Incrementing number by .1 or substracting .1

2002-04-04 Thread Devin Atencio
Dear PHP Users, I am trying to figure out how to write a script to increase a number by .1 or decrease a number by .1 but the number needs to be in the syntax of x.x. For instance the counting of 5.0 to 6.0 would go: 5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9,6.0 or vise versa for subtract. How could

[PHP] Help with " Function " parameter

2002-04-04 Thread Simonk
I have programed a function for counting Date: function Datereturn() { $monthorder = Array ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); $day = Date("j"); $monthday = Date("t"); $month = Date("n"); $year = Date("Y"); $current = 42 - ($monthday - $day); if ($current > $mo

[PHP] Login only to get stuck in infinite loop...what's missing?

2002-04-04 Thread Patrick Hartnett
After logging in successfully, i start an infinite loop between index.php and login.php, what's up? Please help. http://dev.e-dbapps.com/customscripts/checklogin.php";); exit; } ?> e-DBapps.com: Home **stuff** CHECKLOGIN.php http://dev.e-dbapps.c

RE: [PHP] Re: PHP 4.1.2 - does not work. !

2002-04-04 Thread R'twick Niceorgaw
Its working fine for me ... Redhat Linux 7.2 Apache 1.3.24 PHP 4.1.2 Upgraded just this morning -Original Message- From: vins [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 7:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP 4.1.2 - does not work. ! I've had the same proble

Re: [PHP] PHP and mySQL...

2002-04-04 Thread Justin French
You should install something like phpMyAdmin, which is a web based admin tool for MySQL... among it's MANY awesome features (create & modify tables and databases, perform queries, all in a GUI way), it has the ability to save dumps of the database or table structure, and/or the database/table data

[PHP] PHP/SQL programmer position open Portland OR/Vancouver WA area.

2002-04-04 Thread Eric JT Harlow
Group, My consulting company has a fulltime open position located in Vancouver WA. We are a fast-moving/flexible/customer driven company looking for the same in our new PHP/SQL programmer. If interested please send your resume and salary history to: [EMAIL PROTECTED] Thank you for your time,

[PHP] Re: PHP 4.1.2 - does not work. !

2002-04-04 Thread vins
I've had the same problem Apache no work ! IIS5 No work ! "Septic Flesh" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Anyone manage to recompile php4.1.2 and use successfully ? > I use slack8, apache 1.3.24. > When I install php 4.1.1 it works fine. >

Re: [PHP] PHP and mySQL...

2002-04-04 Thread heinisch
At 04.04.2002 18:39, you wrote: >Using MS Windows 98, Apache, PHP and mySQL. > >I've installed Apache on my hard drive to test a database driven website >using PHP and mySQL. > >Could somebody lead me through the steps if I want to continue using the >mySQL database and PHP when the site goes liv

RE: [PHP] eregi_replace

2002-04-04 Thread Maxim Maletsky
> > $qq = "V:\\memo\\F0001\\abcdef.com"; > print "$qq\n"; > $qx = ereg_replace("V:\\",'',$qq); > print $qx; > > out: > > V:\memo\F0001\abcdef.com > Warning: Trailing backslash in /home/rodolfo/public_html/test.php on line > 5 I think it should be: $qx = ereg_replace("V:",'',$qq); Sinc

RE: [PHP] Explode and Trim

2002-04-04 Thread Maxim Maletsky
I think what yo wrote should be working fine for you. My way of your code: foreach(file($storelist) as $line_num=>$line_data) { foreach(explode(':', $line) as $key=>$val) { $val = trim($val); // remove whitespaces around // now you are inside eac

Re: [PHP] Removing Properties from Word DOC

2002-04-04 Thread heinisch
At 04.04.2002 13:34, you wrote: > >I need to alter the document properties of Word DOCS that our users >upload via php. Does anyone know how to do this? (I am running PHP on >a Linux box). > >David There“s a program out in the internet, which converts .doc to txt, also .xls to txt you can downl

RE: [PHP] Sockets with windows / win32 - 'call to undefined function: ...'

2002-04-04 Thread Maxim Maletsky
Socket() function does not exist in PHP at all. Use fsockopen() instead. http://www.php.net/fsockopen Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com > -Original Message- > From: Odd Arne Beck [mailto:[E

[PHP] PHP and mySQL...

2002-04-04 Thread Anthony Ritter
Using MS Windows 98, Apache, PHP and mySQL. I've installed Apache on my hard drive to test a database driven website using PHP and mySQL. Could somebody lead me through the steps if I want to continue using the mySQL database and PHP when the site goes live and the files are uploaded and publish

Re: [PHP] objects handling objects

2002-04-04 Thread Steve Cayford
Doh, typo: // this next line would generate a parse error // print("c:a1: " . $c->echo($a)->method1() . "\n"); should read // this next line would generate a parse error // print("c:a1: " . $c->echoMethod($a)->method1() . "\n"); On Thursday, April 4, 2002, at 05:25 PM, Steve Cayford wrote:

Re: [PHP] objects handling objects

2002-04-04 Thread Steve Cayford
On Thursday, April 4, 2002, at 04:21 PM, Erik Price wrote: > I looked in the manual, but didn't see anything about this. I've read > that PHP isn't a true object-oriented language, but rather simulates > elements of object-oriented programming. Can I write a class that > performs operation

[PHP] Sockets with windows / win32 - 'call to undefined function: ...'

2002-04-04 Thread Odd Arne Beck
Hi.. The error I get is this one: "Fatal error: Call to undefined function: socket() " i'm 100% positive that all my code is correct.. anyone else have this problem, or anyone else NOT having this problem? I have a win2000 with iis 5.0 and it's latest updates. the latest version of php to

[PHP] Explode and Trim

2002-04-04 Thread Joshua E Minnie
I am parsing through a text file and using explode to convert the string to an array. The problem seems to be at the end of the string, when I check to see if the last element in the array is empty it tells me that it is not. The problem comes because the last element should be empty because all

RE: [PHP] Cannot upload JPEG only

2002-04-04 Thread Carl Schmidt
I think i've solved the madness. In the php docs, it states: Send this file: With the MAX_FILE_SIZE _before_ the filename to upload. Maybe I've missed a post somwhere that already suggested this, but i tried rearranging the tag order, assuming that since this is just a suggestion to the br

Re: [PHP] Removing Properties from Word DOC

2002-04-04 Thread Dennis Moore
I think you are SOL... You may be able to kloodge something but mucking around with a word doc without having MS Word or its ActiveX/DOM components is not recommended. /dkm - Original Message - From: "David McInnis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 04,

Re: [PHP] Reliability of sessions

2002-04-04 Thread Thomas Deliduka
I use them because 'sid' isn't always populated and, who knows, some browser may not handle cookies right and then lose a session. I do it to make sure, to be absolutely sure that it will work. On 4/4/02 5:19 PM this was written: > If you made your link like this: it tacks > on the name plus t

Re: [PHP] Apache Default File Include

2002-04-04 Thread Dan Tappin
Thanks... That is exactly what I was looking for. Dan > > go to the PHP online documentation and look in the configuration section. > > auto_append_file string > Specifies the name of a file that is automatically parsed after the main > file. The file is included as if it was called with the in

[PHP] objects handling objects

2002-04-04 Thread Erik Price
I looked in the manual, but didn't see anything about this. I've read that PHP isn't a true object-oriented language, but rather simulates elements of object-oriented programming. Can I write a class that performs operations and manipulates objects? Can objects be placed into arrays etc? E

Re: [PHP] Reliability of sessions

2002-04-04 Thread Richard Baskett
Whenever you start a function using session_name('name') and then session_start() the sessions name will automatically be the session name. There is no need for those functions. If you made your link like this: it tacks on the name plus the session id. If cookies are enabled you will only see

Re: [PHP] Reliability of sessions

2002-04-04 Thread Erik Price
On Thursday, April 4, 2002, at 04:40 PM, Thomas Deliduka wrote: > I have a quick question for a veteren of sessions out there. I'd trust sessions with my life. Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] configuration problem?

2002-04-04 Thread Boris Wong
sorry for the confusing response and yes, the cgi script is written in perl, and i'm still looking for ways to execute this script from php. everything works okay until the cgi script uses a package. hope this helps making my question clearer. /bw -Original Message- From: Kevin Stone [

RE: [PHP] eregi_replace

2002-04-04 Thread Rodolfo Gonzalez
On Thu, 4 Apr 2002, Rick Emery wrote: > it should print: > V:\memo\F0001\abcdef.com > \F0001\abcdef.com Indeed, sorry for the lapsus. In fact, look at this: in: $qq = "V:\\memo\\F0001\\abcdef.com"; print "$qq\n"; $qx = ereg_replace('V:\\','',$qq); print $qx; out: Parse error: parse error in

RE: [PHP] configuration problem?

2002-04-04 Thread Boris Wong
thanks. yes, i've tried using virtual but it gives me: Warning: Unable to include 'items_for_users.cgi' - request execution failed but the cgi and php are in the same directory. /bw -Original Message- From: SHEETS,JASON (Non-HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, Apri

Re: [PHP] Reliability of sessions

2002-04-04 Thread Thomas Deliduka
On 4/4/02 4:56 PM this was written: > How do you pass session IDs via strings? Can you describe in few words > please? Well, I know that SID is a defined constant (see session functions in the online PHP manual) but just to be sure, I created my own functions: function sessinfo() { return s

RE: [PHP] configuration problem?

2002-04-04 Thread Kevin Stone
I'm more confused now than ever. Originally you wanted to execute a .CGI script (presumably a PERL script) from inside a PHP script. Now it looks like you want to do just the opposite. If that's the case then you would be better served by posting your question in a PERL email list. -Kevin

Re: [PHP] Reliability of sessions

2002-04-04 Thread Richard Baskett
I use sessions every day and they are extremely reliable. I have no problems with them. And they would easily do what you want. Now getting to that stage took a lot of blood and sweat, but I would say it's definitely worth it due to the ease that sessions handles data. Cheers! Rick When one

Re: [PHP] Reliability of sessions

2002-04-04 Thread Jason Lotito
Another thing to consider, most users on the internet allow cookies, and those that don't want cookies can usually differentiate between allowing session cookies and other types of cookies. In the end, if a user doesn't want to allow cookies, they shouldn't expect to be able to do e-commerce type

Re: [PHP] Apache Default File Include

2002-04-04 Thread Dennis Moore
go to the PHP online documentation and look in the configuration section. auto_append_file string Specifies the name of a file that is automatically parsed after the main file. The file is included as if it was called with the include() function, so include_path is used. The special value none d

RE: [PHP] Reliability of sessions

2002-04-04 Thread Rodolfo Gonzalez
On Thu, 4 Apr 2002, Vladislav Kulchitski wrote: > Even though sessions are more handy, I still don't know what happens if > cookies are disabled in the client's browser. You don't even need to use cookies to support sessions. It's all in the manual. Regards, Rodolfo. -- PHP General Mailing L

[PHP] What's the difference b/n WBMP and BMP (regarding GD)?

2002-04-04 Thread Philip Hallstrom
Hi - I need to be able to generate 1-bit BMP's... and I'd like to do it all from within PHP using GD, but there's that annoying little W in front of what I want. As far as I can tell WBMP's *are* 1-bit only which is fine for me. Are there other differences or WBMP's really just 1-bit BMP

RE: [PHP] Reliability of sessions

2002-04-04 Thread Vladislav Kulchitski
But what you can do with you can make an array of things... so you will only have one How do you pass session IDs via strings? Can you describe in few words please? Vlad Kulchitski.com -Original Message- From: Thomas Deliduka [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002

Re: [PHP] Reliability of sessions

2002-04-04 Thread Thomas Deliduka
On 4/4/02 4:46 PM this was written: > I am not sure about the reliability of sessions, but the way I do it is > also through several processes, and the information passed via type=hidden name=name value=$name> I can demonstrate it if you want. That's what I was wanting to avoid. That's a lot of

[PHP] PHP 4.1.2 - does not work. !

2002-04-04 Thread Septic Flesh
Anyone manage to recompile php4.1.2 and use successfully ? I use slack8, apache 1.3.24. When I install php 4.1.1 it works fine. When I install php4.1.2 Apache doesnt work. error: apache cannot start. . could not load libphp4.so , not defined compress. The libphp4.so is there . . but only the one

RE: [PHP] Reliability of sessions

2002-04-04 Thread Vladislav Kulchitski
I am not sure about the reliability of sessions, but the way I do it is also through several processes, and the information passed via I can demonstrate it if you want. Even though sessions are more handy, I still don't know what happens if cookies are disabled in the client's browser. Vlad --

RE: [PHP] configuration problem?

2002-04-04 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Have you tried using virtual() ? virtual() is an Apache-specific function which is equivalent to in mod_include. It performs an Apache sub-request. It is useful for including CGI scripts or .shtml files, or anything else that you would parse through Apache. Note that for a CGI script, the script

RE: [PHP] eregi_replace

2002-04-04 Thread Rick Emery
it should print: V:\memo\F0001\abcdef.com \F0001\abcdef.com -Original Message- From: Rodolfo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 2:35 PM To: Rick Emery Cc: 'Fredrik Arild Takle'; [EMAIL PROTECTED] Subject: RE: [PHP] eregi_replace I got this as output: V:\

[PHP] Reliability of sessions

2002-04-04 Thread Thomas Deliduka
I have a quick question for a veteren of sessions out there. We're building a shopping cart and I'm playing with the idea of keeping the checkout information such as Shipping and billing address in a session variable until I retrieve it at checkout. The checkout is a step process: Shipping info

[PHP] Removing Properties from Word DOC

2002-04-04 Thread David McInnis
I need to alter the document properties of Word DOCS that our users upload via php. Does anyone know how to do this? (I am running PHP on a Linux box). David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] eregi_replace

2002-04-04 Thread Rodolfo Gonzalez
I got this as output: V:\memo\F0001\abcdef.com V:\memo\F0001\abcdef.com But no errors. Where does it fail? php-4.0.6-5mdk On Thu, 4 Apr 2002, Rick Emery wrote: > I think you found a bug in PHP. > > I even tried simple things like: > $qq = "V:\\memo\\F0001\\abcdef.com"; > print "$qq\n"; > $qx

RE: [PHP] eregi_replace

2002-04-04 Thread Rick Emery
I think you found a bug in PHP. I even tried simple things like: $qq = "V:\\memo\\F0001\\abcdef.com"; print "$qq\n"; $qx = ereg_replace("V:\\memo","",$qq); print $qx; and it failed -Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 3:1

Re: [PHP] eregi_replace

2002-04-04 Thread Miguel Cruz
On Thu, 4 Apr 2002, Fredrik Arild Takle wrote: >> Backslashes are magic. >> >> Double them and try again (e.g., --- >> >>$NoteNm[$i] = eregi_replace ("LOBBY\\VismaDok\\Memo\\", ... > > Well I've allready tried that one: > > Outputs: > Warning: REG_EESCAPE:~trailing backslash (\) in > D:\

RE: [PH P] Re: included file name -- DOCS ?

2002-04-04 Thread Maxim Maletsky
Need more to say, guys? Read below... > -Original Message- > From: Mikhail Avrekh [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 04, 2002 10:43 PM > To: Maxim Maletsky > Cc: 'Philip Hallstrom'; [EMAIL PROTECTED] > Subject: RE: [PHP] Re: included file name -- DOCS ? > > Thanks guys

RE: [PHP] Re: some kind of "library loader" - Thanks

2002-04-04 Thread Maxim Maletsky
Go wild Arpi! Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) www.PHPBeginner.com [EMAIL PROTECTED] > -Original Message- > From: Arpad Tamas [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 04, 2002 10:34 AM > To: Miguel Cruz > Cc: Maxim Maletsky;

RE: [PHP] eregi_replace

2002-04-04 Thread Rick Emery
show the whole line of coding again. very few of us keep threads. include previous responses -Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 3:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] eregi_replace > Backslashes are magic. >

[PHP] Re: request for comments

2002-04-04 Thread Lee Doolan
> "Lee" == Lee Doolan <[EMAIL PROTECTED]> writes: Lee> the dynamic portion of the recently launched www.affero.com Lee> has been implemented with php / smarty / postgreSQL. [. . .] Lee> i would be curious about any remarks, positive or negative L

Re: [PHP] eregi_replace

2002-04-04 Thread Fredrik Arild Takle
> Backslashes are magic. > > Double them and try again (e.g., --- > >$NoteNm[$i] = eregi_replace ("LOBBY\\VismaDok\\Memo\\", ... Well I've allready tried that one: Outputs: Warning: REG_EESCAPE:~trailing backslash (\) in D:\Inetpub\wwwroot\www_lobb\phpshop.php on line 28 Warning: REG_EE

RE: [PHP] strip_tags() problem

2002-04-04 Thread Rodolfo Gonzalez
> -Original Message- > From: Ryan Govostes [mailto:[EMAIL PROTECTED]] > Subject: [PHP] strip_tags() problem > I've tried several variations of the above, such as using preg_replace() > instead of strip_tags() and readfile() instead of include(), but it does > not work at all, no matter w

RE: [PHP] strip_tags() problem

2002-04-04 Thread Rick Emery
you need to open and process yahoo with file statements, not include please read the PHP manual... -Original Message- From: Ryan Govostes [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 2:44 PM To: PHP People Subject: [PHP] strip_tags() problem The following simple code does

[PHP] strip_tags() problem

2002-04-04 Thread Ryan Govostes
The following simple code does not function: $html = include("http://www.yahoo.com";); $text = strip_tags($html); echo $text; I've tried several variations of the above, such as using preg_replace() instead of strip_tags() and readfile() instead of include(), but it does not work at all, no ma

[PHP] executing php as non apache-user

2002-04-04 Thread Patrick Moor
hello i was looking for a solution, to start my php scripts as the owner of the script. there's one way using SuEXEC and the cgi version of php ( using #!/usr/bin/php or similar ). but is there a way to do this using the apache-_module_ version of php? sort of an apache patch? thanks patrick

RE: [PHP] Re: included file name -- DOCS ?

2002-04-04 Thread Mikhail Avrekh
Thanks guys, this is just what I needed ! I'm just surprised that this does not seem to be really documented anywhere. The only place where I could find this is in the "Reserved Keywords" section of the manual, where __FILE__, __LINE__ , "const" and "use" do not have links to explanatory pages

[PHP] Apache Default File Include

2002-04-04 Thread Dan Tappin
I had seen some where the procedure to add a default file to include in all pages served in a virtual domain under Apache. Can anyone point me to a FAQ on this of some keywords that I should search the Apache site for. I want to have a PHP file with all my generic functions loaded on every page

Re: [PHP] clarification on magic quotes

2002-04-04 Thread Erik Price
On Thursday, April 4, 2002, at 02:09 PM, Miguel Cruz wrote: > I find it much simpler to turn it off, and then just addslashes all > strings before they go into the database. I suppose you're right -- the only time you really need to add the slashes is right before the data gets inserted. I t

RE: [PHP] configuration problem?

2002-04-04 Thread Boris Wong
thanks for the response. i have no problem executing a simple perl script using passthru() or system(), but looks like i can't use a package in that perl script. for example, i have a perl script like this: #!/usr/bin/perl use strict; use lib qw(/dept/tools/lib); #use myPackage; print "hello wo

[PHP] Re: How to check for a php-extension?

2002-04-04 Thread Jim Winstead
Duncan <[EMAIL PROTECTED]> wrote: > i wrote a script, which uses the IMAP-extension. But if s.o. uses it > on a machine, which doesn't support IMAP functions, i get an error > message. How can i prevent this error: > > Fatal error: Call to undefined function: imap_open() in > /home/test/public_

[PHP] PHP and Postgresql with out local Postgresql

2002-04-04 Thread Brian C. Doyle
Hello all, How can I get linux php binary to access a remote postgresql server with out building postgresql on the "local system" I want to do it like it is done on windows. Example just load a dll file well .so in the script? dl('extensions/php_pgsql.dll'); but dl('what_ever.so'); -- PH

[PHP] How to check for a php-extension?

2002-04-04 Thread Duncan
Hi, i wrote a script, which uses the IMAP-extension. But if s.o. uses it on a machine, which doesn't support IMAP functions, i get an error message. How can i prevent this error: Fatal error: Call to undefined function: imap_open() in /home/test/public_html/test/imap_test.php on line 8 and re

Re: [PHP] references a functions

2002-04-04 Thread javier
Opossed to my thoughts worked fine. Rick Emery wrote: > What happened when you tried? > > -Original Message- > From: javier [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 04, 2002 1:01 PM > To: [EMAIL PROTECTED] > Subject: [PHP] references a functions > > > I trying to code a kind

RE: [PHP] session variables

2002-04-04 Thread heinisch
At 04.04.2002 13:18, you wrote: >Apparently under the bug report database for bug number 16043, my >exactly problem was described. According to the PHP team, this >windows/apache1.3.23/php4.1.2 session not writing to file bug has been >fixed in the 4.2.0RC1 binaries. I've patched my php4apache.

Re: [PHP] references a functions

2002-04-04 Thread javier
I thought that apart from returning an id the result set was created within the scope of the function so when the function finishes the resulted was deleted; But since is just an id an the result is stored somewhere else I wouldn't need any reference. btw where can I read about references bes

RE: [PHP] configuration problem?

2002-04-04 Thread Kevin Stone
I believe include() will only work if the CGI script is written in PHP. You should be able to extract the results of a foreign script by running passthru() or system(). For example if I wanted to print out a listing of all the files in a directory. You can use the optional input to pass a CGI

Re: [PHP] eregi_replace

2002-04-04 Thread Miguel Cruz
On Thu, 4 Apr 2002, Fredrik Arild Takle wrote: > Why won't this work? > > $NoteNm[$i] = eregi_replace ("V:\memo\F0001\", "", "$NoteNm[$i]"); > $NoteNm[$i] = eregi_replace ("\\LOBBY\VismaDok\Memo\", "", > "$NoteNm[$i]"); Backslashes are magic. Double them and try again (e.g., ---

RE: [PHP] eregi_replace

2002-04-04 Thread Rick Emery
Because you did NOT \\ all your \'s What error are you getting? -Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 1:11 PM To: [EMAIL PROTECTED] Subject: [PHP] eregi_replace Why won't this work? $NoteNm[$i] = eregi_replace ("V:

Re: [PHP] clarification on magic quotes

2002-04-04 Thread Miguel Cruz
On Thu, 4 Apr 2002, Erik Price wrote: > I was hoping someone could just clarify something for me -- exactly WHAT > is a Get/Post/Cookie operation in this case -- is it just during the > uploading of Get/Post/Cookie data from the user agent, or is it also > when I am taking a $_POST variable and

[PHP] eregi_replace

2002-04-04 Thread Fredrik Arild Takle
Why won't this work? $NoteNm[$i] = eregi_replace ("V:\memo\F0001\", "", "$NoteNm[$i]"); $NoteNm[$i] = eregi_replace ("\\LOBBY\VismaDok\Memo\", "", "$NoteNm[$i]"); Best Regards Fredrik A. Takle Norway -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] references a functions

2002-04-04 Thread Rasmus Lerdorf
Note that you rarely change a result set, so there is very little point in returning a reference to it given PHP's shallow copy implementation. And in your case you are just returning a resource id which you definitely aren't going to change. But if for some reason you feel it is important (plea

RE: [PHP] references a functions

2002-04-04 Thread Rick Emery
What happened when you tried? -Original Message- From: javier [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 1:01 PM To: [EMAIL PROTECTED] Subject: [PHP] references a functions I trying to code a kind of DB wrapper. So when is dbQuery turn I run into trouble. I read in php ma

[PHP] references a functions

2002-04-04 Thread javier
I trying to code a kind of DB wrapper. So when is dbQuery turn I run into trouble. I read in php manual that refrences are not like C pointers. They just point to the same content. I want to return the result from a mysql_query but if I do something like this: function bdConsultar($strCon)

RE: [PHP] clarification on magic quotes

2002-04-04 Thread Johnson, Kirk
I believe the escaping only occurs at the time GET/POST/COOKIE data is brought into the PHP namespace from the server. I recommend you don't removing escapes from a security standpoint. Do a search on "SQL injection" to find info on how crackers can mess with you when data from the client is not e

[PHP] clarification on magic quotes

2002-04-04 Thread Erik Price
The following quote is from http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc """ magic_quotes_gpc boolean Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped w

Re: [PHP] cvs tags (version?)

2002-04-04 Thread John S. Huggins
print("$Revision: $"); The next time you commit a file with this in it, the $Revision:$ will be replaced by $Revision: 1.38$ if you version is in fact 1.38. On Thu, 4 Apr 2002, Jeff D. Hamann wrote: >-I'm trying to find a way to insert the cvs version into a footer of my php >-files so I can si

[PHP] cvs tags (version?)

2002-04-04 Thread Jeff D. Hamann
I'm trying to find a way to insert the cvs version into a footer of my php files so I can simple ask the client to tell me the "version" number at the bottom of the page. I can then send an update or even better have the browser request an update for the file. -- Jeff D. Hamann Hamann, Donald & A

RE: [PHP] configure problem?

2002-04-04 Thread Miguel Cruz
On Thu, 4 Apr 2002, Boris Wong wrote: > sorry, my bad. i meant the two urls are the same. they're intranet pages so > giving out real data won't be useful. Yeah, it's not so much that I have any interest in visiting that page, as that the process of making stuff up always introduces extra confus

RE: [PHP] session variables

2002-04-04 Thread Lee, Ford
Apparently under the bug report database for bug number 16043, my exactly problem was described. According to the PHP team, this windows/apache1.3.23/php4.1.2 session not writing to file bug has been fixed in the 4.2.0RC1 binaries. I've patched my php4apache.dll with the ones from 4.2.0RC1 AND i

Re: [PHP] New to PHP Need Help

2002-04-04 Thread Philip Olson
Firstly, cross-posting like this is a huge no-no, please don't do that again. > When the script runs it displays Array. Printing arrays directly will do that. Logically speaking, how do you expect PHP to know what value to get here? You are SELECTing many. > I am running WIN2K and IIS 5

RE: [PHP] configure problem?

2002-04-04 Thread Boris Wong
sorry, my bad. i meant the two urls are the same. they're intranet pages so giving out real data won't be useful. >Um, does the page at http://www.myurl.com/ by any chance execute that >include statement? Because then you have an infinite recursion. that's not likely the case. i also noticed th

  1   2   >