[PHP] unhandled exception processing the ISAPI

2002-05-13 Thread Keith AY
Hi all, I got a problem when using PHP Server: win2000(sp2) Version: 4.2.0 Application use: ODBC, sessions, oci8, oracle. I tried PHP ISAPI version (4.2.0) I am using generic client socket(i.e. fsockopen()) to communicate with a server. It work fine at the begin, but I found that if the server

Re: [PHP] Re: Debugger

2002-05-13 Thread José León Serna
Hello: If there was at least some links on the PHP.net site, that would help people to know they're available. http://www.php.net/manual/en/debugger.php Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with sort problem

2002-05-13 Thread Chris Hewitt
Nick, I would use two fields in the database, FirstName and LastName. The LastName should be mandatory in your input from the user. Then you can simply extract the data with an sql statement that uses order by LastName. If you have a significant number of records, this will be fastest. HTH

RE: [PHP] Re: Self Destruct Code Copy Protection

2002-05-13 Thread Brian McGarvie
doing anything to the code is futile at the end of the day no matter how smart it is, if it's coded, and runs on their server, they could easily change themselves via an in-house/external resource who know how to 'fix' code. -Original Message- From: [-^-!-%- [mailto:[EMAIL PROTECTED]]

[PHP] Sort query

2002-05-13 Thread Kevin Meredith
I am getting an array from a database using 'order by' to display the data like I need. The headings of the displayed table are links to the same page just ordering by that specific field. This is to assist with finding data by either a log number, date or title. Each time a person selects a

Re: [PHP] Sort query

2002-05-13 Thread Miguel Cruz
On Mon, 13 May 2002, Kevin Meredith wrote: I am getting an array from a database using 'order by' to display the data like I need. The headings of the displayed table are links to the same page just ordering by that specific field. This is to assist with finding data by either a log number,

[PHP] Referrals

2002-05-13 Thread Randum Ian
Hi all, I am in the middle of writing a website for affiliate programs on the web, which one is the best and why kind of thing. I would like to be able to do something similar to what Amazon do on their website but I am struggling to work out how they do it so convincingly. Here is an example of

Re: [PHP] Sort query

2002-05-13 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Kevin Meredith declared What I would like to know is if this is the best way of re-ordering the same data or should I rather somehow control the order by using the existing data in the array. I reckon it's down to personal

Re: [PHP] Referrals

2002-05-13 Thread Miguel Cruz
On Sun, 12 May 2002, Randum Ian wrote: When you select an item to look at, there is a section named: snip Customers who bought this item also bought: blah link one - blah description blah link two - blah description Click here for more blah snip How is this done? Is there a

[PHP] Re: Getting only 255 chars from SQL Server

2002-05-13 Thread Craig
Varchar can only be set to a maximum of 255 Try setting the column to long text Unknown Sender [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have an SQL Server database running on a server on the internet. I need to have php connecting to the db and

[PHP] Stdout to file

2002-05-13 Thread Martin Thoma
Hello! How is it possible to change the standard-output temporarly to a file? I want to put the output of a script in 2 different files, so it is not possible to use php myscript.php4 file.txt. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Stdout to file

2002-05-13 Thread Miguel Cruz
On Mon, 13 May 2002, Martin Thoma wrote: Hello! How is it possible to change the standard-output temporarly to a file? I want to put the output of a script in 2 different files, so it is not possible to use php myscript.php4 file.txt. man tee miguel -- PHP General Mailing List

Re: [PHP] Stdout to file

2002-05-13 Thread Martin Thoma
man tee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stdout to file

2002-05-13 Thread Miguel Cruz
On Mon, 13 May 2002, Martin Thoma wrote: man tee Type that at the unix shell and be amazed at the learning that is revealed. php myphpfile.php | tee file1.txt file2.txt file.txt miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] question about objects and references

2002-05-13 Thread sascha mantscheff
When I pass an object as a parameter to a function as $this, this is an object reference (according to the docs). I store this reference in a local variable called $someObject. $someObject now contains an object pointer. I pass $someObject to another function. Is this a reference to the

