Re: [PHP] chmod error?

2002-04-09 Thread Henrik Hudson
Hello. First off, to change ownership you want "chown", not "chmod". Also, chown isn't always permitted depending on the cicrumstances of who owns the directory or the specific file to begin with. If you're web server is running as nobody it will only be able to create files in a directory

[PHP] chmod error?

2002-04-09 Thread John Weez
Hi all...I want to change the ownership of a file that is created via php..so i uses chmod command in my php script.. Upon execution of the script i get an error saying command not permitted with a line number pointing to my chmod command. I'm running apache as user nobody for security reaso

[PHP] allowed tags reg exp

2002-04-09 Thread Justin French
Hi all, Further to a discussion we had yesterday about the danger of onLoad, onMouseOver, etc etc of allowed tags when using strip_tags(), I've decided to look at the issue from another angle. For the limited set of tags I usually allow on user input, , I'm going take the approach of deleting an

[PHP] unserialize_callback_func

2002-04-09 Thread Ian
i am using the following to try to pull in php classes from separate files based on their names using unserialize_callback_func. I cant seem to get it to work with 4.1.6 on redhat (should work). I notice that it isnt shown under variables available for unset() but it is shown for unserialize()

Re: [PHP] sablotron XMl XSLT

2002-04-09 Thread Yasuo Ohgaki
Matthew Luchak wrote: > Thanks Ray but what I need to know is if there is indeed a better way than what >I've tried to test if sablotron has been complied or not. http://www.php.net/manual/en/function.get-loaded-extensions.php http://www.php.net/manual/en/function.get-extension-funcs.php Y

Re: [PHP] includes

2002-04-09 Thread Tom Rogers
Hi That goes into each php page. It gets the standard phpinclude directory then appends your local one using ":" as the seperator. It does not affect any other php pages only the one it is used in. Tom Where do you place that function call? In the script you're running, or in the php.ini file? Th

[PHP] Weird Session headers

2002-04-09 Thread S.Murali Krishna
Hi! In short the problem Iam facing is this. When I send a excel file to IE browser using php, Iam using the following header info. header ( "Content-Type: application/x-msexcel" ); Its all ok. but when I send this header along with SESSION HANDLING HEADERS, IE was unable download the

[PHP] no mod_dbase on FreeBSD?

2002-04-09 Thread Jeff D. Hamann
PHP Group: I'm having a devil of a time adding additional modules to php using the ports method. Since I'm a little new to FreeBSD, I thought thew ports method would be the easiest. I attempt to do a Make install (cleanly) and get the box that comes up asking which modules to install, I select th

Re: [PHP] Downloading files

2002-04-09 Thread Jason Wong
On Wednesday 10 April 2002 08:54, Jim Koutoumis wrote: > Using this method,.. works OK if you choose to save the file, however if > you choose to open the file you get a weird behaviour where IE says it > can't find the file and a subsequent prompt to create a new one. Does > anyone know why it do

[PHP] how to send an email to everone listed in a file

2002-04-09 Thread Police Trainee
Hi all. I really wish I could contribute here and help people out too but i don't know a fraction of the stuff that you gurus do. I try not to bug you all with too many questions and try to figure it out/learn on my own as much as possible. I am trying to figure out how i could send an email to

[PHP] Scoping functions in PHP

2002-04-09 Thread Eric Starr
I am a Java programmer learning PHP. In Java you can have a class that contains public and private functions. Only the public functions are accessible outside of the class. Does PHP have a way to hide functions within a class (i.e. make the private)? My concern is that there are some functio

[PHP] Empty HTML problem

2002-04-09 Thread ayukawa
Hello, I have a big problem around login script. I made an authentication site with PHP using PHP session. I use my own session handler that store session data into MySQL DB. It worked well on Win2000+Apache. But the problem occured when I put the scripts on TurboLinuxServer7+ Apache. login aut

[PHP] Re: Help, anyone else using GD2 & php 4.1.2 ?

