[PHP] RE: why does it not work (fwd)

2001-05-21 Thread Adrian D'Costa
Hi, I have the follow running on my local host rh 7.0 My version +--+ | version()| +--+ | 3.23.22-beta-log | +--+ php 4.0.1pl2 my virtual host mysql +---+ | version() | +---+ | 3.22.32 | +---+ php running on some

RE: [PHP] PHP & RUBY

2001-05-21 Thread Maxim Maletsky
a new (?) infamous programming language. Something similar to PHP but fully (religiously) Object Oriented. It claims to be more OOOriented then Python while with easier syntax than Perl. eRuby (it's embedded scripting language for web) can also run as an apache module, not only CGI (*nix only ).

Re: [PHP] PHP & RUBY

2001-05-21 Thread John Monfort
What is RUBY? -John On Tue, 22 May 2001, Maxim Maletsky wrote: > Hello gurus, > > does anyone know a way to make PHP and RUBY running together (parsing both > the same file) ? > > This is what I tried to do: > > httpd.conf: > > AddType application/x-httpd-php-source .phps >

[PHP] Is the session ID of php4 made like a session cookie?

2001-05-21 Thread $B>>K\!!8y0l(B
Is it possible to erase at the same time the session data of php4 closes a browser? Please teach a method, when a browser is closed and session data can be canceled. - now Environment OS RedHatLinux6.2 php 4.0.5 At php.ini, it is session.cookie_lifetime = 0.; session.cache_limiter = nocache ;

RE: [PHP] PHP & RUBY

2001-05-21 Thread Maxim Maletsky
Thanks Rasmus, hope a stable Apache 2.0 comes out soon. I have done some tests few minutes ago and discovered that eRuby is much slower then PHP. While might still have some advantages. This is how I tested it: ruby.php // with PHP == PHP example Enumeration number Environment

Re: [PHP] PHP & RUBY

2001-05-21 Thread Rasmus Lerdorf
Well, sort of by definition you can't do this. You can't have multiple mime types mapping to the same extension. And even if you could, Apache can only have one content-generating phase. Anything that generates content will send it back to the client. With Apache2 it will be possible to layer

RE: [PHP] Send attachments with an email (Sample Code for you lot :))

2001-05-21 Thread Jason Lotito
Jason, I hope you don't mind, but I posted your script in my Code Depository located here: http://www.newbienetwork.net/phpcodems.php?as=viewcode&id=24 You are given credit, and hopefully it can get some use out of it. Either way, thanks for showing us. =) Jason Lotito www.NewbieNetwork.net

Re: [PHP] What's wrong with this code?

2001-05-21 Thread Christian Reiniger
On Tuesday 22 May 2001 05:06, Plutarck wrote: > And now one more bit. For instance to kill an onclick event I use: > > $file = preg_replace("#<(.*)onclick=\".*\"(.*)>#isU", "<\\1\\2>", > $file); > > Which works, kinda. Problem is, consider this: > > onclick='somecode()' > > It's not caught, beca

Re: [PHP] Send attachments with an email (Sample Code for you lot :))

2001-05-21 Thread Plutarck
*makes a note to develop a fully functional, system independent Slap class* Slap.setStrength(getMaxStrength()); Slap.setTarget(getLocation("Microsoft Outlook")); Slap.slap; *bows* Plutarck "Jason Murray" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I s

RE: [PHP] Send attachments with an email (Sample Code for you lot :))

2001-05-21 Thread Jason Murray
> I see this question asked here all the time, and recently had > to implement > it. Ugh, apologies for the crappy formatting. *slap.outlook* Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] Send attachments with an email (Sample Code for you lot :))

2001-05-21 Thread Jason Murray
Hi folks, I see this question asked here all the time, and recently had to implement it. Every class and solution I downloaded and tried to use failed for one reason or another, so I threw together this, instead. Advatages: * Quick :) * It's a function, so you can call it from most places if i

Re: [PHP] What's wrong with this code?

2001-05-21 Thread Plutarck
Doh! I read the part about what "." does and it didn't even register that it won't match newlines. Well now that part works ;) And now one more bit. For instance to kill an onclick event I use: $file = preg_replace("#<(.*)onclick=\".*\"(.*)>#isU", "<\\1\\2>", $file); Which works, kinda. Prob

[PHP] PHP & RUBY

