Re: [PHP] Compiling PHP with XML????

2002-06-26 Thread René Moonen
> Yes. Since 4.1.x at least. But for XSLT you need to get expat and > Sablotron and link them into the compile (with the appropriate > ./configure options). Hum, I did spent some time yesterday on exactly that, but with no success (yet). I'm using Linux RedHat 7.1. Expat 1.95.3

Re: [PHP] Display Records in Multiple Pages

2002-06-26 Thread Justin French
Use the LIMIT function in your SELECT query... check out the MySQL manual... and then generate back / forward links depending on your current offset. It should be expandable to 1000 records without any mods to the code. Justin French on 27/06/02 4:54 PM, Aqua ([EMAIL PROTECTED]) wrote: > I h

[PHP] Vars to use in stats program

2002-06-26 Thread PHP
Note: For a couple who seem to be wondering there is a PHP news server which works in conjunction with this mailing list. The address is: news.php.net Currently collect the following vars in a early stage stats program(Working on the KISS principle) for my own use. Here are the user vars I thin

RE: [PHP] Display Records in Multiple Pages

2002-06-26 Thread Martin Towell
pass around a "page" number or a "start record" number. Use that to determine where to start (and therefore where to end) eg: page = 1.'. start record = (1-1)*25+1 => 1 eg: page = 3.'. start record = (3-1)*25+1 => 51 HTH Martin -Original Message- From: Aqua [mailto:[EMAIL PROT

RE: [PHP] Help and advice sought - search/replace

2002-06-26 Thread Jason Soza
Thanks for everyone's help. I didn't try this method, but I'll definitely try it next time I do something like this. Here's the final code that I got to work, and it works beautifully. Thanks again for your help on this! The fwrite() function I threw in is fairly useless - it writes the final out

[PHP] Display Records in Multiple Pages

2002-06-26 Thread Aqua
I have 100 records in mySQL database and I need to display them in my web page using php and html. How to display them in multiple pages? Each page must contain 25 records. Does anyone know how to do it other than create 4 pages and manually list the records there? or maybe point me some refere

RE: [PHP] Help and advice sought - search/replace

2002-06-26 Thread Niklas Lampén
If your list looks like this: " Salo, Mika Räikkönen, Kimi Häkkinen, Mika " And there is no other commas in the list, you can do it something like this: I think that'll do. I didn't test it thou.. :) Niklas -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: 27. k

[PHP] Fork Or Cron?

2002-06-26 Thread apokalyptik
I'm the author of a little used, little cared about ftp indexing script (http://www.apokalyptik.com/ftp/) and i'm working on - slowly - releasing version 2.0. Version 1 runs as a cron job (or a daemon) and its one monolithic piece of code that handles managing of the queue of new and old sites to

Re: [PHP] More on removing item from cart

2002-06-26 Thread Jason Wong
On Thursday 27 June 2002 10:52, Analysis & Solutions wrote: > Hey Vicki: > > On Wed, Jun 26, 2002 at 11:01:31AM -0400, Vicki wrote: > > I'm checking the cart structure by printing the following code inserted > > right after the "if($save);" > > line (is this the best way to check on the contents o

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread John Holmes
> There are a ton of template systems. Look here for performance > benchmarks: > http://www.phpinsider.com/benchmarks_phemplate > > Unfortunately pattemplate isn't tested so I don't know how it rates. I downloaded the scripts and added patTemplate to the mix. It's average, rating in the middle

Re: [PHP] Advantage of CURL over using LYNX

2002-06-26 Thread Daniel Tryba
On Wed, Jun 26, 2002 at 05:59:00PM -0400, Dennis Moore wrote: > I need to grab some data from a CGI program running on a different > server. I have been toying around executing LYNX using the passthru > command. I seem to be able to grab the data just fine using "lynx > -source -preparsed $URL".

[PHP] Help and advice sought - search/replace

2002-06-26 Thread Jason Soza
Just looking for a pointer or functions I can use to do this... I have a spreadsheet with a couple thousand entries that I'll be using for populating a MySQL database. The spreadsheet has names listed in "last, first" - the database I'll be populating has separate fields for first and last names.

Re: [PHP] Gradients using GD

2002-06-26 Thread Jason Wong
On Thursday 27 June 2002 06:03, Anzak Wolf wrote: > After much pain and suffering I figured out how to do dual color Gradients > using GD in an oval. While it is not as clean as I'd like it works and can > be tweaked as needed. In the process I also found some very cool Gradient > effects that c

Re: [PHP] preg and Perl 6 (upcoming..not current preg handling)

2002-06-26 Thread Rasmus Lerdorf
We are using the PCRE library for this. I don't think there are any plans to drop the Perl5 syntax. On Wed, 26 Jun 2002, Peter Thoenen wrote: > Anybody know if PHP 4.x (5.x?) will be sticking with > Perl5 RegEx syntax for preg's or will it be changing > to the new Perl6 RegEx syntax (which I re

Re: [PHP] More on removing item from cart

2002-06-26 Thread Analysis & Solutions
Hey Vicki: On Wed, Jun 26, 2002 at 11:01:31AM -0400, Vicki wrote: > I'm checking the cart structure by printing the following code inserted > right after the "if($save);" > line (is this the best way to check on the contents of an array?) > > while (list($key,$value) = each($cart)) >{ >

Re: [PHP] Design Tips

2002-06-26 Thread Andrew Brampton
Not so long ago (well last week), I wrote a PHP proxy script which worked in the form: www.myserver.com/proxy/www.whatever.com/blah and it would request the page www.whatever.com/blah and then display it changing all the links on the page to point to my proxy script... The whole script took a hou

RE: [PHP] closing a browser-window with php

2002-06-26 Thread Martin Towell
use javascript... php can't interact w/ the browser unless you go through js or vbs so you'd do something like this: -- MM Page -- Start -- -- MM Page -- End -- -- New Win -- Start -- win = window.open("real_url", "real_win", "width=xx,height=xx"); win.moveTo(x, y); window.close(); //

RE: [PHP] closing a browser-window with php

2002-06-26 Thread Peter
Nik, for that you will have to use JavaScript as PHP is server side only .. not Client side Cheers -Original Message- From: nik crosina [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 12:12 PM To: [EMAIL PROTECTED] Subject: [PHP] closing a browser-window with php

Re: [PHP] closing a browser-window with php

2002-06-26 Thread Gerard Samuel
No, php do not open and close windows. But you can use php to echo javascript that will open and close windows... nik crosina wrote: >hi news group > >my first post, so please be gentle ;-) > >my problem is that i have to open a browser page of specific size and >coordinates from a macromedia di

[PHP] closing a browser-window with php

2002-06-26 Thread nik crosina
hi news group my first post, so please be gentle ;-) my problem is that i have to open a browser page of specific size and coordinates from a macromedia director movie. but: the only call i can send from there is for a browser window without any attributes (so i can't control size or location

Re: [PHP] base64_encode

2002-06-26 Thread Gerard Samuel
Thanks Andrew Braund wrote: >Googling on "ascii table base64" got me; > http://ulla.mcgill.ca/arts150a/sample_exam.htm >a nice little table with the base 64 characters >(also got http://email.about.com/library/weekly/aa070201a.htm >which discribes base64) > >So in answer to your question the ext

RE: [PHP] base64_encode

2002-06-26 Thread Andrew Braund
Googling on "ascii table base64" got me; http://ulla.mcgill.ca/arts150a/sample_exam.htm a nice little table with the base 64 characters (also got http://email.about.com/library/weekly/aa070201a.htm which discribes base64) So in answer to your question the extras look like + and /. 26+26+10+2=64

RE: [PHP] PHP not working on Apache at XP Pro.

2002-06-26 Thread sonjaya
If you use win xp pro try use phptriad is working in my winbox , phptriads include = apache+mysql+php. You can download in sourceforge. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: redeclaring functions

2002-06-26 Thread John Holmes
> And sorry but no, I can't just delete one of the functions...these scripts > are used in many other places by themselves without the other..so script A > has to be able to have this function on its own page, and so does script B > on its own page. And sorry but no, you can't have two functions

[PHP] base64_encode

2002-06-26 Thread Gerard Samuel
What other characters are possible from the output of base64_encode() except [A-Za-z0-9] ?? Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using COM to generate excel file - php version of vb Sheets("Report First page").Copy After:=Sheets(1)

2002-06-26 Thread Andrew Braund
Win2Kpro, PHP4.2.1, Apache 1.3.26dev I would like to make a copy of a sheet in an existing excel spreadsheet from within PHP using COM. I can open an existing .xls file and rename a sheet using; 8<= $excel = new COM("Excel.Application") or die("Excel could not be started"

[PHP] preg and Perl 6 (upcoming..not current preg handling)

2002-06-26 Thread Peter Thoenen
Anybody know if PHP 4.x (5.x?) will be sticking with Perl5 RegEx syntax for preg's or will it be changing to the new Perl6 RegEx syntax (which I really dislike but what can you do, Larry has spoken). If we do plan to move to Perl6 RegEx, please implement the P5 modifier -Peter

[PHP] Design Tips

2002-06-26 Thread David Redmond
Hi All, I'm about to put myself in the deep end by attempting to create an PHP app that will perform the role of a proxy server. The application has to perform the following based on the URL that the web client will be requesting. URL Requested: https://servername/id0001/ 'id0001' is a unique

Re: [PHP] Image GD Wizardry!

2002-06-26 Thread Dennis Moore
I think GIF support was removed from GD several releases ago due to licensing reasons... /dkm - Original Message - From: "Shane" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, June 26, 2002 6:48 PM Subject: [PHP] Image GD Wizardry! > One would think that pulling bin

[PHP] Another Pop-Up problem..

2002-06-26 Thread Doug Coning
Thanks all who have helped with my Javascript / PHP pop-up. I've got it to work now where it will pop up a window. However, now it returns the same record each time. So which ever record you click first, it will bring that window up for each item. How do I reset or clear out the value so that

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Justin French
on 26/06/02 11:53 PM, Mark Gallagher ([EMAIL PROTECTED]) wrote: > Theoretically this could still be done only with editing of the > stylesheet. Of course, it's not that simple - Mozilla comes closest to > decent browser support for that sort of radical change, and even it's > not there yet. wel

Re: [PHP] appending to XML file before closing tag

2002-06-26 Thread Brian White
Hey - if you read my post a little more carefully you would see that I was bemoaning the effective passing of *SGML*. I was on a nostaligia trip. I am well aware that SGML is a bit of a complicated beheamoth, but it you have a decent SGML parser ( such as Omnimark or SP) you could do some really

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Peter J. Schoenster
On 25 Jun 2002 at 17:40, Jean-Christian Imbeault wrote: > Some of the "issues" are things like how to make it painless for both > the designers and me if one day, out of the blue, a designers decides > that the background colour should be changed, or the graphics changed. > Or even worse the two

[PHP] Floating point exception (8)

2002-06-26 Thread Devin Atencio
Dear PHP, I am not sure if this is the mailinglist I need to address but I recently installed Apache 1.3.26 (Unix) PHP/4.2.1 mod_perl/1.27 AuthMySQL/2.20 mod_ssl/2.8.9 OpenSSL/0.9.6a, running on FreeBSD 4.3-STABLE. I notice that in my error logs for Apache I see the following line every few seco

RE: [PHP] Image GD Wizardry!

2002-06-26 Thread Lazor, Ed
It sounds like you're describing the difference between data type and data format. In other words, jpg, bmp, and gif files are all binary data. What makes them unique is the format of that binary data, which is why it's necessary to specify the correct file extension to properly process the file

[PHP] Image GD Wizardry!

2002-06-26 Thread Shane
One would think that pulling binary data from a DB using the function imageCreateFromString would allow you to output that string to any format. (GIF JPEG PNG) or whatever is supported by your version of GD. But this code flakes out and creates no image if it reads from a binary file made by a

[PHP] Gradients using GD

2002-06-26 Thread Anzak Wolf
After much pain and suffering I figured out how to do dual color Gradients using GD in an oval. While it is not as clean as I'd like it works and can be tweaked as needed. In the process I also found some very cool Gradient effects that could be used as well. I'm currently working on writing

Re: [PHP] debugger

2002-06-26 Thread Anil Garg
hi thanx for ur mail. In fact i have to make changes in the code written by someone else. I want to use debugger to know the path in which the files are called. Which is the debugger for php? thanx anil - Original Message - From: "B i g D o g" <[EMAIL PROTECTED]> To: "Anil Garg" <[EMAIL P

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread David Freeman
> >>Wouldn't you ultimately be better off moving most of this sort of > > thing > >>into style sheets and then have the designers play with the style > > sheets instead? > > What if your designer wants to change from a two column > table to a four column table. Or change the menu from a v

Re: [PHP] Java Pop UP...

2002-06-26 Thread Dennis Moore
Don't you mean Javascript? I am not sure if I understand your question...but here goes... Your PHP code will be executed first at the server side. You can use PHP to include or write out your Javascript functions in the head of your page. >From here you can execute your javascript normally. /d

Re: [PHP] PHP sockets/daemon problem

2002-06-26 Thread Josh Levine
Thanks! Those were a huge help...turns out the problem was with the daemon and not my code. --Josh Levine B I G D O G wrote: > > Some great articles for sockets...might help out... > > http://www.phpbeginner.com/columns/demitrious/sockets > http://www.phpbeginner.com/columns/demitrious/socket

Re: [PHP] debugger

2002-06-26 Thread B i g D o g
There are some IDE's that support debugging or you can just use the parser. It will tell you the problem and spit out a warning or error depending on how you have your php.ini set up. I usually have display_errors on so that I can use that as my debugger. Then when I go on a live server I have it

[PHP] Advantage of CURL over using LYNX

2002-06-26 Thread Dennis Moore
I need to grab some data from a CGI program running on a different server. I have been toying around executing LYNX using the passthru command. I seem to be able to grab the data just fine using "lynx -source -preparsed $URL". I've started reading about CURL. I am wondering if it is worth

RE: [PHP] Java Pop UP...

2002-06-26 Thread Bruce Karstedt
Or just make sure it is not contained within . Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 2:51 PM To: [EMAIL PROTECTED] Cc: PHP List Sub

Re: [PHP] Session Events

2002-06-26 Thread Al Baker
Well, since HTTP is stateless you can really say that this event happens in either of two places: - The next page accessed by the user with that session ID - As an event in the backend. If it's the first, I would recommend just having a lib_session that verifies a timer or whatever and then redir

RE: [PHP] diffrance : require(); a file from localhost and from a domain.

2002-06-26 Thread Lazor, Ed
Isn't this an example of using require in the wrong context, since you don't typically load a gif file and attempt to process it as a PHP file? http://www.php.net/manual/en/function.require.php The require() statement includes and evaluates the specific file. -Original Message- I think

[PHP] debugger

2002-06-26 Thread Anil Garg
hi, in perl i used perldb for debugging. whats to be used in php!! thanx anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] casting user-defined objects

2002-06-26 Thread Erik Price
I have been playing around and am unable to explicitly cast an object instance from one user-defined type to another, using the traditional type-casting syntax nor with the settype() function. I feel like I should mention this as an annotation in the man page, but I was hoping someone could st

Re: Fw: [PHP] New Newsgroups

2002-06-26 Thread Rasmus Lerdorf
People can post to this group from nntp://news.php.net On Wed, 26 Jun 2002, Rick Emery wrote: > Somewhat related to this discussion. > > There are some posters to this email list that appear as Newsgoup entries in my >OutLook Express. Most posters, however, are identified as mail, not news pos

Fw: [PHP] New Newsgroups

2002-06-26 Thread Rick Emery
Somewhat related to this discussion. There are some posters to this email list that appear as Newsgoup entries in my OutLook Express. Most posters, however, are identified as mail, not news postings. "Peter" is one of those that appears as a News post. I've looked at the headers of his m

Re: [PHP] large tables scroll down:(

2002-06-26 Thread Anil Garg
sorry folks by mistake i sent it to the wrong list. bye - Original Message - From: "Jerome Houston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June 26, 2002 4:02 PM Subject: Re: [PHP] large tables scroll down:( > there's a couple problems with your

[PHP] Creating a dbase file on a virtual directory with IIS

2002-06-26 Thread Dave Leather
Running IIS4 on NT 4 server... Have a VIRTUAL directory setup to a Novell netware drive.. I have the virtual directory called PI. My IIS server is called FLC So.. when I go to //FLC/PI - I see a directory listing. No problem. When I attempt a $DbName = '//flc/pi/test.dbf'; $TableDef = arra

Re: [PHP] diffrance : require(); a file from localhost and from adomain.

2002-06-26 Thread Rasmus Lerdorf
That is the technical difference. Both will make HTTP requests and issue a GET request to fetch the image file. One opens a connection to localhost (normally the loopback at 127.0.0.1) and the other opens a connection to www.domain.com (at whatever ip that resolves to) -Rasmus On Wed, 26 Jun 200

Re: [PHP] New Newsgroups

2002-06-26 Thread Greg Donald
On Wed, 26 Jun 2002, Peter wrote: >Does anyone else out there use Outlook Express to get the posts from this >newsgroup? >Yesterday a dialog popped up to say there were new newsgroups (php.docs.de >etc), I acknowledged this but the same message came up again just now! >Did this happen to anyone e

Re: [PHP] large tables scroll down:(

2002-06-26 Thread Jerome Houston
there's a couple problems with your question: we don't know what tool you're using, what database you're you're using, and most importantly, this is not a PHP question. please use a hammer for a nail, and a screwdriver for a screw. thanks. >From: "Anil Garg" <[EMAIL PROTECTED]> >Hi, >for vi

Re: [PHP] Java Pop UP...

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 03:37 PM, Doug Coning wrote: > I have a php page that return rows from a database. I then have an href > link to the individual thread as such: > > target='_blank'>". > > > This works, it opens a new window which has the detailed information > needed. > Howeve

[PHP] New Newsgroups

2002-06-26 Thread Peter
Does anyone else out there use Outlook Express to get the posts from this newsgroup? Yesterday a dialog popped up to say there were new newsgroups (php.docs.de etc), I acknowledged this but the same message came up again just now! Did this happen to anyone else or was it just me?! -- PHP Gene

Re: [PHP] Java Pop UP...

2002-06-26 Thread Richard Baskett
Link Text Rick "I haven't failed, I've found 10,000 ways that don't work." - Ben Franklin > From: "Doug Coning" <[EMAIL PROTECTED]> > Reply-To: <[EMAIL PROTECTED]> > Date: Wed, 26 Jun 2002 14:37:11 -0500 > To: "PHP List" <[EMAIL PROTECTED]> > Subject: [PHP] Java Pop UP... > > Hi everyone... >

[PHP] large tables scroll down:(

2002-06-26 Thread Anil Garg
Hi, for viewing long tables. when i say SELECT * FROM abc i miss the upper entries of the table as they scroll down. is there something by which i can view a table page by page(as | more in unix) thanx anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Scott Fletcher
Um, alright, I'll just leave the code in the hyperlink the way it is. It is not possible to use the "" or post of some sort for the hyperlink. "" will work with the submit button where we can use post or hidden. Hyperlink meant words or sentences that have underline underneath it, when clicked wi

Re: [PHP] diffrance : require(); a file from localhost and from a domain.

2002-06-26 Thread php
I think thats more than obvious Erik.. I asked for the tecnical diffrance. Anybody? > > On Wednesday, June 26, 2002, at 03:19 PM, <[EMAIL PROTECTED]> wrote: > > > tecnically whats the diffrance if I do: > > > > require("http://localhost/image.gif";); > > or > > require("http://www.domain.co

[PHP] Java Pop UP...

2002-06-26 Thread Doug Coning
Hi everyone... I have a php page that return rows from a database. I then have an href link to the individual thread as such: ". This works, it opens a new window which has the detailed information needed. However, how would I write java code into this to force it to open the window at 300 by

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 02:37 PM, Scott Fletcher wrote: > I didn't know that. Thanks for the info. I think it would be best > that I > not use php.ini. On the contrary, I think it would be best if you read through it and read about it at http://www.php.net/manual/en/configuration.p

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 02:56 PM, Scott Fletcher wrote: > I tried that and it worked. I have > one question, what about the hyperlink? People will see the option in > the > hyperlink. You know. Is there a way around it to hid that in the > hyperlink? If by "hyperlink" you mean the

Re: [PHP] diffrance : require(); a file from localhost and from a domain.

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 03:19 PM, <[EMAIL PROTECTED]> wrote: > tecnically whats the diffrance if I do: > > require("http://localhost/image.gif";); > or > require("http://www.domain.com/image.gif";); ? The first one requires the file at "localhost/image.gif", and the second one requir

Re: [PHP] passing variable arguments from

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 02:51 PM, Haddad Said wrote: > Hi, i am having a problem passing variables from a drop down menu in a > form; > > > > one > two > You should do it like this (be sure to properly quote your attributes, and use the 'value' attribute of the 'option' tag): p

[PHP] trans-id enabled not working?

2002-06-26 Thread Jerry Artman
I am experiencing a problem with NN6.2. When I link to a url from a popup the session id is not being appended to the url. The destination page check session variables and redirects to an error page. If I add the query portion "?PHPSESSID=,?php session_id() ?>" to the link string it works. Howev

[PHP] diffrance : require(); a file from localhost and from a domain.

2002-06-26 Thread php
tecnically whats the diffrance if I do: require("http://localhost/image.gif";); or require("http://www.domain.com/image.gif";); ? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] redeclaring functions

2002-06-26 Thread Andrew Chase
http://www.php.net/manual/en/function.include-once.php http://www.php.net/manual/en/function.function-exists.php HTH, -Andy > -Original Message- > From: Taylor York [mailto:[EMAIL PROTECTED]] > > I am having a problem with two scripts that use the same function name. > The two functions

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Scott Hurring
There is no feasable way to "hide" data being submitted to your website. Anything that a user's browser can send, the user can telnet to port 80 of your server and "spoof". You can try POSTing data, which will not appear in the URL, but dont even waste time trying to "hide" submitted data, rathe

[PHP] PHP ob_gzhandler, IIS 4.0, and .js/.css files

2002-06-26 Thread TSAI,EDWARD (HP-Cupertino,ex1)
I am looking for ways to improve performance for delivering content from a couple of CDSes in a Vignette solution. (which get as large as 100kb), so I am looking into HTTP compression (which looks like it can compress our files down to 12kb). I found a few commericial vendors such as Pipeboost and

[PHP] Re: redeclaring functions

2002-06-26 Thread Taylor York
And sorry but no, I can't just delete one of the functions...these scripts are used in many other places by themselves without the other..so script A has to be able to have this function on its own page, and so does script B on its own page. "Taylor York" <[EMAIL PROTECTED]> wrote in message [EM

[PHP] Re: Passing Form Values

2002-06-26 Thread Taylor York
I would suggest posting the vars to a page, which will open up a new javascript window, then .write("") the values into the javascript window from the main page. OpenWindow = window.open("", "newWindow", "height=400, width=300,toolbar=yes,scrollbars=yes,menubar=yes"); OpenWindow.document.write("

[PHP] Re: Synchronize FTP sites with PHP?

2002-06-26 Thread Philip Hallstrom
I'm sure it's been done, but you might first look at wget and save some time. On Wed, 26 Jun 2002, Jeff Lewis wrote: > We're using a FTP Control program here but it's very old and I'm wondering > if anyone has used PHP to sync up FTP sites, to connect to a remote server > and check if there is a

[PHP] Apache Directives for php as module

2002-06-26 Thread Jason G Trusty
Hello, I read the support pages at php.net regarding php.ini. Am I correct in the assumption that so long as you have php compiled as a module for apache that you can than use apache style directives to override the default php.ini? Furthmore, are these override directives allowed in a vhost con

[PHP] redeclaring functions

2002-06-26 Thread Taylor York
I am having a problem with two scripts that use the same function name. The two functions do the exact same thing...but when the include files are called, the second file recieves a redeclare error. Suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] include_module()

2002-06-26 Thread Anil Garg
Hi, Is include_module() a predefined functioin of php. I couldnt find it in documentaion. Is there any way i can view all the functions availabe together?? thanks anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Scott Fletcher
Hi Erik! This is my 2nd posting, not sure what happened to my first one. Sorry about not seeing your previous posting before. Windows crashed on me. My fault. I didn't know we can use php.ini in UNIX or Linux. Cool! Haven't been using it on UNIX for a long time. I think I can leave it out f

[PHP] passing variable arguments from

2002-06-26 Thread Haddad Said
Hi, i am having a problem passing variables from a drop down menu in a form; one two So how will the values of $example be assigned in test.php? THanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Scott Fletcher
I didn't know that. Thanks for the info. I think it would be best that I not use php.ini. I can write the script to register the variable. What would be a demo script that would work? I'm having a little trouble understanding that on the php.net website. Most of the script that use global va

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 02:13 PM, Scott Fletcher wrote: > I'm using UNIX, not windows, so there is no php.ini in UNIX. Sorry, don't take offense if I ask if you've been living under a rock -- I only use Linux, and there is definitely a php.ini file that you use. I put mine in /usr/l

RE: [PHP] FOXED - no success in replacing file content using fgets/fputs and str_replace

2002-06-26 Thread Leotta, Natalie (NCI/IMS)
Some editors let you find/replace in files in a certain folder. That might be easier. I know UltraEdit let you do this and it only takes a few minutes. To me, that is much less labor-intensive than trying to write code to do it, unless you're trying to learn things while you do it. :-) -Natali

[PHP] FOXED - no success in replacing file content using fgets/fputs and str_replace

2002-06-26 Thread Naintara Jain
I need to replace some html code in about 100 files. Wanted to do this through code, and am using fgets() to get a line at a time from the file, this string is saved in variable $line. Then I check for the occurrence of the search string in $line using strpos(). If found, I echo some statements,

RE: [PHP] Re: PHP does not work??

2002-06-26 Thread Jay Blanchard
[snip] I'm using UNIX, not windows, so there is no php.ini in UNIX. [/snip] Look here /etc/apache/php.ini-dist or /etc/apache/php.ini. There is an ini file for PHP, and you may have to rename php.ini-dist to php.ini. Once done, look for ; You should do your best to write your scripts so that the

[PHP] Re: PHP does not work??

2002-06-26 Thread Scott Fletcher
I'm using UNIX, not windows, so there is no php.ini in UNIX. I only use the "./configure" command which is -- snip -- ./configure --with-apache=../apache_1.3.26 --with-ibm-db2=/usr/lpp/db2_06_01 --with-openssl=../openssl-0.9.6d --with-mcrypt=../../lib --without-mysql --with-config-file-path

Re: [PHP] PHP sockets/daemon problem

2002-06-26 Thread B i g D o g
Some great articles for sockets...might help out... http://www.phpbeginner.com/columns/demitrious/sockets http://www.phpbeginner.com/columns/demitrious/sockets-connection B i g D o g - Original Message - From: "Josh Levine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday,

RE: [PHP] variable statements

2002-06-26 Thread Henning Sittler
Perfect. Thank you Jason. Henning Sittler www.inscriber.com -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 1:44 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] variable statements On Thursday 27 June 2002 01:34, Henning Sittler wrote: > Qu

Re: [PHP] server security

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 01:33 PM, Phil Schwarzmann wrote: > What else can I do to make this server secure? What is this SSL > business all about? Any extra programs I should add that might help? Read this from beginning to end. Then you will know what questions you need to ask to m

Re: [PHP] variable statements

2002-06-26 Thread Jason Wong
On Thursday 27 June 2002 01:34, Henning Sittler wrote: > Question: Variable variables and variable functions work great, but how can > you execute arbitrary code statements using php code stored inside > variables? eval() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source S

Re: [PHP] problem proccessing SSI...

2002-06-26 Thread Jason Wong
On Thursday 27 June 2002 01:35, The Gabster wrote: > Hi everyone... > > I keep getting an "[an error occurred while processing this directive]" in > my shtml page when I try to use > > I tried all the path/url variants in vain. > > Anyone can help please? I have win2k/Apache/php4. This looks lik

[PHP] PHP sockets/daemon problem

2002-06-26 Thread Josh Levine
I'm trying to write a simple PHP script that communicates with a daemon running on the same server. Basically, the daemon just accepts an integer and returns an integer: [josh@jlevine-research josh]$ telnet 127.0.0.1 60324 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 9 2

[PHP] server security

2002-06-26 Thread Phil Schwarzmann
Okay, so with the help of all you, I have successfully set up a php server with apache/mysql on windows 98. THANK YOU!! What else can I do to make this server secure? What is this SSL business all about? Any extra programs I should add that might help? Thanks!!

[PHP] Synchronize FTP sites with PHP?

2002-06-26 Thread Jeff Lewis
We're using a FTP Control program here but it's very old and I'm wondering if anyone has used PHP to sync up FTP sites, to connect to a remote server and check if there is anything new... Not quite sure where to start with it though... Jeff -- PHP General Mailing List (http://www.php.net/) To

[PHP] problem proccessing SSI...

2002-06-26 Thread The Gabster
Hi everyone... I keep getting an "[an error occurred while processing this directive]" in my shtml page when I try to use I tried all the path/url variants in vain. Anyone can help please? I have win2k/Apache/php4. thanks gabi... -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] variable statements

2002-06-26 Thread Henning Sittler
Question: Variable variables and variable functions work great, but how can you execute arbitrary code statements using php code stored inside variables? // Example function stuff() { echo 'Stuff'; } // end stuff() $function = 'stuff'; $function(); // works /* Given the above, I would

Re: [PHP] dynamically creating variable names

2002-06-26 Thread Rasmus Lerdorf
http://www.php.net/manual/en/language.variables.variable.php On Wed, 26 Jun 2002, Lee P Reilly wrote: > Thanks for the replies. I'm still having a litte trouble though... > > Say I have an array called $compX, and given the letter 'X'... how can I > access the variable $compX using these methods

Re: [PHP] dynamically creating variable names

2002-06-26 Thread Lee P Reilly
Thanks for the replies. I'm still having a litte trouble though... Say I have an array called $compX, and given the letter 'X'... how can I access the variable $compX using these methods? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP does not work??

2002-06-26 Thread Jay Blanchard
[snip] When I use the hyperlink, "test.php?data=yes" and I go to this page, test.php but there is no data in this variable, $data. So, the web page I have, most of them are all thrown off becuase of this. I use PHP version 4.2.1. Is there a bug in this PHP version??? Or some changes in PHP tha

Re: [PHP] PHP does not work??

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 01:20 PM, Scott Fletcher wrote: > When I use the hyperlink, "test.php?data=yes" and I go to this page, > test.php but there is no data in this variable, $data. So, the web > page I > have, most of them are all thrown off becuase of this. I use PHP > version >

[PHP] PHP does not work??

2002-06-26 Thread Scott Fletcher
Hi! I downloaded the newer version of PHP and compiled it. The php is working great! But there is one problem. When I use the hyperlink, "test.php?data=yes" and I go to this page, test.php but there is no data in this variable, $data. So, the web page I have, most of them are all thrown off b

  1   2   >