2002-04-09 Thread Matt Parlane
http://bugs.php.net/bug.php?id=15568 This bug has been fixed in the latest RC - if you really need this functionality, you could use RC2 available at www.php.net/~derick or wait until 4.2.0 is realeased which is due to be on the 22nd of this month. Matt "Mark W. Humphries" <[EMAIL PROTECTED]> w

RE: [PHP] Dealing with Query String

2002-04-09 Thread Maxim Maletsky
Once your query (whatever it is) was composed, append this: " order by $by $order"; so, in this example it could be looking to you something like this: $query = 'bla bla language and page'; if(!$by) { $by = 'name_field'; if(!$order) $order = 'desc'; } $qu

[PHP] php 4.0.6 file upload security fix

2002-04-09 Thread peter
I have been running a php script via a web interface that included mkdir() with a chmod to 775 and a subsequent file upload via a form to the newly created directory. It had been running fine without problems for over a year. Now, although I can mkdir(), the chmod defaults to 755 and the I receiv

RE: [PHP] Dealing with Query String

2002-04-09 Thread Vladislav Kulchitski
Privit Maxim, I understand your approach... i.e. I can hardcode it in the links, but what if I will add more variables in a query string... note in the query string there are variables that are not really related to the operation with the table, rather language ($lang=), page ($page=)... for now

[PHP] Re: PCRE - catching a caracter set in a negative class

2002-04-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Maxim Maletsky) wrote: > I was scratching my head to accomplish the following perl regular > expression. It doesn't want to catch me [^\{php}]. From what I understood > reading the docs this is because in a negative class the caracters are bei

[PHP] LOBS with CURSOR_SHARING=FORCE gives core dumpf

2002-04-09 Thread Prince Kumar
I have the following php code. If I add the parameter CURSOR_SHARING=FORCE in my init.ora and while executing the program I get the "Segmentation fault". /usr/local/php4/bin/php -q curshare.php Segmentation fault (core dumped) Is there any work-around for this? Is this a bug? This seems to be h

RE: [PHP] Dealing with Query String

2002-04-09 Thread Maxim Maletsky
In your PHP: On every click collect two variables: $by and $order then, call for this query: Select field from table where this=that order by $by $order; Make sure both variables have their default values in case there was nothing selected. You don't really need a function for this, just

[PHP] Help, anyone else using GD2 & php 4.1.2 ?

2002-04-09 Thread Mark W. Humphries
Any help with this problem would be greatly appreciated. I'm running PHP 4.1.2 on Win 2000 and Apache. The following snippet runs perfectly when I use php_gd.dll but generates a garbled warning message when I switch the extension to php_gd2.dll. The only change I make to my setup is the correspo

Re: [PHP] PHP 4.2.0 RC2 + Apache 2.0.35 .. DirectoryIndex problem

2002-04-09 Thread Austin Gonyou
do you have the SetInputFilter and SetOutputFilter lines set? On Tue, 2002-04-09 at 15:56, Adam Plocher wrote: > So I just got PHP 4.2.0 RC2 and Apache 2.0.35 almost completely working. > The only problem I am having now, is Apache's DirectoryIndex option. > Whenever I add index.php to that (like

[PHP] LOBS with CURSOR_SHARING=FORCE gives core dump on Oracle 8.1.7.2

2002-04-09 Thread Prince
I have the following php code. If I add the parameter CURSOR_SHARING=FORCE in my init.ora and while executing the program I get the "Segmentation fault". $ /usr/local/php4/bin/php -q curshare.php Segmentation fault (core dumped) Is there any work-around for this? Is this a bug? This seems to b

[PHP] Dealing with Query String

2002-04-09 Thread Vladislav Kulchitski
Hi, I need some help with query string. Basically what I am doing is I am sorting my table, much like you sort columns in OUTLOOK EXPRESS for instance with a little arrow... http://www.kulchitski.com/btl/btl.php?lang=eng&page=talkroom_show&sort=s ex So all I need a function that will grab this

[PHP] PCRE - catching a caracter set in a negative class

2002-04-09 Thread Maxim Maletsky
Hi all, I was scratching my head to accomplish the following perl regular expression. It doesn't want to catch me [^\{php}]. From what I understood reading the docs this is because in a negative class the caracters are being taken litteraly one by one and not as a set. I tied to enclose them

