Re: [PHP] file maniputation??

2001-10-04 Thread Mukul Sabharwal
Hi, It looks most certainly like a file permission error, however if you have concurrent users maybe it's over riding the file contents, and screwing up something somewhere. So use flock(), a tutorial : http://www.paphe.com/php/tutorials/111000.php = * Know

RE: [PHP] php in css not working with IF's

2001-10-04 Thread Jason Dulberg
Should I stick with if (($site_style!=10) ($site_style!=9) ($site_style!=8)) or if($site_style != ('10' or '9' or '8')) So here's what I've gathered from the various messages and my current methods: - index.php selects $site_style from the db - header.php is included by index.php

Re: [PHP] php in css not working with IF's

2001-10-04 Thread David Robley
On Thu, 4 Oct 2001 16:04, Jason Dulberg wrote: Should I stick with if (($site_style!=10) ($site_style!=9) ($site_style!=8)) or if($site_style != ('10' or '9' or '8')) As has been pointed out, that latter won't work. What is the range of possible values for $site_style? If it is 10 or

Re: [PHP] Sessions Variables and refresh pages

2001-10-04 Thread Derek Mailer
Karina, If this is the problem you are getting and you can't find a way around it, you could start the session on a splash or index page so that when you move from that first page into the main part of the website, the session has already been started and all session variables are available.

[PHP] Session ID

2001-10-04 Thread Rosen
Hi, I'm creating web site with sessions. Normally the site uses PHPSESSID to pass session ID to next page. I want to use some script whitch use SID to pass session ID. Can I set standart (i.e. PHPSESSID ) to use to pass session ID ? Thanks, Rosen -- PHP General Mailing List

[PHP] How can I simulate the login process?

2001-10-04 Thread _lallous
I want to write a script that simulates the login process and logs on and grabs some pages (that can only be viewed when logged in) and the logs out... how can i do that? consider the authentication system is done via session variables method... any ideas would help. -- PHP General Mailing

[PHP] need phpmyAdmin but no so good

2001-10-04 Thread ani
Hi: I'm looking for a mysql administrator but no so good as phpmyAdmin, just listing dbs, tables, insert, delete, edit options; no create or alter tables and dbs anybody knows about? thanks in advance Aniceto Lopez www.laMundial.net download our free music -- PHP General Mailing List

[PHP] Session and header() errrors

2001-10-04 Thread Web user
Why do the errors occur while running the scripts below? It seems that the errors occured at the part of session and header(). Please give me some advice! Thank you! Mike System: PHP4.06 + Apache 1.3.20 Win32 + Win98 (the session configurations are default in php.ini) when the 1.php is

Re: [PHP] Session and header() errrors

2001-10-04 Thread Rasmus Lerdorf
You can't send any output before the session_start() call. You require a file which outputs html before calling session_start(). Simply do the session_start() before the require and it should work. -Rasmus On Thu, 4 Oct 2001, Web user wrote: Why do the errors occur while running the scripts

[PHP] New version of community calendar released!

2001-10-04 Thread Christopher Ostmo
Hello, AppIdeas.com has been working hard to update it's Open Source PHP/MySQL offerings and has just released version 4.0 of it's popular community calendar system. You can run a demo, see real world examples, view the source code and download a copy online at: http://open.appideas.com/

Re: Re: Re: [PHP] How to simulate any browser

2001-10-04 Thread Kamil Nowicki
Thanx. I'll check it out. I think you need snoopy. (http://sourceforge.net/projects/snoopy/) Kamil 'Hilarion' Nowicki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Re: [PHP] How to simulate any browser