2001-05-21 Thread Maxim Maletsky
Hello gurus, does anyone know a way to make PHP and RUBY running together (parsing both the same file) ? This is what I tried to do: httpd.conf: AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .html #Action application/x-httpd-php "/php/php

[PHP] .....RESPONSE TO YOUR ADVERTISEMENT........

2001-05-21 Thread bigsavings555
Dear [EMAIL PROTECTED], We are responding to your classified advertisement online and thought you would be interested in learning how to Increase your current sales at least 30 times what they are now...GUARANTEED! WOULD YOU LIKE TO HAVE 5 MILLION DELIVERABLE OPT-IN EMAIL ADDRESSES...JUST EXT

Re: [PHP] Secure LDAP and php 4.0.4pl1

2001-05-21 Thread Stig Venaas
On Mon, May 21, 2001 at 07:48:27PM -0400, Scott Russell wrote: > Using php 4.0.4pl1 with ssl and ldap support I'm connecting to a secure ldap > server. I want to be able to specify which level of ssl support I use, > either ssl1, ssl2, or ssl3. By default it appears as if php is trying to > connec

[PHP] $B%8%c%9%H%$%s!L(B010522$B9f!M(B

2001-05-21 Thread Infomation Service
Just in MAIL$B!Z>&I8EPO?=P4jCf![(B $B(6(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(B 2001/05/22$B!J2P!K(B $B(,(6(B $B!z!z(BJUST IN MAIL$B9-9p%Z!<%8!z!z(B $B!!!ZFCA*>pJs![(B J

Re: [PHP] array sort

2001-05-21 Thread Alex Black
> Use 'uasort()': > > function my_hash_sort( $a, $b) { > $a = $a['num']; > $b = $b['num']; > if( $a == $b) return 0; > return ( $a > $b) ? -1 : 1; > } > > uasort( $test, 'my_hash_sort'); hoping this wouldn't be the answer, thanks :) another for you: I've now coded my function, and the orderin

[PHP] Secure LDAP and php 4.0.4pl1

2001-05-21 Thread Scott Russell
Using php 4.0.4pl1 with ssl and ldap support I'm connecting to a secure ldap server. I want to be able to specify which level of ssl support I use, either ssl1, ssl2, or ssl3. By default it appears as if php is trying to connect using ssl3 which on my server fails during the ssl handshake. How ca

Re: [PHP] Is this a typo or what?

2001-05-21 Thread Floyd Baker
On 22 May 2001 00:19:41 +0200, you wrote: >Floyd Baker <[EMAIL PROTECTED]> wrote: > > > Henrik > > > > You are looking in the wrong area.. I'm working with php3. > > > > > There's an extra '}' in the first example for a word wrap function, > > > under string functions in the manual.. > >

[PHP] Edit A HREF links on the fly - see what i mean - important!

2001-05-21 Thread Noah Spitzer-Williams
hey guys, i'm working on an exit page popup but i dont want the popup to load whenever i change pages in the site, only when the user exits the site totally. now i dont think there is some sort of javascript for thsi but i have figured out a way around. for every link do this: a href="blah" o

Re: [PHP] Problem installing extension

2001-05-21 Thread Yasuo Ohgaki
Check your "extension_dir" in php.ini. Default is extension_dir=./ With this setting, PHP searches *.so files in appropriate directory for the PHP version running. Ben Curtis wrote: > I'm having problems loading an extension I just compiled into PHP 4.0.5 on linux. >On startup I get

RE: [PHP] Recompiling PHP with MySQL

2001-05-21 Thread Jason Murray
> All were installed using Red Hat RPMs. (Is this where I > screwed up from the start?) Not neccessarily. You might be able to find a PHP RPM with MySQL enabled, or download the source RPM (SRPM), edit the specfile and turn on the options you need (you can then rebuild the RPM so you can rein

[PHP] Recompiling PHP with MySQL

2001-05-21 Thread Carmen & Gene
Hi all, Can anyone please tell me how to recompile Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.0.4pl1 mod_perl/1.24_01 on Red Hat Linux 7.1 to work with MySQL? All were installed using Red Hat RPMs. (Is this where I screwed up from the start?) Anyway, MySQL ( ver 11.

Re: [PHP] PGP with MySQL

2001-05-21 Thread Joseph Blythe
Jeff Oien wrote: >> Jeff wrote: >> >>> I am trying to find the maximum security for storing credit card >>> numbers. >>> >>> >From reading the archives someone mentioned using a PGP based encryption >>> to encrypt the credit card number and store it into the database, and >>> have the company t

Re: [PHP] Class var not retaining values

2001-05-21 Thread Peter Dudley
Could it be that you need your for loop to iterate <= instead of < ? As it is, I don't think it will ever show anything. After all, you are setting $index to 0 at the beginning of the function every time you call it. My guess is you actually want to keep track of $index as an instance variable

Re: [PHP] PHP & URL Question - omitting index.php

2001-05-21 Thread Alex Black
> http://www.blahbalh.com/directory/?arg1=arg1&arg2=arg2 > > In this case the "directory" would have an index.php file that would react > based on the query string, but as you can see I'm not including the > index.php in the link. > > Is this o.k. or will some browsers get confused? I've never

Re: [PHP] array sort

2001-05-21 Thread Markus Fischer
On Mon, May 21, 2001 at 03:19:28PM -0700, Alex Black wrote : > hi all, > > I'm trying to do an array sort that takes: > > $test = array( > array( // this is $test[0]. > string => "this is the second", > num => 2 > ), > array( // this is $test[

Re: [PHP] HTTP socket connection

2001-05-21 Thread Nuno Silva
Hi, install http://stunnel.org/ in localhost: and redirect it to remote_host:443 with stunnel ;) now you can talk "simple" http to localhost: and let stunnel do the dirty work. Hope this helps, Nuno Silva phpman wrote: > I've been working with curl as well. It allows a pretty easy m

Re: [PHP] Class var not retaining values

2001-05-21 Thread Markus Fischer
On Mon, May 21, 2001 at 05:58:06PM -0400, Bob wrote : > I have a class defined with a var $reasons that I will use as an array. The > code to add to it is: > > function AddReason($score, $reason, $id) > { > static $index = 0; > $this->reasons[$index] = "$score|$reason|$id"; > for ($i =

Re: [PHP] PHP & URL Question - omitting index.php

2001-05-21 Thread Markus Fischer
On Mon, May 21, 2001 at 04:01:14PM -0400, colin olkowski wrote : > http://www.blahbalh.com/directory/?arg1=arg1&arg2=arg2 Perfectly ok. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To co

[PHP] test

2001-05-21 Thread Brandon Orther
test -- 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 administrators, e-mail: [EMAIL PROTECTED]

[PHP] array sort

2001-05-21 Thread Alex Black
hi all, I'm trying to do an array sort that takes: $test = array( array( // this is $test[0]. string => "this is the second", num => 2 ), array( // this is $test[1]. string=> "this is the first", num => 1 ),

Re: [PHP] Is this a typo or what?

2001-05-21 Thread Henrik Hansen
Floyd Baker <[EMAIL PROTECTED]> wrote: > Henrik > > You are looking in the wrong area.. I'm working with php3. > > > There's an extra '}' in the first example for a word wrap function, > > under string functions in the manual.. > > Here is what I see... and if you count the brac

Re: [PHP] Is this a typo or what?

2001-05-21 Thread Floyd Baker
On 21 May 2001 23:22:17 +0200, you wrote: >Floyd Baker <[EMAIL PROTECTED]> wrote: > > > There's an extra '}' in the first example for a word wrap function, > > under string functions in the manual.. > > > > I think I removed the right one but I'm still having trouble with it. > > Can someone

[PHP] Class var not retaining values

2001-05-21 Thread Bob
I have a class defined with a var $reasons that I will use as an array. The code to add to it is: function AddReason($score, $reason, $id) { static $index = 0; $this->reasons[$index] = "$score|$reason|$id"; for ($i = 0; $i < $index; $i++) { $out = $this->reasons[$i]; echo "$out..

Re: [PHP] cron jobs

2001-05-21 Thread Henrik Hansen
"Matt Costello" <[EMAIL PROTECTED]> wrote: > Hi > > Am running php4 on Red Hat 7(ish) and i need to setup cron job to run php > script. the script works fine if i load in browser, but creates an error > under cron. The script doesn;t try and echo anything to screen, just does > some DB stu

[PHP] replacing directory references at beginning of file name

2001-05-21 Thread Dennis Gearon
Could someone please send me the code for doing the above? I have the book, "Mastering Regex, blah blah", but I don't have time to read it until the end of the school quarter." I'd like to remove the following chars from the beginning of a string: '$', '\', '/', and '.' . I plan on doing it like

Re: [PHP] Is this a typo or what?

2001-05-21 Thread Henrik Hansen
Floyd Baker <[EMAIL PROTECTED]> wrote: > There's an extra '}' in the first example for a word wrap function, > under string functions in the manual.. > > I think I removed the right one but I'm still having trouble with it. > Can someone else take a crack at it too? > I dont see an

[PHP] cron jobs

2001-05-21 Thread Matt Costello
Hi Am running php4 on Red Hat 7(ish) and i need to setup cron job to run php script. the script works fine if i load in browser, but creates an error under cron. The script doesn;t try and echo anything to screen, just does some DB stuff then sends out an email. Matt -- PHP General Mailing L

Re: [PHP] e*reminder and cron

2001-05-21 Thread Henrik Hansen
"Henry" <[EMAIL PROTECTED]> wrote: > i'd like to run something like http://sourceforge.net/projects/e-reminders/ > on my site. it uses cron to trigger the mail to be sent. > > i'm not familiar with unix and cron. apparently i need to use shell access > on my site to get this working. > >

[PHP] Is this a typo or what?

2001-05-21 Thread Floyd Baker
There's an extra '}' in the first example for a word wrap function, under string functions in the manual.. I think I removed the right one but I'm still having trouble with it. Can someone else take a crack at it too? Or give me a new one? Thanks.. Floyd -- -- PHP Gen

[PHP] Being a PHP/MySQL ISP

2001-05-21 Thread Simon Buchanan
Hi, Just wondering if anybody has experience in or can jot down any gotchas / issues in providing a php/mysql vistral hosting service. Problems with security? Are their things i have to watch out for? Thanks Simon Buchanan -- Technical Director Contact: 07 571-

[PHP] Pls Help with this newbie question

2001-05-21 Thread Tom
I can't seem to get unset() to work when I'm strying to delete an element from an array. I have a select list that is populated by an array, and i need to be able to delete items from the list by deleting them from the array, but I don't know how. I tried using unset($array['element']); but i

Re: [PHP] mysql and user-defined functions

2001-05-21 Thread Alexander Wagner
Lybarger, Denver J (LYBARDJ8) wrote: > Is there a way to return the results of a mysql_query or the > array that is generated after mysql_fetch_array, via a function? > Note I have tried to do a straight return. What was the problem? This should work. Maybe you just got the mysql_fetch_ar

[PHP] mysql and user-defined functions

2001-05-21 Thread Lybarger, Denver J (LYBARDJ8)
Hi All, Is there a way to return the results of a mysql_query or the array that is generated after mysql_fetch_array, via a function? Note I have tried to do a straight return. Another issue is that all of the tables are a different size, therefore a static array size would be a big was

Re: [PHP] hi, highlight_string.

2001-05-21 Thread Alexander Wagner
Michel 'ZioBudda' Morelli wrote: > Hi, I want to save into a variable ($tmp) the value of > highlight_string command. Any one? or any similar function? Have a look at PHP 4's output buffering functions. You can use them to safe the output instead of displaying it. regards Wagner -- "Some guy

[PHP] PHP & URL Question - omitting index.php

2001-05-21 Thread colin olkowski
Quick question on passing arguments via URL. Does anyone know if any browsers have a hard time dealing with something like the following? http://www.blahbalh.com/directory/?arg1=arg1&arg2=arg2 In this case the "directory" would have an index.php file that would react based on the query string,

[PHP] hi, highlight_string.

2001-05-21 Thread Michel 'ZioBudda' Morelli
Hi, I want to save into a variable ($tmp) the value of highlight_string command. Any one? or any similar function? -- SORDOMUTO TENTA DUE RAPINE MA NON RIESCE A FARSI CAPIRE (Dai Giornali) -- Michel Morelli [EMAIL PROTECTED] ICQ UIN: 58351764 PR of Linux in

Re: [PHP] wrapping text on a page display.

2001-05-21 Thread Floyd Baker
On Mon, 21 May 2001 12:57:13 -0400, you wrote: > > >Hello.. Sorry, I know this is a constant problem.., at least for me. > >Now I am using 'text' to store big inputs. It does not wrap on the >screen display... > >I have it working on my machine with wordwrap with php4. >The isp does not have

RE: [PHP] is not translated...

2001-05-21 Thread Johnson, Kirk
Is the session.use_trans_sid flag set to 1 in php.ini? Kirk > -Original Message- > From: Christian Marschalek [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 21, 2001 1:16 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] is not translated... > > > I know that, an

RE: [PHP] is not translated...

2001-05-21 Thread Christian Marschalek
I know that, and this option is not enabled and does not work although the cookies are turned off... > -Original Message- > From: Rama [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 21, 2001 8:19 AM > To: Christian Marschalek > Subject: RE: [PHP] is not translated... > > > http://www

[PHP] Problem installing extension

2001-05-21 Thread Ben Curtis
I'm having problems loading an extension I just compiled into PHP 4.0.5 on linux. On startup I get this... PHP Warning: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20001222/myextension.so' - cannot open shared object file: cannot load shared object file: No

Re: [PHP] Job listings DB

2001-05-21 Thread Mark Maggelet
On Mon, 21 May 2001 13:55:12 +0100, py ([EMAIL PROTECTED]) wrote: >> Hi, >> >> I am designing a system for my company to get employee resumes via >>the >Web, >> rather than paper. All resumes now go into a mySQL DB, which can be >> searched by HR (at least that's the theory :) > >[I would do it li

Re: [PHP] security

2001-05-21 Thread Jack Sasportas
I realize this is old, but I was just reading through it and noticed there were not many suggestions. My idea would be to have a directory which is in a non-publically viewable place that you can refer to in an include, like include "/home/nobodyseesthisfolder/secret file" It should bomb when it c

Re: [PHP] Job listings DB

2001-05-21 Thread py
> Hi, > > I am designing a system for my company to get employee resumes via the Web, > rather than paper. All resumes now go into a mySQL DB, which can be > searched by HR (at least that's the theory :) [I would do it like that also] > > My questions: > > For job listings - how do I design the

Re: [PHP] best way to flush stdout?

2001-05-21 Thread Markus Fischer
On Mon, May 21, 2001 at 10:03:33AM -0700, Phil Glatz wrote : > I have a page that displays a few lines, then runs a database query that > takes five or six seconds. I'd like to flush stdout and display the first > text while the query is running, so the user doesn't think the site is > down.

[PHP] fread via ftp to NT fails

2001-05-21 Thread Mark Heintz PHP Mailing Lists
I'm attempting to read a file from a remote server and save it to a variable. The code below works fine if the remote server is unix based, but fails with the server I actually need to retrieve data from (NT4 SP4, beyond my control). When trying to fread from the NT server, $invoice_contents en

[PHP] Job listings DB

2001-05-21 Thread Vikram Vaswani
Hi, I am designing a system for my company to get employee resumes via the Web, rather than paper. All resumes now go into a mySQL DB, which can be searched by HR (at least that's the theory :) Here are the scripts I will be writing. User pages Listings Descriptions Application form Admi

Re: [PHP] best way to flush stdout?

2001-05-21 Thread Tolga \"thorr\" Orhon
I am not sure that it is the best way to do it but here is my solution: I redirect the page with: header("Location: page1.php); to page1.php which contains a message about the process in progress then after a few moments redirecting to page2.php with javascript: setTimeout("redirect()", 500) f

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-21 Thread Zeev Suraski
At 08:24 21/5/2001, Rasmus Lerdorf wrote: >You are assuming they even read this mailing list. *ping* (in Tokyo, so it took me a while to catch up on my Email) Zeev -- Zeev Suraski <[EMAIL PROTECTED]> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/ -- PHP General Mailing List

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Mark Rogers
> Anyway, it's not a big thing if you're _really_ stringent about how you > check every single variable which is used in a database query, > system/passthru/exec, or eval command, and your checking methods are > flawless, but otherwise it's just best to go to the trouble of hacking > around the in

[PHP] best way to flush stdout?

2001-05-21 Thread Phil Glatz
I have a page that displays a few lines, then runs a database query that takes five or six seconds. I'd like to flush stdout and display the first text while the query is running, so the user doesn't think the site is down. What's the best way to accomplish this? thanks -- PHP General Mail

[PHP] wrapping text on a page display.

2001-05-21 Thread Floyd Baker
Hello.. Sorry, I know this is a constant problem.., at least for me. Now I am using 'text' to store big inputs. It does not wrap on the screen display... I have it working on my machine with wordwrap with php4. The isp does not have php4 yet, and it doesn't work with I upload. What is th

Re: [PHP] Syntax for CURL

2001-05-21 Thread Tolga \"thorr\" Orhon
The script below is working fine for me: $data2send = "field1=value1&field2=value2"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://www.postside.com/postpage";); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windo

Re: [PHP] sending attachements with mail

2001-05-21 Thread py
Here is a nice class that handles e-mail attachment. Works fine for me. py // == // start code // == subject = $subject; $this->addr_to = $to; $this->smtp_headers = $this->write_smtpheaders($from); $this->text_body = $this->write_body($msg); $this->text_encoded = $this->attach

Re: [PHP] What's wrong with this code?

2001-05-21 Thread Christian Reiniger
On Monday 21 May 2001 16:23, Plutarck wrote: > Since there is a "/" in the code itself, I use "#" as a delimiter > instead so I don't have to escape it, making it harder to read. > > So here's the code: > > $file = preg_replace("#.*#Ui", "", $file); Stupid error (noticed this after trying for ~1

Re: [PHP] security

2001-05-21 Thread Brave Cobra
With the Safe Mode on, no files outside the document root(defined in the php.ini) are being handled. - Original Message - From: "Ker Ruben Ramos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 22, 2001 2:01 AM Subject: [PHP] security ey guys, what are the functions th

Re: [PHP] Check multiple cookies

2001-05-21 Thread James Holloway
Hi Sam, > The following is exactly what I typed in (just copy and pasted) but I'm > still getting the error: > > Cannot add header information - headers already sent by (output started at > web.php:2) in > web.php on line 19 Make sure that all output for Cookies and header information is sent b

Re: [PHP] Check multiple cookies

2001-05-21 Thread Sam Gooding
>At 09:31 AM 5/21/01 -0500, you wrote: >header("Location: http://www.example.com";); > >That redirects the user to the wepage of you're choosing. The rest is just a >matter of checking variables. For instance, you can do this: > >if ($var1) >{ >$url = 'www.example1.com'; >} >elseif ($var2) >{ >$u

[PHP] Re: [PHP-DEV] Constructor Inheritance

2001-05-21 Thread Markus Fischer
Hello Tiago, this is not the PHP support forum. PHP-DEV is for developing PHP. You want to post such questions to PHP-GENERAL. On Mon, May 21, 2001 at 04:17:49PM +0100, Tiago Moitinho wrote : > How do I inherit a class that inherits the constructor behaviour from the > parent class, assuming th

Re: [PHP] query question

2001-05-21 Thread Markus Fischer
On Mon, May 21, 2001 at 10:36:42AM -0500, Jacky wrote : > What do I do if i want to move all values stored in one field > to another field in the same table, from field A to field B? > Has anyone ever done that? As simple as you think it should be UPDATE table SET column_a = column_b

Re: [PHP] Accesing Oracle

2001-05-21 Thread Markus Fischer
On Mon, May 21, 2001 at 03:21:30PM +0100, Kike wrote : > Hi all, > I've just installed Orcale 8.1.7 in a linux server in my lan. I'm trying to access >to > the server from another computer with apache and i get the next: > Fatal error: Call to undefined function: ora_logon() in > /usr/local/ap

Re: [PHP] if $submit

2001-05-21 Thread Markus Fischer
On Mon, May 21, 2001 at 03:15:37PM +0100, Tarrant Costelloe wrote : > Whenever I use the ? statement in a php page it always > comes up with: > > Warning: Undefined variable > Until the submit has been hit, and then it continue on with the rest of the > script fine ( ifelse). > > How do you st

Re: [PHP] Max execution time exceeded in Unknown on line 0

2001-05-21 Thread David De Graff
I think it's related to include files, maybe combined with an MP issue. I wrote a simple db access test file which ran fine, then pasted include statements in from the files that were having problems. The problems then occurred when running the simple script. Not sure if there's something wrong w

Re: [PHP] is not translated...

2001-05-21 Thread Markus Fischer
Hallo Chris, On Mon, May 21, 2001 at 04:08:52AM +0200, Christian Marschalek wrote : > My system does not tranlate into the PHP Session id... Don't > have a clue why, though... SID gets only defined if the appropriate cookie is NOT set (which makes sense: you don't need to populate it anywhere

[PHP] Syntax for CURL

2001-05-21 Thread Todd Cary
I need to send a POST string to a HTTPS server and receive the returned string. Does anyone know the correct syntax for this? I have looked at the HELP a www.php.net; however, I am not completely clear on what I need to put into the curl_setopt(). Todd -- Todd Cary Ariste Software [EMAIL PROTE

Re: [PHP] Intranet links

2001-05-21 Thread kaab kaoutar
I meant soft side! >From: "Plutarck" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: [PHP] Intranet links >Date: Mon, 21 May 2001 10:13:44 -0500 > >Do you mean "creating" as in physically plugging wires into network cards >in >computers to create one, or programming software that's des

Re: [PHP] function to complete strings with white spaces on the left

2001-05-21 Thread Markus Fischer
On Mon, May 21, 2001 at 10:04:21AM -0500, Tolga thorr Orhon wrote : > One improvment: > > $strpad = "HELLO"; > echo str_pad(substr($strpad,0,17),17); why ? - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: [PHP] Intranet links

2001-05-21 Thread Plutarck
Do you mean "creating" as in physically plugging wires into network cards in computers to create one, or programming software that's designed for use over the intranet, socket programming on an intranet, or something else? "Creating an intranet" is too broad of a subject to give you a very good a

Re: [PHP] Max execution time exceeded in Unknown on line 0

2001-05-21 Thread David De Graff
Tolga, Thanks for the reply. I'm running the Zeus web server on Solaris 2.6 on a dual-cpu Sun Ultra 2. One or two php processes do spike to large loads when this happens, though not all of the cpu - something like 25-40% for quite a while, then the load fades. Will let you know if I fina anythi

Re: [PHP] Multiple emails

2001-05-21 Thread Plutarck
The general concencus is that when you have to send one email to a whole lotta people, it's best to use a mail list handler like egroups, listgroup, major domo, etc. It's just more reliable and you can spend time on developing your code, not your emailing system. I never do that, but I figure I s

Re: [PHP] Accesing Oracle

2001-05-21 Thread Brian S. Dunworth
At 03:21 PM 5/21/01 +0100, Kike wrote: >Hi all, >I've just installed Orcale 8.1.7 in a linux server in my lan. I'm trying >to access to >the server from another computer with apache and i get the next: >Fatal error: Call to undefined function: ora_logon() in >/usr/local/apache/htdocs. >Where

[PHP] Intranet links

2001-05-21 Thread kaab kaoutar
Hi do u have any interesting links about careting an intranet? Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: [PHP] function to complete strings with white spaces on the left

2001-05-21 Thread Tolga \"thorr\" Orhon
One improvment: $strpad = "HELLO"; echo str_pad(substr($strpad,0,17),17); may be more generic and secure... -- Tolga 'thorr' Orhon "Mark Maggelet" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sun, 20 May 2001 22:03:05 -0300, Carlos Fernando Scheidecker A

[PHP] PHP 2 of 5 code bars

2001-05-21 Thread Anderson Moreira
Hi, That's for those who needs to generate 2 of 5 code bars. See you Anderson J. Moreira -- Visite: http://www.ambientebrasil.com.br E-mail: [EMAIL PROTECTED] Fone: 0xx 41 222-6345 i25.tgz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: [PHP] Max execution time exceeded in Unknown on line 0

2001-05-21 Thread Tolga \"thorr\" Orhon
I had a smilar problem. My system was working just fine with php 4.0.4pl1, apache 1.3.14 and mysql 3.23.33. Then I upgraded system to php 4.0.5 with curl and dom-xml support, and other components are same, I am getting the same error. Besides each apache process eats all cpu avaliable. Other than

Re: [PHP] if $submit

2001-05-21 Thread Plutarck
For the sake of completeness, whenever PHP encounters a reference to a variable which has not been set it will throw a warning. The reason most people don't see that behavior is that their version of PHP uses the default setting of "show all errors but don't mention the warnings". If they use: e

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Plutarck
Basically, use one of the escape functions :) For instance, looking at this piece of code: $result = mysql_query("SELECT * FROM table WHERE username='$username' AND password='$password'"); Now, you have the variables $username and $password to worry about. Now we ask ourselves, what characters

Re: [PHP] sending attachements with mail

2001-05-21 Thread Tolga \"thorr\" Orhon
Yes you can do it, but it takes some time as you need to know MIME extensions. It took 2 hours to implement just picture attachments. It will surely be easier to use some kind of script but I couldnt find any that gets attachments direcly (as I am getting attachments from MySql DB) so I did my own

RE: [PHP] Accesing Oracle

2001-05-21 Thread Sam Masiello
Sounds like you need to recompile PHP with Oracle support. Recompile PHP with the -with-oracle flag when running the configure script to include the Oracle functions. HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Kike [mail

Re: [PHP] Check multiple cookies

2001-05-21 Thread Plutarck
header("Location: http://www.example.com";); That redirects the user to the wepage of you're choosing. The rest is just a matter of checking variables. For instance, you can do this: if ($var1) { $url = 'www.example1.com'; } elseif ($var2) { $url = 'www.example2.com'; } elseif ($var3) { $url = '

Re: [PHP] if $submit

2001-05-21 Thread Plutarck
error_reporting (E_ALL ^ E_NOTICE); http://www.php.net/manual/en/function.error-reporting.php I personally change my php.ini setting to: error_reporting = E_ALL & ~E_NOTICE Then at the top of my scripts which I want to debug I add the line: error_reporting(E_ALL); Plutarck "Tarrant Cost

RE: [PHP] if $submit

2001-05-21 Thread Sandeep Hundal
i always use such statements like : if ($submit) { then do this } else { render the page } and it works fine... -Original Message- From: Tarrant Costelloe [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 15:16 To: Php (E-mail) Subject: [PHP] if $submit Whenever I use the ? statement in

[PHP] Accesing Oracle

2001-05-21 Thread Kike
Hi all, I've just installed Orcale 8.1.7 in a linux server in my lan. I'm trying to access to the server from another computer with apache and i get the next: Fatal error: Call to undefined function: ora_logon() in /usr/local/apache/htdocs. Where can i find docs to configure boths machines t

Re: [PHP] What's wrong with this code?

2001-05-21 Thread Plutarck
Since there is a "/" in the code itself, I use "#" as a delimiter instead so I don't have to escape it, making it harder to read. So here's the code: $file = preg_replace("#.*#Ui", "", $file); Which works...kinda. But here's the weird thing. This is a piece of code in the HTML which will be rep

Re: [PHP] if $submit

2001-05-21 Thread Vitali Falileev
Hello Tarrant, 1st solution: turn off warnings in php.ini 2nd: use if(isset($submit)) { .. . .. . } Monday, May 21, 2001, 5:15:37 PM, you wrote: TC> Whenever I use the ? statement in a php page it always TC> comes up with: TC> Warning: Undefined variable TC> Until the submit has bee

[PHP] if $submit

2001-05-21 Thread Tarrant Costelloe
Whenever I use the ? statement in a php page it always comes up with: Warning: Undefined variable Until the submit has been hit, and then it continue on with the rest of the script fine ( ifelse). How do you stop this warning message? Thanks in advance! Tarrant Costelloe Web Developer InsurE-

[PHP] Upload Problem

2001-05-21 Thread Feroze Md. Arif
Hi, I wrote a small upload script (using http) to upload various files to a website. I am able to upload jpg and gif files but I am unable to upload tif files. This seems strange. Could anyone please let me know what I am missing out on? I have checked the mime.types file of apache and i saw

[PHP] Check multiple cookies

2001-05-21 Thread Sam Gooding
Is it possible to check multiple cookie values and then redirect to another page depending on what cookie values have been set? Sort of like: if(cookie == 3) goto(url1) elseif(cookie2 = 5) goto(url2) else goto(url3) Thanks in advance! -- PHP General Mailing List (http://www.php.net

Re: [PHP] generating thumbnails

2001-05-21 Thread Rasmus Lerdorf
> nahhh, if you're doing a lot of images on a page, doing a system call for > each one would generate entirely too much overhead, imo. > > check out the built-in image manipulation functions in php. > http://www.php.net/manual/en/ref.image.php > > there is a function called ImageCopyResized() whic

  1   2   >