Re: [PHP] PHP 4.2.0 RC2 + Apache 2.0.35 .. DirectoryIndex problem

2002-04-09 Thread Rasmus Lerdorf
Sounds like an Apache bug to me. On Tue, 9 Apr 2002, Adam Plocher wrote: > So I just got PHP 4.2.0 RC2 and Apache 2.0.35 almost completely working. > The only problem I am having now, is Apache's DirectoryIndex option. > Whenever I add index.php to that (like I would do in Apache 1.3), I get a >

[PHP] PHP 4.2.0 RC2 + Apache 2.0.35 .. DirectoryIndex problem

2002-04-09 Thread Adam Plocher
So I just got PHP 4.2.0 RC2 and Apache 2.0.35 almost completely working. The only problem I am having now, is Apache's DirectoryIndex option. Whenever I add index.php to that (like I would do in Apache 1.3), I get a 403 error every time I visit my site. When I look in my errorlog I see this: [S

Re: [PHP] Php/Pdf application

2002-04-09 Thread Justin French
I don't believe you can do "1", and i'm not clear on what you're asking in "2". I've found Adobe's security stuff to be perfectly adequate. It gives you the options on what to allow them to do -- separate passwords can be assigned for viewing and modifying the file, and you can prevent any/all o

Re: [PHP] Downloading files

2002-04-09 Thread Jim Koutoumis
Using this method,.. works OK if you choose to save the file, however if you choose to open the file you get a weird behaviour where IE says it can't find the file and a subsequent prompt to create a new one. Does anyone know why it does this and how to overcome it ? At this stage I've resorted t

Re: [PHP] includes

2002-04-09 Thread Tom Rogers
Hi You can do something like this: ini_set ("include_path",ini_get("include_path").":second_include_path"); Tom At 07:05 AM 10/04/2002, Robert Abbate wrote: >I have a directory with php files that I incorporate into my website as >libraries via a php_include() call, I would like the path to inc

[PHP] Re: shopping cart suggestions

2002-04-09 Thread phplists
Check out the cart at survivalherbs.com.. It's all just php... It uses a template for the page look (which hasn't been edited on that site yet). "Eugene Lee" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Apologies if this is an oft-repeated question, but coul

[PHP] shopping cart suggestions

2002-04-09 Thread Eugene Lee
Apologies if this is an oft-repeated question, but could anyone recommend a PHP/MySQL shopping cart (free or commercial) that works pretty well, decently customizable, and doesn't depend on additions beyond the standard PHP distribution (e.g. PHPlib). The PHP Knowledge Base

[PHP] Re: splitting array values into usable chunks..

2002-04-09 Thread phplists
Nevermind.. I wasn't being very smart.. I got it.. Thanks, Bob <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have got this almost all the way where I need it.. Partly from the php.net > function list and partly from searching the archives here.. Now I'm at

Re: [PHP] AS/400 data access

2002-04-09 Thread Matt
Then, why not install the IBM odbc driver that comes with Client Access for Windows and use it? - Original Message - From: "Collins, Robert" <[EMAIL PROTECTED]> To: "'Matt Schroebel'" <[EMAIL PROTECTED]>; "Collins, Robert" <[EMAIL PROTECTED]>; "'Rance Hall'" <[EMAIL PROTECTED]>; <[EMAIL P

[PHP] splitting array values into usable chunks..

2002-04-09 Thread phplists
I have got this almost all the way where I need it.. Partly from the php.net function list and partly from searching the archives here.. Now I'm at a point where I don't quite know how to finish it.. Any help would be greatly appreciated. I use functions to gather the subdirectory names in the cw

[PHP] auth,perm,content management

2002-04-09 Thread Dennis Gearon
So where is the PHP world headed right now regarding: Database abstraction Authorization Permissions Content Management How is PHPLib doing versus PEAR? Are the database abstractions schemes, (metabase), etc, still duking it out? I'm about to start a site that nee

RE: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Maxim Maletsky
I don't think this is his case. Say, some site on geocities wants to get on and manipulate his BB while showing it's own Geocities URL. What would it have to do with apache? It is rather like using frames. (or JavaScript of some kind) Maxim Maletsky > -Original Message- > Fro

RE: [PHP] AS/400 data access

2002-04-09 Thread Dan Vande More
Thanks Mr. Collins, I wish that would have been about 7 months ago when I did everything:) I used those three articles and a couple more to get it done, but the directions look great. -Original Message- From: Collins, Robert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 3:24

