[PHP] OOT - postgress help

2001-05-21 Thread toto
First, i'm sorry if this is an out of topic subject, but i've try to post this email to one of postgres mailing list, and i can't find any help there. i wish, if one of you know the solutions of my problem, you can share it with me. i create a little stored procedure using plpgsql from pgaccess.

Re: [PHP] file()

2001-05-21 Thread elias
yes true. 10x Christian Reiniger [EMAIL PROTECTED] wrote in message 01051912242605.00594@chrisbig">news:01051912242605.00594@chrisbig... On Saturday 19 May 2001 01:27, elias wrote: hello, i have my file which reads like: dir3/dir3-3/ dir2/ dir1/ s [...] as you noticed that in each

Re: [PHP] e*reminder and cron

2001-05-21 Thread James Holloway
Hi Henry, I'm not too familiar with Cron, but check the man pages for cron and crontab (type 'man cron' or 'man crontab', or type 'man man' if you've not used man pages before). James. Henry [EMAIL PROTECTED] wrote in message

[PHP] select the max value

2001-05-21 Thread Jacky
Hi all Is this the corerct way of selecting the max value in a table? select * from score where MAX(scorevalue) cheers Jack [EMAIL PROTECTED] There is nothing more rewarding than reaching the goal you set for yourself

[PHP] security

2001-05-21 Thread Ker Ruben Ramos
ey guys, what are the functions that's disabled if safe_mode is On? also, what I just did now is disabling the functions exec() and system() just to prevent shell commands. but, how do i disable something like `ls -l /` ? the backticks. Thanks guys

RE: [PHP] select the max value

2001-05-21 Thread Craig Vincent
SELECT MAX(scorevalue) FROM score Will display the maximum value of your scorevalue column. Sincerely, Craig Vincent -- 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

[PHP] UK based Hosting?

2001-05-21 Thread Tarrant Costelloe
Can anyone recommend a good/cheap uk based, PHP host? I say cheap as I am going to be needing about 500mg's of space for my current site (httpp://planet-tolkien.com) hosted with uk2.net. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] select the max value

2001-05-21 Thread Tom Rogers
Hi try: select * from score order by scorevalue DESC LIMIT 1 or if your db supports sub selects: select * from score where scorevalue=(select MAX(scorevalue) from score) Tom At 03:38 PM 21/05/01 -0500, Jacky wrote: Hi all Is this the corerct way of selecting the max value in a table? select *

Re: [PHP] include() in a file incuded()

2001-05-21 Thread Christian Reiniger
On Sunday 20 May 2001 19:39, Jaime Torres wrote: I've been blocked by this tiny problem... I have a main.php file: ? $frames = true; $open = http://myserver.com/info.html;; if ($frames) { include (frameset.php); } ? The frameset.php looks like (omitting almost all the HTML):

Re: [PHP] PHP and XHTML

2001-05-21 Thread Christian Reiniger
On Sunday 20 May 2001 20:51, Manuel Lemos wrote: Hello Navid, On 20-May-01 14:36:33, you wrote: So you suggest that I use the name attribute in XHTML and ignore the fact that it has been depreciated and replaced by the ID attribute? Will that solve my problem? It depends. If what is

[PHP] checking to see if part of a variable exists?

2001-05-21 Thread Sandeep Hundal
hi all! i need to see if a $variable has a piece of text included in it. how do i do that? i need to do something like: if ($variable =matches= @monkeys.com) { then do this} tia! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] checking to see if part of a variable exists?

2001-05-21 Thread James Holloway
Hi Sandeep, ? if (preg_match(/@monkeys.com/i, $variable)) { echo Got some monkeys.; } else { echo No monkeys here.; } ? preg_match(); ereg(); eregi(); Will all help you. James. Sandeep Hundal [EMAIL PROTECTED] wrote in message

RE: [PHP] checking to see if part of a variable exists?

2001-05-21 Thread Jon Haworth
http://www.php.net/manual/en/function.strstr.php if (strstr (i like beer, beer)) { // it's in there } else { // it's not } -Original Message- From: Sandeep Hundal [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 11:39 To: Php (E-mail) Subject: [PHP] checking to see if part of a variable

Re: [PHP] How to loop the HTTP_POST_VARS array?