2001-10-04 Thread Kamil Nowicki
Me again And gives error page in $output. What does the error page have? The error page is generated by JSP and gives me some error with VBS and dll. When I use cURL (on other server) to get to the same script on the same JSP server with the same input I get correct data (if using GET

[PHP] stripslashes

2001-10-04 Thread Caleb Carvalho
Hi all, if i have an array that is fetching the result to be display example, for ($i =1; $i=sybase_num_rows($result); $i++){ $row =sybase_fetch_array($result); $row[product] a href=solution.php?id=$row[prob_title]$row[prob_title]/a $row[description]$row[solution] where would i put the

Re: [PHP] something like alert (javascript)

2001-10-04 Thread Eduardo Kokubo
I'm implementing a system that allows the users create pages on-line. They can create several different pages to complete a site. What I want to do is alert them that there are still pages to be created before they finish. I'm trying to do it checking the files they create and alerting a message,

Re: [PHP] Session and header() errrors

2001-10-04 Thread Dimitris Kossikidis
You should change sessions configuration in php.ini The default value for sessions dir /tmp. In windows shoud point to c:\tmp The header error occurs because you get a warning about session. - Original Message - From: "Web user" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

Re[2]: [PHP] something like alert (javascript)

2001-10-04 Thread Morten Winkler Jørgensen
EK I'm using a simple print() (PHP) but alert() would EK be much better. Have php print your BODY tag like this: BODY onLoad=alert('Your warning') That's the best solution I think. -- Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Fwd: Re: [PHP] Unable to get a dot-decimal ip address from a decimal ip address

2001-10-04 Thread dharana
- Forwarded message from [EMAIL PROTECTED] - From: [EMAIL PROTECTED] To: David Robley [EMAIL PROTECTED] Date: Thu, 4 Oct 2001 13:37:07 +0200 Subject: Re: [PHP] Unable to get a dot-decimal ip address from a decimal ip address Something weird is going on: PHP translates thisinto

Re: [PHP] Session and header() errrors

2001-10-04 Thread Naintara Jain
There are 2 things you are doing here: 1) Session start 2) page redirection put session_start() as the 1st line in your script. Echo commands in the included file causes such warnings: "Warning: Cannot send session cookie - headers already sent by (output started at c:\program files\apache

[PHP] Re: stripslashes

2001-10-04 Thread Hidulf
if you just want to add slashes to the data, use addslashes if you want to get away the alashes from the data, use it in the print or echo function. -- Hidulf http://www.hidulf.com Caleb Carvalho [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, if i have

[PHP] printing comma-delimited lists

2001-10-04 Thread David Otton
What I'm doing here is fairly obvious (build a comma-delimited string). $arr = array(1,2,3,4,5); for ($i=0; $i sizeof($arr); $i++) { $lis = $lis . $arr[$i]; if ($i != (sizeof($arr)-1)) { $lis = $lis . ','; } } Question is, is there a more elegant way?

[PHP] preg_replace

2001-10-04 Thread Oliver Ruf
Hello I'm trying to write some kind of parser... see the example: $text = [LINK image.png]MyImage[/LINK]; $out = preg_replace (/\[LINK*\]*\[/LINK\]/i, /a href=\*\*/a/,$text); Well... What I would like is, that $out would be something like about this: a

Re: [PHP] printing comma-delimited lists

2001-10-04 Thread Stig-Ørjan Smelror
What I'm doing here is fairly obvious (build a comma-delimited string). $arr = array(1,2,3,4,5); for ($i=0; $i sizeof($arr); $i++) { $lis = $lis . $arr[$i]; if ($i != (sizeof($arr)-1)) { $lis = $lis . ','; } } Question is, is there a more elegant

[PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread René Fournier
The reason I ask is, I'm having a problem processing rows in a table that contain single quotes (specifically, the PHP code I wrote that allows the user to duplicate a row doesn't work if the a field in the row has a single quote in it). Would it be better for me to strip out the single quotes

Re: [PHP] printing comma-delimited lists

2001-10-04 Thread David Otton
On Thu, 4 Oct 2001 16:27:11 +0200 (CEST), you wrote: You could try implode() $lis = implode(,, $arr); That'll do it; thanks. djo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] need phpmyAdmin but no so good

2001-10-04 Thread Michael A. Peters
http://www.webmin.com/webmin/ On Thu, 4 Oct 2001 10:48:57 +0200 [EMAIL PROTECTED] wrote: Hi: I'm looking for a mysql administrator but no so good as phpmyAdmin, just listing dbs, tables, insert, delete, edit options; no create or alter tables and dbs anybody knows about? thanks in