RE: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Dan Harrington
Sounds to me like an Apache Alias Directive is what you need. can you get at your apache configuration? :-) http://httpd.apache.org/docs/mod/mod_alias.html > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 09, 2002 4:22 PM > To: Kevin Stone > Cc

Re: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 05:44 PM, Kevin Stone wrote: > Here's a crazy question. Say I have a script (such as a bulliten board > script) that is run by many clients (other websites) off of one location > on my web account. Think of it as a service of some kind. Is there > anyway to tric

Re: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Kevin Stone
The client's website is not guarenteed to have PHP available so I can't use include(). Frames is a possibility though. I can see how that would work nicely. Dang why didn't I think of that before? *LOL* Well let me know if you have any more ideas. :) -Kevin - Original Message - From:

RE: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Maxim Maletsky
Use include(). Except, for the fact that, this will be: include("http://www.yourBB.com/bb.php?this=that&that=is-not-this";); I don't know how are you going to manage the links though. You might want to write a client-server app to do that. Alternatively, you could simply put it in the frames.

[PHP] Manipulate the address field in the browser?

2002-04-09 Thread Kevin Stone
Here's a crazy question. Say I have a script (such as a bulliten board script) that is run by many clients (other websites) off of one location on my web account. Think of it as a service of some kind. Is there anyway to trick the browser into displaying the client's domain rather than my ow

RE: [PHP] AS/400 data access