2001-05-21 Thread Carlos Fernando Scheidecker Antunes
Maxim, This is great. Thank you very much !! I really appreciate your explanation since I did not get anything this good in any of my books. Since all the values that I need to retrieve are CheckBoxes that are Named C1,C2,C3,C... I have done the following and it worked : function

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

2001-05-21 Thread Plutarck
IMHO, one of the main attractions of open source software is that the creators themselves are easy to contact. Getting a question answered by a company usually involves talking to customer service, who gets an answer from a supervisor, who asked the lead of the programming department, who asked

Re: [PHP] comparison operators

2001-05-21 Thread Christian Reiniger
On Monday 21 May 2001 08:03, Heidi Belal wrote: I have a form where i let people choose a file to upload, but i want to limit them to image files only. So i want to only allow the .gif and .jpg to be uploaded. What i tried doing was this: if ($filename_type == image/gif) -- upload file

Re: [PHP] How to test content encoding?

2001-05-21 Thread Christian Reiniger
On Monday 21 May 2001 08:14, Plutarck wrote: I'm trying to test the gz_handler, among other things, but I have no idea if the output is actually gzip encoded. You could try using wget with a custom Http-Accept-Encoding: header -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)

Re: [PHP] ok, are servlets/jsp faster than php4?

2001-05-21 Thread Plutarck
why oh why doesn't php/plain zend cache scripts in the first place? :-/ PHP is developed in a way that no feature is added that would harm the performance or usability for the vast majority of people (80-90%+). Caching would speed individual scripts, but what if you have a very large amount of

[PHP] Quotes in GET variables

2001-05-21 Thread Mark Rogers
If I submit a string to a script via GET which contains quotes, how should they appear in my script? Eg: --- test.php --- echo $HTTP_GET_VARS['test']; Go to: test.php?test=this+doesn%27t+work .. and you get: this doesn\'t work (Char 27 is a single quote. Echoing $test gives

Re: [PHP] get all defined constants?

2001-05-21 Thread Plutarck
Hmm...SID is a constant, and when it's set it is present in $GLOBALS. But when I run this: ?php define(CON1, Hi there!); echo CON1; print_r($GLOBALS); ? ...the constant exists, but is not present in $GLOBALS. Weird...anyone know why this happens? (I'm using 4.0.5) Plutarck Alex Black

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

2001-05-21 Thread Craig Vincent
untested! ? if (strlen($word) 17) { $padding = 17-strlen($word); $word .= str_repeat(' ', $padding); unset($padding); } ? The reason for the if statement is that str_repeat will produce an error if 17-strlen($word) = 0 and that'll break your scriptof course you could remove the if state if

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Plutarck
It's a feature of PHP that it automatically escapes data submitted in PUT/GET/etc. It's nice in that it adds to how secure PHP code is, but it can be a hassle. Not sure if there is a function which removes escape characters will leaving normal backslashes alone. If you REALLY need to turn it off

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Mark Rogers
It's a feature of PHP that it automatically escapes data submitted in PUT/GET/etc. It didn't seem to be happening with POST which is why I thought it odd, but that probably means I didn't test properly :-) It's nice in that it adds to how secure PHP code is, but it can be a hassle. Out of

[PHP] generating thumbnails

2001-05-21 Thread Samuel Lüscher
is there any way to resize images in php and save them to a new file? i want to write sort of a (db-powered) picture gallery that automatically creates thumbnails out of http-uploaded files. thanks for your advice venome -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net --

Re: [PHP] Quotes in GET variables

2001-05-21 Thread James Holloway
Hi Mark, It's nice in that it adds to how secure PHP code is, but it can be a hassle. Out of curiousity, what are the security implications? Presumably a failure to validate input properly leading to unintended actions, but I can't think of any examples to help me decide whether to turn

Re: [PHP] generating thumbnails

2001-05-21 Thread George E. Papadakis
Find a good command line programm that does resing and use exec or system to do the thumbnailing Fopen fwrite exec. If you are on linux I suggest using NetPBM. - Original Message - From: Samuel Lüscher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 3:21 PM

Re: [PHP] generating thumbnails

2001-05-21 Thread Shawn Reed
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() which is

[PHP] What's wrong with this code?

2001-05-21 Thread Plutarck
I'm creating a filter to re-write webpages, and everything is going fine. I'm trying to strip out anything using the SCRIPT tag, and here's what I know works: $file = eregi_replace(script.*.*/script, !-- RWW: Scripting killed --, $file); But I use PCRE functions, so I don't want to use ereg in