[PHP] template logic problem

2002-05-13 Thread list peters
hi everyone, This is my first project with php after using cold fusion for the last few years! So far I have been pretty happy with php, but I have a problem with my application logic (not a php problem, but hoping for a sexy solution.) I am using a template system and including different

[PHP] Re: template logic problem

2002-05-13 Thread Martin Wickman
List Peters wrote: html body navigation ?php include file depending on url? body /html In the include file I have all the code i need. My problem is that for one page in the site I need to display a image in the navigation bar that is referenced from a database. The database

[PHP] PHP file Opening Problem

2002-05-13 Thread Vivek Kumar Agrawal
Hi Folks, Whenever I try to open any PHP page on my browser i.e. IE then it displays Windows message box for saving the file on the disk or opening the code in any editor. I mean PHP file is not executed successfully and I am unable to figure out the problem. Please help me. Thanx in advance.

RE: [PHP] PHP file Opening Problem

2002-05-13 Thread Christoph Starkmann
Whenever I try to open any PHP page on my browser i.e. IE then it displays Windows message box for saving the file on the disk or opening the code in any editor. I mean PHP file is not executed successfully and I am unable to figure out the problem. Do you have a webserver installed with

[PHP] How to get many data from one form

2002-05-13 Thread Kalpin Erlangga Silaen
Hello, i got problem while i try to get many data and same variable with one form. Below my source code cobain.php (Form For User) html headtitle/title/head body PRE ? print (FORM ACTION=\coba.php\ METHOD=POST\n); print (Nomor CD :INPUT TYPE=text NAME=\idD\BR\n); print (INPUT TYPE=SUBMIT

[PHP] PHP and mySQL

2002-05-13 Thread City Colleges of Chicago - Mannheim
I am a student working on a practicum problem. I have a mySQL database that contains the books, their title, and how many are in stock. When a person orders one of the books, I want the stock to be adjusted by how many, quantity, that they chose when the submit button is clicked. The scripts

[PHP] Re: Referrals

2002-05-13 Thread Manuel Lemos
Hello, On 05/12/2002 08:54 AM, Randum Ian wrote: Hi all, I am in the middle of writing a website for affiliate programs on the web, which one is the best and why kind of thing. I would like to be able to do something similar to what Amazon do on their website but I am struggling to work

[PHP] Very slow upload with PHP 4.2.0

2002-05-13 Thread Juraj Kazda
Greetings, I have a big problem with file upload in PHP 4.2.0. We have used PHP 4.1.2 and in our application we need sometime to upload files cca. 15MB big. When I have in my php.ini correct parameters (post_max_size=1000M, max_execution_time=300, upload_max_file_size=1000M) everything went OK

RE: [PHP] template logic problem

2002-05-13 Thread David Freeman
My problem is that for one page in the site I need to display a image in the navigation bar that is referenced from a database. The database query happens in the included file which is below the navigation in the html - This means i cant reference the image file name because the

RE: [PHP] PHP file Opening Problem

2002-05-13 Thread David Freeman
Whenever I try to open any PHP page on my browser i.e. IE then it displays Windows message box for saving the file on the disk or opening the code in any editor. I mean PHP file is not executed successfully and I am unable to figure out the problem. What is the web server? What

RE: [PHP] Re: Referrals

2002-05-13 Thread SP
I haven't looked so don't know how they did it but you can look at the source for www.oscommerce.com to see how it was done or someone more familar with the project could enlighten us. Here's their demo site, you can see the Customers who bought ... at the bottom

[PHP] Sessionproblem !?

2002-05-13 Thread marcos1
Hello, I´m working on a little web shop solution for a school project with php, adodb, a MS Access Db and an apache server. Therefore I have some questions and hope someone have an idea or can give me a hint. I decided to choose sessions for the data storage because I heard or read somewhere that

[PHP] XML-parser

2002-05-13 Thread marcos1
Hello, I´m working on a little web shop solution for a school project, therefore I´m looking for a PHP XML-Parser or some source code I can get from somewhere. Has anybody a good link to a tut or something else.. -- Thanks in advance for your help, kind regards Marcos GMX - Die

RE: [PHP] Re: MySQL or FlatFile

2002-05-13 Thread webmaster
I am very new to PHP(Still awaiting a book, Only done a few tutorials and read bits of the PHP manual). But if you used: mysql_pconnect($host, $user, $password) It would keep a consistant connection to the database so it may speed things up a bit. JJ Harrison[EMAIL PROTECTED]www.tececo.com

RE: [PHP] random order

2002-05-13 Thread John Holmes
Well, all I can say is that SELECT * FROM table ORDER BY id, RAND(); works just fine. It may not be standard SQL, but MySQL handles it just fine. If you need to make it a table field, then you can do it this way: SELECT *, RAND() AS r FROM table ORDER BY id, r; I would hope that query would

Re: [PHP] Getting only 255 chars from SQL Server

2002-05-13 Thread Michael Sims
On Sun, 12 May 2002 18:43:47 -0700, you wrote: I have an SQL Server database running on a server on the internet. I need to have php connecting to the db and returning values. Simple stuff. No problem making the connection and getting data using the mssql functions. The weird thing is that 4

RE: [PHP] Genus who came up with Self Destruct Code Copy Pro tection

2002-05-13 Thread Udo Giacomozzi
I don't think the success of a commercial product depends on whether it's source is public or not. But it may depend if the product can be easily stolen or multiplied. Sure, you can simply trust people that they act honestly and lefally but that isn't always the case. Let's assume you made a

RE: [PHP] Getting only 255 chars from SQL Server

2002-05-13 Thread Niklas Lampén
The platform doesn't matter here, since VarChar's maximum length is 255 chars, so everything above that is cutted away on insert. Creating table with VarChar(800) should give an error.. Niklas -Original Message- From: Michael Sims [mailto:[EMAIL PROTECTED]] Sent: 13. toukokuuta 2002

RE: [PHP] Getting only 255 chars from SQL Server

2002-05-13 Thread Niklas Lampén
Oh, it's different in msSQL. My mistake, sorry.. :) My knowledge is based on mySQL, I thought that the field lengths were in some sorta standard. Niklas -Original Message- From: Sqlcoders.com Programming Dept [mailto:[EMAIL PROTECTED]] Sent: 14. toukokuuta 2002 1:46 To: [EMAIL

RE: [PHP] Getting only 255 chars from SQL Server

2002-05-13 Thread Matt Friedman
If you want to make sure you get the whole string and it's fairly long, like a paragraph of characters or something, the db field should be a text field. Varchar is definitely no longer than 255 in MSSQL. You've lost the data over 255 chars with your current setup. Matt Friedman Web

RE: [PHP] Getting only 255 chars from SQL Server

2002-05-13 Thread Niklas Lampén
That is what I said before.. So can varchar be longer than 255 chars in MSSQL (or in any SQL)? Actually this is not my problem, I'm doing well with mySQL (varchars maximum length 255 :), but I'm getting interested here! Niklas -Original Message- From: Matt Friedman [mailto:[EMAIL

RE: [PHP] Getting only 255 chars from SQL Server

2002-05-13 Thread Jon Haworth
Hi Niklas, So can varchar be longer than 255 chars in MSSQL (or in any SQL)? Yes. SQL Server can handle varchars up to 8,000 characters - I assume Oracle and DB/2 are similar, but I don't know for sure. Getting 255 characters back is a common problem that does have workarounds:

Re: [PHP] Genus who came up with Self Destruct Code Copy Pro tection

2002-05-13 Thread 1LT John W. Holmes
Sure there is no 100% secure copy protection. I think the question is: how can I make it most difficult to break? The term I use is keeping honest people out Also, if you're on active duty military, don't write anything for them. From the few responses I've seen to a question I asked, the

[PHP] Problem with sessions.

2002-05-13 Thread Ben Edwards
I am using sessions for holding who is logged in and it is kind of working. I have got a few emails from customers saying they cant log in (and seeing as we have had less than 30 orders this is a real problem). I can log in OK and cant recreate this problem. Any ideas regarding what this

[PHP] Re: Problem with sessions.

2002-05-13 Thread Michael Virnstein
php4 sessions or self made? own session_set_save_handler? Let us see the login code! Ok...that's how i would do it: After successful login i'd register a variable or set the registered variable to a specific value. Now i check on every page: If (!IsSet($_SESSION[myLoginVar] ) ||

[PHP] Re: XML-parser

2002-05-13 Thread Michael Virnstein
http://sourceforge.net/projects/phpxpath/ [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I´m working on a little web shop solution for a school project, therefore I´m looking for a PHP XML-Parser or some source code I can get from somewhere.

Re: [PHP] template logic problem

2002-05-13 Thread Justin French
My problem is that for one page in the site I need to display a image in the navigation bar that is referenced from a database. The database query happens in the included file which is below the navigation in the html - This means i cant reference the image file name because the query hasnt

[PHP] Re: question about objects and references

2002-05-13 Thread Michael Virnstein
Sascha Mantscheff [EMAIL PROTECTED] schrieb im Newsbeitrag 02051311162204.02523@pico">news:02051311162204.02523@pico... When I pass an object as a parameter to a function as $this, this is an object reference (according to the docs). it depends on the function. if you call it by value, not

[PHP] CC Transactions with Vital Processing Services

2002-05-13 Thread Justin Farnsworth
I am curious if anyone on this list has written a PHP Class or even some spaghetti that properly interfaces with the Vital Processing Services credit card transaction gateway into associated banks? I have searched the list and have found nothing. Interfacing with this transaction gateway

[PHP] php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread John Ngo
basically i've got a file upload script (that works) what i want to do now is restrict it to filetypes of 'image/jpeg' however now i can't upload jpegs cause their filetype appears to be 'image/pjpeg' does anyone know of what could be happening here? -- PHP General Mailing List

[PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Jochem
Why don't you install Mysql on your local machine and do your testing ? Jochem R [EMAIL PROTECTED] schreef in bericht 000501c1fa4c$8fca8fc0$0a6da8c0@lgwezec83s94bn">news:000501c1fa4c$8fca8fc0$0a6da8c0@lgwezec83s94bn... Hey there guys, I have a slight problem which i could not solve via Java

Re: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Justin French
Yup, with local host you're not going to be able to access it from a remote machine (although it's worth asking your host). Just set up a test machine locally which is as close as possible to what your host runs (ie Unix, WinNT, whatever), with simular versions of PHP, Apache, MySQL, etc etc...

Re: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Robert Cummings
Justin French wrote: Yup, with local host you're not going to be able to access it from a remote machine (although it's worth asking your host). Actually you can connect to a mySQL database from a remote server. You just need to make sure that permissions are set up in the mysql table to

RE: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Mark Charette
Or read the man page on mysql_pconnect/mysql_connect ? -Original Message- From: Jochem [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 9:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Is This Possible? (Database - PHP) Why don't you install Mysql on your local machine and do your

Re: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Robert Cummings
Robert Cummings wrote: Justin French wrote: Yup, with local host you're not going to be able to access it from a remote machine (although it's worth asking your host). Actually you can connect to a mySQL database from a remote server. You just need to make sure that permissions are

[PHP] Re: php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread Jochem
I guess you could check the $userfile_type for the correct type. John Ngo [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... basically i've got a file upload script (that works) what i want to do now is restrict it to filetypes of 'image/jpeg' however now i

[PHP] Re: php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread John Ngo
actually i looked up pjpeg turns out its an actual filetype in its own right haha pjpeg uses progressive encoding as opposed to normal jpeg or something whats weirder is everyfile i've tried on my computer appears to be pjpeg encoded Jochem [EMAIL PROTECTED] wrote in message [EMAIL

RE: [PHP] Yahoo/Cobalt servers/PHP

2002-05-13 Thread SHEETS,JASON (Non-HP-Boise,ex1)
It is not necessary for MySQL Server to run on the same server as your web server, if the client is compiled you can connect to any MySQL server even if it is not on the local machine. Many hosts run seperate database servers on their LAN that you can connect to from your host, or they may have

Re: [PHP] XML-parser

2002-05-13 Thread Analysis Solutions
On Mon, May 13, 2002 at 02:00:49PM +0200, [EMAIL PROTECTED] wrote: Has anybody a good link to a tut or something else.. http://www.analysisandsolutions.com/code/phpxml.htm -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution

Re: [PHP] changing language on fly

2002-05-13 Thread Yura
Hi Miguel, That seems more coplecated to me. What I wanna do is to make a script to catch URL of my current page (lets say .../index.php?links=1) split it with on two on the '?' mark save as array and after changing first part 'index.php' to 'indexr.php' insert $array[0]+$array[1] back into

[PHP] Re: unhandled exception processing the ISAPI

2002-05-13 Thread Michael Kimsal
Keith Ay wrote: Hi all, I got a problem when using PHP Server: win2000(sp2) Version: 4.2.0 Application use: ODBC, sessions, oci8, oracle. I tried PHP ISAPI version (4.2.0) I am using generic client socket(i.e. fsockopen()) to communicate with a server. It work fine at the begin, but I

[PHP] header-sending misbehaving

2002-05-13 Thread erich
suppose i want to login to a privileged area sending header info to browser, however, i get header warning as follows when i go to a db system named eskuel: Warning: Cannot add header information - headers already sent by (output started at g:\wwwroot\vauth\auth.php:5) in

[PHP] Re: Referrals

2002-05-13 Thread Hugh Bothwell
When you select an item to look at, there is a section named: Customers who bought this item also bought: blah link one - blah description blah link two - blah description How is this done? Is there a reference to a new db which has the links and references them from there or do they

[PHP] Re: PHP and mySQL

2002-05-13 Thread Matthew Ward
I presume that quantity is the number of books that the person has ordered, and therefore it needs to be a variable (ie with a $ infront of it) and its also best to do the calculation outside of the SQL statement just to be sure it works, eg: if ($submit){ if(isset($booktitle)

RE: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-13 Thread Sebastian A.
I tried your suggestion already but It doesn't seem to work. I still can get it to be assigned to different parts of the array. Do you have any other suggestions? -Original Message- From: Kjartan Mannes [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 12, 2002 11:10 PM To: Sebastian A. Cc:

[PHP] Re: PHP file Opening Problem

2002-05-13 Thread Matthew Ward
It sounds like your just trying to open the file straight from your hard drive using IE. Unfortunately, PHP doesn't work like HTML files or JavaScript in that its not IE or any other web browser that makes PHP work. It is actually a server that works out all the PHP bits, puts it all in the right

Re: [PHP] Genus who came up with Self Destruct Code Copy Pro tection

2002-05-13 Thread Udo Giacomozzi
[EMAIL PROTECTED] (1lt John W. Holmes) wrote in 003301c1fa80$6cdfd1d0$2f7e3393@TB447CCO3:">news:003301c1fa80$6cdfd1d0$2f7e3393@TB447CCO3: The term I use is keeping honest people out Not necessarily. If the whole thing is designed the right way. A copy protection I like for example are

[PHP] Re: question about objects and references

2002-05-13 Thread Michael Virnstein
here's an example of what i said: ?php class obj { Var $a = 1; function byVal() { byVal($this); } function byRef() { byRef($this); } } function byVal($obj) { echo $obj-a += 1; } function byRef($obj) { echo $obj-a += 1; }

[PHP] bridge php java windows php_java

2002-05-13 Thread julien griffon
bonjour je cherche à réutiliser mon code java en php pour cela j'utilise le package php_java seulement je ne parviens pas à installer corectement. ma config jdk1.4.0 php4.2 win2000 dans easyphp.ini j'ai ajouté cela [java] java.class.path= D:\Program

[PHP] Import/Export with MS outlook/Outllok Express

2002-05-13 Thread Amit Singh
Hi Folks, Can anybody help me getting a piece of code for processing a file(csv format) having MS Outlook/Outlook Express addresses. I want to read the file line by line taking care of possible multiline entries in any field of the record. Please help. Regds, Amit

Re: [PHP] Import/Export with MS outlook/Outllok Express

2002-05-13 Thread 1LT John W. Holmes
The manual is your friend...go ahead...give it a try... http://www.php.net/manual/en/function.fgetcsv.php - Original Message - From: Amit Singh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 6:04 AM Subject: [PHP] Import/Export with MS outlook/Outllok Express Hi

Re: [PHP] Import/Export with MS outlook/Outllok Express

2002-05-13 Thread Rasmus Lerdorf
php.net/fgetcsv On 10 May 2002, Amit Singh wrote: Hi Folks, Can anybody help me getting a piece of code for processing a file(csv format) having MS Outlook/Outlook Express addresses. I want to read the file line by line taking care of possible multiline entries in any field of the record.

[PHP] Need help with Arrays

2002-05-13 Thread Hall, Tony, JCW
Hello, I'm new to this group and already have a problem (actually the problem is the reason I found the group). I'm taking a Fundamentals of Programming class, and they are using PHP to get the message across. I'm having a lot of trouble passing the values in the first array to the second array.

[PHP] An array of objects?

2002-05-13 Thread Nathan
I have some data I need to store in the session array and I'm not exactly sure how to get it there and get it back... I have a list of room ID numbers, and each room ID has a few attributes I need to keep track of. I end up with a listing like so: room_id = 1, room_name = Bob's Room,

[PHP] How *not* to assume MySQL will return data?

2002-05-13 Thread Chris Knipe
Hiya all, Stock standard, and from most of the examples I've seen, standard MySQL lookups via PHP utlises a while look to retrieve the data. All very nice and well yes... But what if there is no data? Here's a little example of what I want to do... // Check for inportaint notices for the

[PHP] Script executes for longer than 30s

2002-05-13 Thread PHPCoder
HI I wrote a basic script that takes the input of a textfield and passes it onto the system() function and then echo's the result, somethinglike this: ?php $result = system($command); echo $result; ? The $command is sent from the previous page via text field. Whe I test this and do something

Re: [PHP] How *not* to assume MySQL will return data?

2002-05-13 Thread Chris Knipe
H. There's no way to do it *without* having to submit two queries to the database? I'm thinking load wise here. The query (or block), would be displayed on every single page in my app - sort of like a shared border type thing... Now, when I have say, 20 pages in the site, 250

Re: [PHP] header-sending misbehaving

2002-05-13 Thread Jason Wong
On Monday 13 May 2002 23:47, erich wrote: suppose i want to login to a privileged area sending header info to browser, however, i get header warning as follows when i go to a db system named eskuel: Warning: Cannot add header information - headers already sent by (output started at

Re: [PHP] Script executes for longer than 30s [SECURITY CONCERN]

2002-05-13 Thread Dan Hardiker
If this was a geniune script (which I hope it isnt) and was webaccessable with register globals on ... I could just do page.php?command=rm+-Rf+/ and do some serious damage. Just worth noting. HI I wrote a basic script that takes the input of a textfield and passes it onto the system()

Re: [PHP] How *not* to assume MySQL will return data?

2002-05-13 Thread Jason Wong
On Tuesday 14 May 2002 01:36, Chris Knipe wrote: H. There's no way to do it *without* having to submit two queries to the database? I'm thinking load wise here. The query (or block), would be displayed on every single page in my app - sort of like a shared border type thing...

[PHP] Reading dir contents...

2002-05-13 Thread Ashley M. Kirchner
Take this function: function randomImg() { $numargs = func_num_args(); $ImgArray = array($numargs-1); $arg_list = func_get_args(); $ImgDir = $arg_list[0]; srand((double)microtime()*1234567); $img = $arg_list[rand(1,count($arg_list)-1)];

Re: [PHP] Reading dir contents...

2002-05-13 Thread Jason Wong
On Tuesday 14 May 2002 01:50, Ashley M. Kirchner wrote: Can PHP do this; open that directory, read its contents and use it (if so, how?) Or do I have to go to Perl for this? RTFM Directory functions -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re: [PHP] Script executes for longer than 30s

2002-05-13 Thread PHPCoder
Hi Chris The script is not meant to run ping, I just used it as a test and then noticed that it does not time out as I would have expected. The problem is thus that if it is used on the command it is intended for and that command actually just keeps on going and going for whatever reason, I

Re: [PHP] Reading dir contents...

2002-05-13 Thread Jason Soza
Use opendir(), readdir(), and closedir() - http://www.php.net/manual/en/function.opendir.php HTH, Jason Soza - Original Message - From: Ashley M. Kirchner [EMAIL PROTECTED] Date: Monday, May 13, 2002 9:50 am Subject: [PHP] Reading dir contents... Take this function:

[PHP] session problems...

2002-05-13 Thread Jas
Ok I think I am a little confused as to if this is working or not: I have commented in the places where I am confused... if someone could please point out why the variables u_name p_word are not being registered that would help me out a ton... thanks in advance, Jas --- Form to log user in ---

Re: [PHP] IMPORTANT question for anyone using XSLT

2002-05-13 Thread Erik Price
Jeff, I never thanked you for this sample code you sent me. I have dropped the XSLT from the current application I'm working on, but when I have opportunity to look into it again, I will find it most helpful. Thanks again, Erik On Friday, April 12, 2002, at 04:42 PM, Jeff Levy

[PHP] Apache2

2002-05-13 Thread Frank Miller
All, I've gotten some very good answers from the knowledgable people on this list so I thought I would ask a question that I've been wondering about and maybe other people have too. I'm running a Linux 7.2 server with MySQL, Php 4.20 and Apache 1.3.24. I followed some

Re: [PHP] Script executes for longer than 30s

2002-05-13 Thread Dan Hardiker
Because system operates outside of the PHP scope, I think the timer is suspended for the duration of the exection. Seems to be the obvious answer here. Hi Chris The script is not meant to run ping, I just used it as a test and then noticed that it does not time out as I would have expected.

Fw: [PHP] session problems...

2002-05-13 Thread Kevin Stone
Manual = http://www.php.net/manual/en/ref.session.php The function session_start(); must be executed prior to any headers sent on any script you wish to call the session variables into. Typically you would simply put session_start(); as the first line of each page. So..

[PHP] Combine 2 Db Columns with an Array?

2002-05-13 Thread PHP User
I am trying to find the best way to combine 2 columns in a MySQL Db call into one by using an array. I’ve tried array_push, implode, explode, array_merge and extract all with no luck. I feel I am close but have read all I can and still am hitting a dead end. I need to select a Title and

Re: [PHP] Apache2

2002-05-13 Thread Danny Shepherd
Hi, Yes, I have both 1.3.24 and 2.0.36 installed - both with the PHP4.2.0 mod compiled. You simply compile and install both servers and the compile modphp for each server (i.e. once with --with-apxs and once with --apxs2) abd that's all there is to it. I'm running FreeBSD 4.5 btw, but I don't

Re: [PHP] Combine 2 Db Columns with an Array?

2002-05-13 Thread Chris Knipe
This is SQL not PHP You should be doing something like SELECT COLUMB + CLOLUM AS Something, SomethingElse, AnotherSomethingElse FROM TABLE Then you can reference Something as a normal colum in any database table Such as echo $Something... I'm not to sure about the syntax, have a look

[PHP] Re: Reading dir contents...

2002-05-13 Thread Jas
here is a function to read the contents of a directory that then pulls it into a drop down select list. You may want to modify it for your needs but this should work for you. $dir_name = /virtual/path/to/images/directory/; $dir = opendir($dir_name); $file_list .= pFORM METHOD=\post\

Re: [PHP] How *not* to assume MySQL will return data?

2002-05-13 Thread 1LT John W. Holmes
$result = mysql_query(...); if($row = mysql_fetch_array($result)) { do { //loop through results }while($row = mysql_fetch_array($result)); } else { echo No rows returned; } You could also just check mysql_num_rows() to see if any were returned and base your if off of that. ---John

[PHP] Question about string replace -PHP

2002-05-13 Thread Dan McCullough
I have a script pulling in certain text from a site. I want the script to then from that retrieved text, to replace the incorrect domain with another domain. What is a way that I can do that, I know the domain that its going to put in the script, and I know the domain that I want to point it

Re: [PHP] header-sending misbehaving

2002-05-13 Thread 1LT John W. Holmes
On Monday 13 May 2002 23:47, erich wrote: suppose i want to login to a privileged area sending header info to browser, however, i get header warning as follows when i go to a db system named eskuel: Warning: Cannot add header information - headers already sent by (output started at

Re: [PHP] session problems...

2002-05-13 Thread 1LT John W. Holmes
In addition to what Kevin said: $_SESSION and $_session are not the same variables. Use quotes in your session_register(), too: session_register(u_name), although you don't need session_register() at all, if you are using $_SESSION['u_name'] = value; syntax. ---John Holmes... Ok I think I

Re: [PHP] Question about string replace -PHP

2002-05-13 Thread Jason Wong
On Tuesday 14 May 2002 03:06, Dan McCullough wrote: I have a script pulling in certain text from a site. I want the script to then from that retrieved text, to replace the incorrect domain with another domain. What is a way that I can do that, I know the domain that its going to put in the

[PHP] Re: Question about string replace -PHP

2002-05-13 Thread Bram van Leur
Replacing a constant string by another constant string works easily with str_replace (http://www.php.net/str_replace). More advanced replacements (with dynamic parts for example) can be replace using Regular expressions (look that up in the Manual, it's quite complex). Could give an example

Re: [PHP] Genus who came up with Self Destruct Code Copy Protection

2002-05-13 Thread Miguel Cruz
On 13 May 2002, Udo Giacomozzi wrote: If the whole thing is designed the right way. A copy protection I like for example are dongles. Ok, they are not applicable to PHP and aren't 100% secure either [don't want to start a discussion about this now]. But this system makes no problems for

Re: [PHP] Combine 2 Db Columns with an Array?

2002-05-13 Thread Miguel Cruz
On 13 May 2002, PHP User wrote: I am trying to find the best way to combine 2 columns in a MySQL Db call into one by using an array. I’ve tried array_push, implode, explode, array_merge and extract all with no luck. I feel I am close but have read all I can and still am hitting a dead end. I

Re: [PHP] Need help with Arrays

2002-05-13 Thread Miguel Cruz
Can you be more specific about what you mean by I'm having a lot of trouble passing the values in the first array to the second array? You have a lot more than two arrays, so we don't know which are the first and second. And you are passing a lot of things around, so we don't know where you are

RE: [PHP] PHP Boolean Interpreter - Need to search a mySQL database

2002-05-13 Thread SpamSucks86
This is no good because it doesn't check for single or double quotes. Inputting anything with quotes gives ugly ugly errors. Plus, Boolean interpreters should group quoted words as a single term. It doesn't check for malicious code input at all. I tried editing it to make it better, but after

[PHP] css sheets in designs

2002-05-13 Thread Dennis Gearon
CSS sheets have to be in the document root somewhere, don't they? I'm trying to move as much, or at least what I consider security related, from the phpnuke in the document root to a directory outside of the document root. -- If You want to buy computer parts, see the reviews at:

Re: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-13 Thread Analysis Solutions
On Mon, May 13, 2002 at 05:49:04PM +0200, Sebastian A. wrote: function elementContent($parser, $data, $attrs='') { global $tag, $p; $ti = sizeof( $tag ) - 1; if ( $tag[$ti] == 'LIST_ITEM' ) { $p-ART_ID[] = $data; } } You're not posting

  1   2   >