2002-04-09 Thread Collins, Robert
Thanks. Unfortunately this project is on a windows based platform, but this may head me in the right direction. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Matt Schroebel [mailto:[

RE: [PHP] php and wml

2002-04-09 Thread Nathan Cassano
Introduction to WML, Apache, and PHP http://www.phpbuilder.com/columns/mike20010118.php3 Building dynamic WML sites http://www.phpbuilder.com/columns/baravalle20010221.php3 -Original Message- From: Starman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 1:00 PM To: [EMAIL PROT

Re: [PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread M
Robert Cummings wrote: > M wrote: > > > > I have stored lot of images into BLOB Mysql fields, and need recover it > > to resize. How can I create some image pointer from string stored into > > BLOB field? > > > > Thanks > > > > Miguel > > imagecreatefromstring() seems to be the candidate... howev

[PHP] includes

2002-04-09 Thread Robert Abbate
I have a directory with php files that I incorporate into my website as libraries via a php_include() call, I would like the path to include my library directory so I can include the library files from any directory. There is no way to overload php's include path on a user by user basis? Thanks

[PHP] popen(); problem, the function don`t finds the command...

2002-04-09 Thread Hermann
Hi!! i`ve wrote a little script to run under shell, so this script: #!/usr/bin/php $saslpasswd = "/usr/sbin/saslpasswd -p $username"; $saslproc = popen($saslpasswd,"w"); fputs($saslproc, $passwd); pclose($saslproc); php-parser gives me the following as output: # sh: /saslpasswd: No such file or

Re: [PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread Robert Cummings
M wrote: > > Hello, you know all GD functions work via image pointer , which appoints > to some file, or else empty image > > $img_pointer = imagecreatefromjpeg("$image_file_name"); > > or > > $img_pointer = imagecreate($width,$height); > > I have stored lot of images into BLOB Mysql fields,

RE: [PHP] php and wml

2002-04-09 Thread Hunter, Ray
You can you just need to have php handle the wml pages and supply the correct headers... RAY HUNTER Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Starman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 2:00 PM To: [EMAIL PROTECTED] Subject: [PHP] php and wml

[PHP] php and wml

2002-04-09 Thread Starman
Can anyone tell me if it is possible to write php scripts withing wml pages? I need to design a wireless site (wap) and the form will be writing to a mysql db using php. Is there any difference in doing this than with html? TIA Milt Rodriguez Stellar Design http://stellardesign.com -- PHP

[PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread M
Hello, you know all GD functions work via image pointer , which appoints to some file, or else empty image $img_pointer = imagecreatefromjpeg("$image_file_name"); or $img_pointer = imagecreate($width,$height); I have stored lot of images into BLOB Mysql fields, and need recover it to resize. H

Re: [PHP] sockets and flush()

2002-04-09 Thread Robert Cummings
Hmmm I'm no expert on web IO between Apache and PHP, but my guess is that Apache is holding the data and waiting for more. To verify this I recommend that you try running from a shell cgi and see if your string is flushed to stdio as it should. I remember running into a similar problem one time wh

Re: [PHP] skipping a WHILE loop in mysql_fetch_*()

2002-04-09 Thread Robert Cummings
Erik Price wrote: > > I have always retrieved database information using the following general > format: > > mysql_connect($host, $user, $password); > mysql_select_db($database); > $query = "select * from table"; > $result = mysql_query($query); > while ($row = mysql_fe

[PHP] Re: skipping a WHILE loop in mysql_fetch_*()

2002-04-09 Thread Julio Nobrega Trabalhando
For example: $sql = "SELECT id FROM table WHERE name = '$name'"; $res = mysql_query($sql) or exit (mysql_error()); list ($id) = mysql_fetch_array($res); That's it, use list() to make a variable, from mysql_fetch_array(). Very useful indeed for one line returns :-) More than one column: $sq

[PHP] skipping a WHILE loop in mysql_fetch_*()

2002-04-09 Thread Erik Price
I have always retrieved database information using the following general format: But sometimes I am searching for something specific, with a primary key as my WHERE clause. In other words, I will only EVER get one result. In this case, a while loop seems to be overkill, since it will only

[PHP] Re: session problem?

2002-04-09 Thread Mauricio Sthandier
I have the same problem... I thought it was for a different reason... If you got a solution please email me !!! "Bob" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 1.php?2.php > session_start();

RE: [PHP] PHP.ini Session section

2002-04-09 Thread Matthew Luchak
sure, I've had it working before... what's the hang-up. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Mauricio Sthandier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 4:17 PM To: [EMAIL PROTECTED] Subject: [PH

Re: [PHP] PHP.ini Session section

2002-04-09 Thread Richard Baskett
Always move to linux from Windows for your server needs :) Rick "If you're going to be able to look back on something and laugh about it, you might as well laugh about it now." - Marie Osmond > From: "Mauricio Sthandier" <[EMAIL PROTECTED]> > Date: Tue, 9 Apr 2002 16:16:38 -0400 > To: [EMAIL PR

[PHP] PHP.ini Session section

2002-04-09 Thread Mauricio Sthandier
Does anybody have a Session section of the php.ini working on Windows 2000 ? I'm not able to make my session persistent along pages... perhaps a bad configuration of IIS ? Should I move to Linux ? :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

RE: [PHP] AS/400 data access

2002-04-09 Thread Matt Schroebel
I just did this on a Linux box running Red Hat 7.2 last Friday. I used several sources on the web and wrote up my exact steps and posted them at http://www.php-faq.com/as400.html The other sources are quoted in that document. Keep in mind, it's not the final version of the document, and I'd

Re: [PHP] Assigning unique form names...

2002-04-09 Thread Jason Wong
On Wednesday 10 April 2002 03:20, Jas wrote: > Here is what I need some information about, the script below opens a > directory on the server, reads the files and places them into select > boxes > within a form, now I have this echoed multiple times on the page like > so... Now I have tried to ass

Re: [PHP] order of evaluation

2002-04-09 Thread Erik Price
Hey I'm sorry Dan and everyone, I realize my mistake -- if you're curious it's in my if/elseif/else chain, I explain the problem below (scroll down): Erik On Tuesday, April 9, 2002, at 03:00 PM, Erik Price wrote: > > Hm. I threw in a test echo statement in the class method, to make sure >

Re: [PHP] order of evaluation

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 12:24 PM, Analysis & Solutions wrote: > Yo Erik: > > On Tue, Apr 09, 2002 at 11:39:31AM -0400, Erik Price wrote: >> >> elseif (!empty($_POST['newpassword']) && >> !$user->set_password($_POST['newpassword'])) > > Your order of evaluation is correct. But, considerin

RE: [PHP] Re: sablotron XMl XSLT

2002-04-09 Thread Matthew Luchak
thanks. did the trick. no sablotron. :( Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] You could use function_exists() to test if xslt_create() is a defined function. If not, then error out. If so, carry on. It's not limited to sablotron checking -

RE: [PHP] sockets and flush()

2002-04-09 Thread Matthew Luchak
Are you using ob_start () and ob_end_flush() ? If not then declaring ob_start () as the very first "mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 5:39 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] sockets and flush() no tables. my test script prints a single stri

Re: [PHP] mailing address regexp

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 02:44 PM, JSheble wrote: > I ask this here because PHP developers are notoriously famous for > knowing RegExp... the project in question isn't for PHP, but perhaps > you can still be a bit of a help? > > I need help in formulating a RegExp that'll detect PO Box a

RE: [PHP] Re: php+myslq+IDE

2002-04-09 Thread Brian Drexler
I'm a big Edit Plus fan as well. Really though, it's just a fancy text editor with color coding and autocompleting, and IMHO the autocompleting can get annoying fast. However I have yet to find anything better. Anyone know of anything worth while? -Original Message- From: Joel Colombo

[PHP] Re: sablotron XMl XSLT

2002-04-09 Thread Michael Kimsal
Matthew Luchak wrote: > PHP 4.1.2 > SunOS web-unix1 5.7 > apache_1.3.22 > > > I'm trying to parse XML/XSL on a shared box and I'm using : > > $xslthandler = xslt_create() or die("Can't create XSLT handle!"); > > to test for sablotron. Unfortunately I just get a "Call to undefined > func

RE: [PHP] sablotron XMl XSLT

2002-04-09 Thread Matthew Luchak
Thanks Ray but what I need to know is if there is indeed a better way than what I've tried to test if sablotron has been complied or not. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Hunter, Ray [mailto:[EMAIL

[PHP] mailing address regexp

2002-04-09 Thread JSheble
I ask this here because PHP developers are notoriously famous for knowing RegExp... the project in question isn't for PHP, but perhaps you can still be a bit of a help? I need help in formulating a RegExp that'll detect PO Box addresses... the problem is the many different ways a PO Box can b

[PHP] flock and unix/apache

2002-04-09 Thread Matthew Luchak
PHP 4.1.2 SunOS web-unix1 5.7 apache_1.3.22     I'm porting from WIN2000 to Apache/Unix and having problems with the flock() function.  The following :   $fd = fopen ($file, "r");if (flock($fd, 2)) {   ...}     "if" statement never returns true...  any ideas? ___

[PHP] Re: php+myslq+IDE

2002-04-09 Thread Joel Colombo
go download.com get EditPlus the trial runs up and still works without limit. very cool program "Javier" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there any free app. for php coding? I tried komodo but I can't get it > to work in debug mode. Also

[PHP] Anyone out there ever tried this?

2002-04-09 Thread Nick Richardson
I'm trying to bind a script to a machine. So, esentially, the script will only be able to run on a system that it's told it can run on. The information for this will be stored in some for of license file as data encrypted by mcrypt and will have to be fairly easy to retrieve/create. Can anyone

RE: [PHP] sockets and flush()

2002-04-09 Thread Dietrich Ayala
no tables. my test script prints a single string prior to the sockets code. thx, dietrich > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 09, 2002 11:12 AM > To: dietrich > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] sockets and flush()

RE: [PHP] sablotron XMl XSLT

2002-04-09 Thread Hunter, Ray
You need to check if you have sablotron compiled in with php. If you need the rpms you can get them from here: http://www.gingerall.com/charlie/ga/xml/d_sab.xml Sablotron also needs javascript engine to run, you can get that here: http://rpm

[PHP] sablotron XMl XSLT

2002-04-09 Thread Matthew Luchak
PHP 4.1.2 SunOS web-unix1 5.7 apache_1.3.22     I'm trying to parse XML/XSL on a shared  box and I'm using :   $xslthandler = xslt_create() or die("Can't create XSLT handle!");   to test for sablotron.  Unfortunately I just get a "Call to undefined function" error which I guess means no - the

Re: [PHP] Build static with Apache 2.0.35

2002-04-09 Thread bvr
I don't know an answer to your first question, but I 'm currently running PHP under Apache 2.0.35 and I could only get it work through apxs2 and only with the very latest PHP version (4.3.0-cvs). Tried with 4.1.2, 4.2.0RC1&2 but the Apache 2 programming interface apparently has changed (a lot)

RE: [PHP] AS/400 data access

2002-04-09 Thread Collins, Robert
I am also trying to access data on an AS/400 have you gotten it to work, if so can you send an example? Thanks in advance. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Rance Hall [ma

Re: [PHP] sockets and flush()

2002-04-09 Thread Robert Cummings
dietrich wrote: > > i have a script that makes a socket connection about halfway through the > page. > > nothing on the page prints until the socket operation is finished, even if i > call flush() prior to the socket operation. > > does anyone now of a way to force PHP to output the buffer prio

Re: [PHP] Sub groups ? - Programming structure...

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 01:19 PM, Jason Wong wrote: >> Note that some might consider this a perversion of functions, since >> functions are intended to operate on input and return a value -- but >> this is a convenient way of modularizing your display code, and I use >> it >> a lot. > >

Re: [PHP] Rebooting

2002-04-09 Thread Eugene Lee
On Tue, Apr 09, 2002 at 07:19:44PM +0200, Dave Raven wrote: : : I need to reboot a FreeBSD 4.5-STABLE : computer using php + apache. I have a : small wrapper which runs the reboot : command as root, but it freezes half way : through and the box hangs. : : I'm thinking

Re: [PHP] printing < and > ?

2002-04-09 Thread Adam Voigt
A less elegant solution would be to do a string replace on insert for the & equivalent, for instance, ´ works fine in displaying a single quote, but doens't throw off database querys with real single quotes in them, so as long as you don't mind have that in your db, you could use the equivalen for

[PHP] sockets and flush()

2002-04-09 Thread dietrich
i have a script that makes a socket connection about halfway through the page. nothing on the page prints until the socket operation is finished, even if i call flush() prior to the socket operation. does anyone now of a way to force PHP to output the buffer prior to executing the socket code?

Re: [PHP] printing "<" and ">" ?

2002-04-09 Thread Andrey Hristov
htmlspecialchars() Andrey - Original Message - From: "Hawk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 09, 2002 8:33 PM Subject: [PHP] printing "<" and ">" ? > I have a clan database, and some clans use <> in their tags, my problem > right now it how the best way

Re: [PHP] PHPSESSID question

2002-04-09 Thread Jason Wong
On Tuesday 09 April 2002 17:20, Nick Wilson wrote: > Hi all > I've just moved host and I'm getting a very ugly PHPSESSID string > appended to my url's This happens when php is compiled with the "--enable-trans-sid" option. > I know this can be fixed but can't remember how, my ISP is not so brig

[PHP] Redirecting to an external file and an internal url at the same time?

2002-04-09 Thread Hawk
I have a function that should count the amount of times a file is being downloaded first I want to have a redirect to the file in some way, and then for the browser to go back to the local files page, it goes back to the files page, but the file doesn't download... Håkan -- PHP General Mailin

[PHP] printing "<" and ">" ?

2002-04-09 Thread Hawk
I have a clan database, and some clans use <> in their tags, my problem right now it how the best way to print these as characters, and not code.. any easy suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mysql

2002-04-09 Thread Jason Wong
On Tuesday 09 April 2002 20:23, Cirstoiu Aurel Sorin wrote: > You used first single quote and then double quote. > Replace > backup table table_name to '/var/lib/_backup/'' > with > backup table table_name to '/var/lib/_backup/' > This should work. > Please let me know if that helped you. This ha

[PHP] Rebooting

2002-04-09 Thread Dave Raven
Hello all I need to reboot a FreeBSD 4.5-STABLE computer using php + apache. I have a small wrapper which runs the reboot command as root, but it freezes half way through and the box hangs. I'm thinking that the reboot process is killing apache, and in effect killi

Re: [PHP] Sub groups ? - Programming structure...

2002-04-09 Thread Jason Wong
On Tuesday 09 April 2002 21:50, Erik Price wrote: [snip] > Note that some might consider this a perversion of functions, since > functions are intended to operate on input and return a value -- but > this is a convenient way of modularizing your display code, and I use it > a lot. Not really.

[PHP] Php/Pdf application

2002-04-09 Thread Geoff Hankerson
I am wondering if one or more of you can point me in the right direction on this one. Our company has intellectual property (legal forms) that is in the form of a pdf. We want to sell this over the Web but a regular pdf is not secure and it would allow users to make unlimited copies and have unli

Re: [PHP] string reverse ??

2002-04-09 Thread Jason Wong
On Tuesday 09 April 2002 23:33, Miguel Cruz wrote: > On Tue, 9 Apr 2002, Scott Fletcher wrote: > > Is there a PHP code or function that would reverse the data in the > > string? > > Oh come on. > > Is it really THAT hard to look at the manual? There was a guy on this list a while back, when asked

Re: [PHP] Function stored in a database

2002-04-09 Thread Robert Cummings
Anzak Wolf wrote: > > I have a question about storing functions. I have some security mode stuff > I'm working on and what I'm thinking is that as part of the security mode > table I would store a function that could be called if the security mode is > called. > > Something like this. > Select

Re: [PHP] order of evaluation

2002-04-09 Thread Analysis & Solutions
Yo Erik: On Tue, Apr 09, 2002 at 11:39:31AM -0400, Erik Price wrote: > > elseif (!empty($_POST['newpassword']) && > !$user->set_password($_POST['newpassword'])) Your order of evaluation is correct. But, considering the password length is evaluated in the set_password() function, checking empt

[PHP] Re: MySQL persistent links

2002-04-09 Thread Robert Abbate
Excellent Man! Worked great. Yuri Petro <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > You can just put disable_functions=mysql_pconnect in php.ini file. > > -- > Kind regards, > Yuri. > > www.AceHoster.com Quality web hosting > > > "Robe

[PHP] need help with your code?

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 11:50 AM, Analysis & Solutions wrote: > Allow me to nit pick. That's hard to read. This, on the other hand, is > clearer: >function StartHandler($Parser, $ElementName, $Attr='') { > print "$ElementName: "; >} > Of course, you can do what you want, b

Re: [PHP] Downloading files

2002-04-09 Thread Scott Houseman
Try this: As you give the client Content-Type: application/save-as - it will not know what mime type the file is, and the browser will give the user a save-as prompt. This works in explorer - I haven't checked it in Mozilla etc - so you might have to tweak it a bit. Cheers Scott - Origina

Re: [PHP] XML HELP

2002-04-09 Thread Analysis & Solutions
Christopher: On Tue, Apr 09, 2002 at 09:25:07AM -0400, Crane, Christopher wrote: > The problem is now back to the beginning, I can not get the $Line value, > which is the data I want to be pushed into an array. I did not get an error > with the code below, but I did not get any information when

[PHP] Re: order of evaluation

2002-04-09 Thread Yuri Petro
I think that set_password() will not be processed. -- Kind regards, Yuri. www.AceHoster.com Quality web hosting "Erik Price" <[EMAIL PROTECTED]> ???/ ? ?: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > A quick question about evaluation: > > I have the foll

Re: [PHP] Re: cookie sharing between asp and php

2002-04-09 Thread Scott St. John
On Wed, 10 Apr 2002, Gordon Stewart wrote: > As far as I know - ALL cookies set by a particular server - can be read & > re-set by any programme / process on the same server / website.. > So your ASP script could read your PHP cookies & vice-versa.. > I'm just learning PHP, & dont know cookies as

  1   2   >