php-general Digest 21 May 2001 13:20:48 -0000 Issue 699

2001-05-21 Thread php-general-digest-help
php-general Digest 21 May 2001 13:20:48 - Issue 699 Topics (messages 53649 through 53708): PLEASE -- Compiling an extension for PHP module (pgsql.so -- missing libpq.so.2) 53649 by: Jason Re: function to complete strings with white spaces on the left 53650 by: Mark

[PHP] php, apache, mysql

2001-05-21 Thread Gregory Hernandez
hello everyone. ok, here's a question. i'm running MacOS X. i had previously installed php and apache with no problem. this past weekend, i installed the unofficial latest version of mysql, MySQL 3.23.38, the version packaged for of course MacOS X. I noticed that mysql was installed on a

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

2001-05-21 Thread CC Zona
In article 9eb4nf$pdf$[EMAIL PROTECTED], [EMAIL PROTECTED] (Plutarck) wrote: $file = eregi_replace(script.*.*/script, !-- RWW: Scripting killed --, $file); But I use PCRE functions, so I don't want to use ereg in one place and PCRE in another, so I tried: $file =

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

2001-05-21 Thread Rasmus Lerdorf
But I use PCRE functions, so I don't want to use ereg in one place and PCRE in another, so I tried: $file = preg_replace(#script.*.*/script#i, !-- RWW: Scripting killed --, $file); '/script.*.*?\/script/i' -Rasmus -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] xmlHTTP.send equiv?

2001-05-21 Thread phpman
Does anyone have info on doing this with a secure server? Michael Conley [EMAIL PROTECTED] wrote in message 2102328FD2ECD411879E00609737BFD10BE2AD@FATBOY">news:2102328FD2ECD411879E00609737BFD10BE2AD@FATBOY... does anyone have info on this? -Original Message- From: Todd Kennedy

Re: [PHP] Quotes in GET variables

2001-05-21 Thread Plutarck
I saw an article just a few days ago on Hacking PHPNuke that was an excellant example of how the escape GPS thing saved a program from a major security hole caused by a very minor oversite in less than 0.01% of the code. Can't remember the name of the site...I think it was linked from

RE: [PHP] Quotes in GET variables

2001-05-21 Thread Boget, Chris
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 input

Re: [PHP] generating thumbnails

2001-05-21 Thread Rasmus Lerdorf
is there any way to resize images in php and save them to a new file? i want to write sort of a (db-powered) picture gallery that automatically creates thumbnails out of http-uploaded files. It's rather bleeding edge, but if your gra a copy of GD2-beta and a snapshot of PHP (from

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() which is

[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

[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] if $submit

2001-05-21 Thread Tarrant Costelloe
Whenever I use the ? if ($submit) ? 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

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(#script.*.*/script#Ui, !-- RWW: Scripting killed --, $file); Which works...kinda. But here's the weird thing. This is a piece

[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

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 ? if ($submit)

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

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] 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

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

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] 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:

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

[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

[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] 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 can i

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

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

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

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: [EMAIL

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 designed for use

[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

Re: [PHP] ?=SID? 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 ?=SID? 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

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

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 ? if ($submit) ? 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

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

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] 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) { $url =

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 before

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 that's

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(#script.*.*/script#Ui, !-- RWW: Scripting killed --, $file); Stupid error

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 // == ?php /* notes from Dan Potter: Sure. I changed a few other things in here too though. One is that I let you specify what the destination filename is (i.e., what is shows up as in

Re: [PHP] Syntax for CURL

2001-05-21 Thread Tolga \thorr\ Orhon
The script below is working fine for me: $data2send = field1=value1field2=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; Windows NT

[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

[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

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 input

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] 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: script setTimeout(redirect(),

[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

[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

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.

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 tables?

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

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 like that also]

[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:

RE: [PHP] ?=SID? 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] ?=SID? is not translated... I know that, and

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 php4

[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 ZioBudda Morelli [EMAIL PROTECTED] ICQ UIN: 58351764 PR of

[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=arg1arg2=arg2 In this case the directory would have an index.php file that would react based on the query string,

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] 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

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

[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

[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

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. anybody

[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

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 any extra

[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] 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 stuff then

[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] 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 else take a

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 brackets, there

[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 ), );

  1   2   >