[PHP] Downloading Images

2001-10-04 Thread Roger Bryant
All, I have searched high and low through the lists to find a solution to this problem but none of the suggestions appear to work for me. I have added a download button to a web-site that enables users to download images to their local drives. (I'm using a button as I want to wrap some logic

[PHP] Re: Should I convert special characters before writing them to a table?

2001-10-04 Thread Oliver Ruf
Hi ASFAIK, the quote character (') is used in ANSI-SQL (and also in MySQL) as string-delimiter... (e.g. SELECT * FROM users WHERE name = 'admin';) So I definitvely would replace the character or you'll might run into problems with SQL. Maybe there's another and better solution, but it should

Re: [PHP] Downloading Images

2001-10-04 Thread David Otton
On Thu, 4 Oct 2001 07:32:17 -0700 (PDT), you wrote: I have added a download button to a web-site that enables users to download images to their local drives. (I'm using a button as I want to wrap some logic round this function) I have the following (simplified code )that will be called from the

Re: [PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread Steve Werby
René Fournier [EMAIL PROTECTED] wrote: The reason I ask is, I'm having a problem processing rows in a table that contain single quotes (specifically, the PHP code I wrote that allows the user to duplicate a row doesn't work if the a field in the row has a single quote in it). Try

[PHP] need phpmyAdmin but no so good

2001-10-04 Thread ani
Michael: Webmin is a web-based administration interface for Unix systems but I need something like phpmyAdmin just for managing the info in databasesj ust listing dbs, tables, insert, delete, edit options; no create or alter tables and dbs. Thanks anyway, this webmin is interesting also

Re: [PHP] stripslashes

2001-10-04 Thread Steve Werby
Caleb Carvalho [EMAIL PROTECTED] wrote: if i have an array that is fetching the result to be display example, for ($i =1; $i=sybase_num_rows($result); $i++){ $row =sybase_fetch_array($result); $row[product] a href=solution.php?id=$row[prob_title]$row[prob_title]/a

Re: [PHP] need phpmyAdmin but no so good

2001-10-04 Thread Steve Werby
[EMAIL PROTECTED] wrote: Webmin is a web-based administration interface for Unix systems but I need something like phpmyAdmin just for managing the info in databasesj ust listing dbs, tables, insert, delete, edit options; no create or alter tables and dbs. You could pretty easily remove the

Re: [PHP] Downloading Images

2001-10-04 Thread Roger Bryant
Hi Dave, Thanks for you prompt response. The Image is indeed a different length, (3k as opposed to the original 9k) I originally did have an error message appended to the downloaded image but that no longer appears to be the case. However the image is definitely truncated. Any ideas why this may

Re: [PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread Arpad Tamas
Try addslashes() before executing the query and stripslashes() when retrieving data from the db. See the online manual for more details. I think stripslashes() isn't needed when retrieving data from the db, it is needed only in the query string to protect special chars from interpretting

[PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Ben . Edwards
(From behind filing cabinet where I am ducking preparing for flames). Is it just me or is there anyone else that thinks PHP suffers from not being modular. Let me explain myself. If you write a module for a lot of procedural languages it sits on the filling system and is called up when it is

Re: [PHP] stripslashes

2001-10-04 Thread Caleb Carvalho
Steve, Thank you very much, i will try it now.. Caleb Carvalho Application Engineer LoadRunner/APM - Enterprise Testing and Performance Management Solutions

[PHP] Re: PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Oliver Ruf
Well about beeing modular... Have you ever programmed java ?? Java is very modular and everyting in java is programmed with classes. So... PHP also suports classes. Now you should be able to build your own modularity as you like it... Enough said... -Oliver [EMAIL PROTECTED] (Ben Edwards)

[PHP] MySQL tables are read-only

2001-10-04 Thread Alfredeen, Johan
My webhost recently migrated my site over to a new server and IP. Everything looks ok, except that all my MySQL tables now are read-only (at least that's the error I get when trying to delete or insert records). How do I change the tables back to write? Can I switch individual tables to write or

Re: [PHP] Downloading Images

2001-10-04 Thread David Otton
On Thu, 4 Oct 2001 07:51:59 -0700 (PDT), you wrote: different length, (3k as opposed to the original 9k) I originally did have an error message appended to the downloaded image but that no longer appears to be the case. However the image is definitely truncated. Any All the JPEGs I have here

[PHP] check if file is already in use before fopen

2001-10-04 Thread Matthew Luchak
Title: Blank Is there a way to verify if a file is in use by another user before fopening it? Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED]

[PHP] RE: check if file is already in use before fopen

2001-10-04 Thread Matthew Luchak
Title: Blank damn... RTFM. I just now discovered flock. Sorry 'bout that. ps. Don't flame me for being rude to the original poster. I am the original poster Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message-From:

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread php
On a conceptual level, I for one am a great fan of the kludge. Every piece of software is a trade off between performance and speed of development. You can have the fastest app in the world for $1,000,000 in development time OR you can write up a in-elegant solution in 5minutes ($50) and if its

RE: [PHP] php in css not working with IF's

2001-10-04 Thread Jason Dulberg
$site_style ranges from 1 - 11 $site_style 1 - 7,11 use the same css style. $site_style 8,9 use the same css $site_stylye 10 uses different css from them all. Thanks for your time. Jason -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: October 4, 2001 2:48 AM

Re: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Steve Edberg
At 4:48 PM +0200 10/4/01, [EMAIL PROTECTED] wrote: (From behind filing cabinet where I am ducking preparing for flames). Is it just me or is there anyone else that thinks PHP suffers from not being modular. Let me explain myself. If you write a module for a lot of procedural languages it sits

Re: [PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread Steve Werby
Arpad Tamas [EMAIL PROTECTED] wrote: I think stripslashes() isn't needed when retrieving data from the db, it is needed only in the query string to protect special chars from interpretting them as sql. I want to say this isn't true, but maybe that depends on the configuration of PHP (I'm

Re: [PHP] Using Array of classes as a class member variable?

2001-10-04 Thread Papp Gyozo
First some basic questions: (1) Can you create an unitialised array ? do you mean: $array = array(); // creates an empty array; (2) Can an unitinialised array be a class member variable ? for( $i = 0 ; $i 5; $i++) $array[] = new User(); I think it should work. I have a class

Re: [PHP] preg_replace

2001-10-04 Thread Oliver Ruf
It worked !! Thank you very much for your help! - Yours, Oliver [EMAIL PROTECTED] (Papp Gyozo) wrote in news:003701c14cf0$d7363300$01fdfea9@jaguar: $text = [LINK image.png]MyImage[/LINK]; $out = preg_replace (|\[LINK(.*)\](.*)\[/LINK\]|iU, 'a href=\1\2/a',$text); I hope, I don't forget

Re: [PHP] file maniputation??

2001-10-04 Thread Gerard Samuel
The code is being written for both Unix and windows boxes, so I had to include the 'b' option Maxim Maletsky (PHPBeginner.com) wrote: Not sure, but this 'wb' looks suspicious to me. From the manual: The mode may contain the letter 'b'. This is useful only on systems which

RE: [PHP] Re: PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Chris Bailey
Ben, I think you hit on one of the key points of PHP in the latter part of your email. My take is that PHP is designed to be quick to learn, quick to use, and somewhat simple (not in a bad way). I agree that as compared to most languages, more than usual is packed into the base system. But,

Re: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Rasmus Lerdorf
PHP on the other hand seems to load in ALL the code that MAY be run. i.e. an include brings things in which are inside an if, even if the if equates to false. That's not true. if(condition) include 'file'; That will only include the file if the condition is true. Very easy to verify for

[PHP] Flexible, Component-based and Large Application Systems in PHP

2001-10-04 Thread Lucas Persona
Greetings, I'd like to know if anyone has any material regarding the use of PHP on large projects that needs to be flexible and kind of 'component based' (like multiples modules) and what were the benefits and problems found during development/deployment/runtime. I think something like

Re: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Ben . Edwards
Exelent, as I said I was playing devels advicate, I like PHP a lot, I am trying to get someone else to use it to and they came up with this stuff. if(condition) include 'file'; Is exactly what I was looking for. As 'if () {}' loaded, or at least parsed things I did'nt think another form of

Re: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Rasmus Lerdorf
Exelent, as I said I was playing devels advicate, I like PHP a lot, I am trying to get someone else to use it to and they came up with this stuff. if(condition) include 'file'; Is exactly what I was looking for. As 'if () {}' loaded, or at least parsed things I did'nt think another form

Re: [PHP] Flexible, Component-based and Large Application Systemsin PHP

2001-10-04 Thread Tim
On Thu, 2001-10-04 at 13:51, Lucas Persona wrote: I'd like to know if anyone has any material regarding the use of PHP on large projects that needs to be flexible and kind of 'component based' (like multiples modules) and what were the benefits and problems found during

[PHP] ad rotation program

2001-10-04 Thread Joseph Bannon
Has anyone on this list developed an ad rotation program in PHP? Joseph -- 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

[PHP] Re: [PHP-DEV] Bug #13545: oci8 compile problem

2001-10-04 Thread Markus Fischer
Please ask on [EMAIL PROTECTED] or php-install@ Is this patch against the glibc 2.2x problem? - Markus On Thu, Oct 04, 2001 at 06:26:10PM -, [EMAIL PROTECTED] wrote : From: [EMAIL PROTECTED] Operating system: LINUX RH 7.1 PHP version: 4.0.6 PHP Bug Type: Oracle

Re: [PHP] ad rotation program

2001-10-04 Thread Wandrer
At 01:37 PM 10/4/01 -0500, you wrote: Has anyone on this list developed an ad rotation program in PHP? Joseph PHP General Mailing List (http://www.php.net/) Joseph, dotBanner ( http://www.dot-banner.com ) is the one that I work on. We have your script pushing well over 6 million impressions

[PHP] popup window under php

2001-10-04 Thread Tim Sawyer
I want to open a popup window under php control. So lets say I have an if statement which if true opens the window. if ($something) { JavaScript:window.open(test.php,blah...); } Guess I'm saying that I want to call a Javascript function without the user clicking on anything. -- PHP

Re: [PHP] ad rotation program

2001-10-04 Thread Matt \TrollBoy\ Wiseman
I use phpAds.. it works well enough despite its lack of features.. Matt TrollBoy Wiseman Webmaster: Shoggoth.net Site Designer: phpslash.org The oldest and strongest emotion of mankind is fear, and the oldest and strongest kind of fear is fear of the unknown. -H.P. Lovecraft

[PHP] Re: popup window under php

2001-10-04 Thread Henrik Hansen
[EMAIL PROTECTED] (Tim Sawyer) wrote: I want to open a popup window under php control. So lets say I have an if statement which if true opens the window. if ($something) { JavaScript:window.open(test.php,blah...); } Guess I'm saying that I want to call a Javascript function

Re: [PHP] Re: popup window under php

2001-10-04 Thread Thomas Deliduka
You could also wait for the page to load and then invoke the JS by putting an onLoad=function_name() in the 'BODY' tag of the document. On 10/4/2001 3:58 PM this was written: [EMAIL PROTECTED] (Tim Sawyer) wrote: I want to open a popup window under php control. So lets say I have an if

[PHP] session.cookie_lifetime

2001-10-04 Thread Ben-Nes Michael
Hi All I configured apache + php on debian system The problem is that session is not destroyed when the browser closed. the php.ini is /usr/local/lib and working ( i tried to see if its affecting by putting engine = On to Off ) in php.ini this is set to 0 = session.cookie_lifetime = 0 /tmp

Re: [PHP] check if file is already in use before fopen

2001-10-04 Thread Jason Stechschulte
On Thu, Oct 04, 2001 at 11:10:56AM -0400, Matthew Luchak wrote: Is there a way to verify if a file is in use by another user before fopening it? As far as I know this is something you have to program in yourself. If you are only worried about your programs accessing the file, then it is a

[PHP] PHP Warning: Unable to load dynamic library

2001-10-04 Thread Edson Toshiya
Hi, I'm trying to load ming as a module of PHP, but I get an error when loading apache: PHP Warning: Unable to load dynamic library './php_ming.so' - ./php_ming.so: cannot open shared object file: No such file or directory in Unknown on line 0 Can someone help me ? Thanks, ET -- PHP

Re: [PHP] RE: This is SOOOO FREAKY!!! Laughed like HELL !!! :-)

2001-10-04 Thread Chris Hayes
According to him, if you add '?=PHPE9568F36-D428-11d2-A769-00AA001ACF42' http://www.phpbuilder.com/mail/php4-beta/24/0796.php --- - -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --

Re: [PHP] howw do I programm a PREV Next mechanism in PHP? Help Please!!

2001-10-04 Thread Lasse
Steve Werby [EMAIL PROTECTED] wrote in message news:0c3701c14d18$3505c910$6401a8c0@workstation7... [SNIPs] http://www.tysonchandler.com/news_3.html (that's an underscore, not a space). Is it just me or is this site blazingly fast? Are you using some cache-tricks or something? Or du you just

RE: [PHP] ad rotation program

2001-10-04 Thread Michael Geier, CDM Systems Admin
check out Oasis on Freshmeat...I haven't used it, but I did notice it on there. also, as already posted, PHPads. -Original Message- From: Wandrer [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 2:12 PM To: Joseph Bannon Cc: [EMAIL PROTECTED] Subject: Re: [PHP] ad rotation

[PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread Chris Aitken
Hi all, I have looked into the archives but im not sure what im searching for so I decided to ask here. What I want to do is, on my FreeBSD box running PHP and MySQL, to have a system which will take any email sent to a specific address, and pipe the body of the email to PHP (or even to a

Re: [PHP] newbie - some simple questions

2001-10-04 Thread John A. Grant
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Thanks for the help tips. I guess I'll use .inc for files that are included (as opposed to being run directly) and block access to them at the server level. Hmm, since the

RE: [PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread rick fletcher
There's a good php POP3 class available here: http://www.thewebmasters.net/php/POP3.phtml That will enable you to log into your mail server and retrieve a mail message from it. -Original Message- From: Chris Aitken [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 2:54 PM

[PHP] read file twice or read into array once?

2001-10-04 Thread John A. Grant
I have a file containing ~100 lines of text, each perhaps 100-200 characters in length. I need to retrieve line $n from the file, where: $n = $julianday % $nlines; $julianday = today's date (from localtime[7]) $nlines = no. of lines in the file Method A 0. fopen() the file 1. read the file

Re: [PHP] check if file is already in use before fopen

2001-10-04 Thread Brian White
Check out the flock fucntion At 16:20 4/10/2001 -0400, Jason Stechschulte wrote: On Thu, Oct 04, 2001 at 11:10:56AM -0400, Matthew Luchak wrote: Is there a way to verify if a file is in use by another user before fopening it? As far as I know this is something you have to program in

[PHP] stupid newbie question

2001-10-04 Thread Paul Procacci
How do u fork? Thanks ahead of time : ) -- 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] php, files, ownership....(was file manipulation)

2001-10-04 Thread Gerard Samuel
Ok, I found out what was causing some of the people who were using my script and have it fail. They are on a shared server and apache is being run as user nobody, so therefore the script is being run as nobody. But the the files has to have user ownership foo foo. Is it at all possible to have

Re: [PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread ReDucTor
Most mail servers use qmail, so i will explain how to do it with qmail For your qmail accounts, you will have .qmail files(e.g. .qmail-default .qmail-webmaster and so on), open one of these files, now add the bottom of it |preline /path/to/php /path/to/script.php or you can do it with perl the

RE: [PHP] ad rotation program

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
Have you looked into phpAdsNew? www.sf.net And search for it there Maxim Maletsky www.PHPBeginner.com -Original Message- From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]] Sent: giovedi 4 ottobre 2001 23.39 To: Wandrer; Joseph Bannon Cc: [EMAIL PROTECTED]

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
(From behind filing cabinet where I am ducking preparing for flames). Is it just me or is there anyone else that thinks PHP suffers from not being modular. It is just you and some other people similar to you. Thought this question was up for a while :-) PHP on the other hand seems to

[PHP] Proposal

2001-10-04 Thread Ralph Guzman
I currently thinking on doing some freelance PHP programming and web design for somebody. I have a pretty good idea on how much I will be chargin, however I am looking at putting this in writing. I was wondering if anybody had any example proposals/bids or web liks to where I can find such

[PHP] ereg checking if its only numbers

2001-10-04 Thread Chris Aitken
Ive been playing around with ereg for about half an hour and having no joy because I dont really understand the medhod behind it and how it all works. But what im trying to do is check to see if a 9 digit string is all numbers and nothing else $string1 = 123456789 $string2 = 123456abc how

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
PHP on the other hand seems to load in ALL the code that MAY be run. i.e. an include brings things in which are inside an if, even if the if equates to false. A quick check in the manual, it states that: Unlike include(), require() will always read in the target file, even if

RE: [PHP] ereg checking if its only numbers

2001-10-04 Thread Jack Dempsey
if(!preg_match(/^\d+$/,$string){ echo $string has something other than a number; } -Original Message- From: Chris Aitken [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 9:34 PM To: PHP General Mailing List Subject: [PHP] ereg checking if its only numbers Ive been

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
Of cource changing the require with include would explain everything :-) Sorry, forgot to mention that :-) Maxim Maletsky www.PHPBeginner.com -Original Message- From: Maxim Maletsky (PHPBeginner.com) [mailto:[EMAIL PROTECTED]] Sent: venerdì 5 ottobre 2001 3.33 To: 'Opec Kemp';

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread php
I think the implication of the oringal poster was not the include/requires stuff, but more a build of PHP with --enable-100 options vs php-sharedetc -Original Message- From: Maxim Maletsky (PHPBeginner.com) [mailto:[EMAIL PROTECTED]] Sent: Friday, 5 October 2001 11:33 AM To:

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
conditionally load the function/files that you want then you should use include(). Was the implication of the poster I replied to. To the original I replied commenting each of his arguments, therefore I knew his points. Maxim Maletsky www.PHPBeginner.com -- PHP General Mailing List

RE: [PHP] ereg checking if its only numbers

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
With ereg it could be: if(ereg(^[^[:digit:]]+$)) echo 'something else came through'; Untested though ... Maxim Maletsky www.PHPBeginner.com -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: venerdì 5 ottobre 2001 3.42 To: Chris Aitken; PHP General

[PHP] Change linux password using php

2001-10-04 Thread Sigurd Magnusson
What is the best way to change linux passwords using a web .PHP interface? I currently allow FTP access to php enabled webhosting sites; which use safe mode, thus use real linux accounts. Thus far I thought I would: Write a real short C program which would call allow to go setpasswd

[PHP] Re: Restrict where PHP is Usable?

2001-10-04 Thread Sigurd Magnusson
Richard Lynch wrote: httpd.conf php_value Engine Off or somesuch... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

Re: [PHP] ereg checking if its only numbers

2001-10-04 Thread Evan
try: ? if(ereg([0-9]{9}, $string)){ echo Success, 9 numbers!; } else { echo Failure, not 9 numbers.; } ? There is a great book on regular expressions by o'reily. Evan *** REPLY SEPARATOR *** On 10/5/01 at 11:33 AM Chris Aitken wrote: Ive been playing around

[PHP] System(), exec(), Passthru(), etc

2001-10-04 Thread ReDucTor
I can't seem to get a return value, while using the functions, it just puts a 0 on the page, i try putting a br after i do the system call, still all that is on the page, 0, something is wrong, anyone know why?!? I got no telnet access, and i want to do some cron jobs :D - James ReDucTor

Re: [PHP] System(), exec(), Passthru(), etc

2001-10-04 Thread David Robley
On Fri, 5 Oct 2001 13:19, ReDucTor wrote: I can't seem to get a return value, while using the functions, it just puts a 0 on the page, i try putting a br after i do the system call, still all that is on the page, 0, something is wrong, anyone know why?!? I got no telnet access, and i want

[PHP] Email Processors Wanted Immediately!!!

2001-10-04 Thread terrycrowe_webdirect2001
Dear [EMAIL PROTECTED], WE are looking for serious inquires from individuals who want to make a difference!!! Our company is offering an opportunity for individuals who want to become an E-Mail PROCESSOR. Work from home and be apart of this tremendous opportunity to sustain an income of your

Re: [PHP] System(), exec(), Passthru(), etc

2001-10-04 Thread ReDucTor
echo System(crontab -l, $var).br; echo $var; - Original Message - From: David Robley [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, October 05, 2001 2:21 PM Subject: Re: [PHP] System(), exec(), Passthru(), etc On Fri, 5 Oct 2001 13:19, ReDucTor

Re: [PHP] Change linux password using php

2001-10-04 Thread Evan Nemerson
First off, if you don't already know, the linux passwords are stored in the /etc/passwd file (unless you have a shadow suite installed, in which case /etc/shadow would be a good bet.) Basing this on a shadow file, the file is a text document with one user per line. The entries are stored in

RE: [PHP] php in css not working with IF's

2001-10-04 Thread Jason Dulberg
I just want to thank everyone who helped me get the css stuff to work. All of the IF statements are now working properly --- I've certainly learned a lot from all the messages. thanks again... Maxim Maletsky Rasmus Lerdorf and all others who responded to my message! __ Jason

Re: [PHP] popup window under php

2001-10-04 Thread Naintara Jain
You have the same requirement Put this wherever you want in your script. ?php if (true) // whatever the condition { echo script language=JavaScript alert('Message!') /script; } ? - Original Message - From: Eduardo Kokubo [EMAIL PROTECTED] To: Naintara Jain [EMAIL

Re: [PHP] Namo Web Editor

2001-10-04 Thread Joel Ricker
I always depreciated WYSIWYG software, especially when they mention those things about HTML. HTML is the alphabet of the internet and as such should be well known by any webmaster and whoever else is interested in this kind of software. Still, it feels like it is better than Dreamveawer

Re: [PHP] Re: images no appearing

2001-10-04 Thread Joel Ricker
To see exactly what image functions that are or aren't available to you, try running this script. ?php $func= array(GetImageSize, ImageArc, ImageChar, ImageCharUp, ImageColorAllocate, ImageColorDeAllocate, ImageColorAt, ImageColorClosest, ImageColorExact, ImageColorResolve , ImageGammaCorrect,

[PHP] cgi bug workaround

2001-10-04 Thread James Peter Gregory
hi all, I've been asked to do some work on some servers where php can only run as cgi. Unfortunately it seems that php has a bug which means that #!/usr/local/bin/php gets printed out at the top of each page if I do this. Are there any workarounds for this? Is it fixed in the cvs versions?

[PHP] Re: help! linux 7 problems

2001-10-04 Thread Richard Lynch
Did you uncomment the LoadModule/AddModule for PHP? Or add an Action line?... AddType is only half the puzzle piece... It sets up a mime-type (application/x-httpd-php) for an extension (.php) but doesn't say what to *DO* with that mime-type. -- WARNING [EMAIL PROTECTED] address is an

[PHP] Re: Really need HELP on PHP install Error in make

2001-10-04 Thread Richard Lynch
I'm no expert install guy, but... I believe errno.h should be in one or more of these places where PHP can find it: /usr/include /usr/src/linux-blah-blah-blah Or, try this: updatedb might take a while locate errno.h Figure out why errno.h isn't where PHP expects it to be, and make it

  1   2   >