[PHP] Display Records in Multiple Pages

2002-06-27 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

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

2002-06-27 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

RE: [PHP] Display Records in Multiple Pages

2002-06-27 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

[PHP] Vars to use in stats program

2002-06-27 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

Re: [PHP] Display Records in Multiple Pages

2002-06-27 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

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

2002-06-27 Thread René Moonen
snip 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). /snip Hum, I did spent some time yesterday on exactly that, but with no success (yet). I'm using Linux RedHat 7.1. Expat

[PHP] Re: Fork Or Cron?

2002-06-27 Thread BB
what would the adult/child be doing? Apokalyptik [EMAIL PROTECTED] wrote in message 1025128477.26152.23.camel@BlackHole">news:1025128477.26152.23.camel@BlackHole... I'm the author of a little used, little cared about ftp indexing script (http://www.apokalyptik.com/ftp/) and i'm working on -

Re: [PHP] Display Records in Multiple Pages

2002-06-27 Thread Aqua
The LIMIT function is working, thanks. But how to generate back / forward links using html/php? Thanks for your help. Aqua - Original Message - From: Justin French [EMAIL PROTECTED] To: Aqua [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 27, 2002 1:56 PM Subject: Re: [PHP]

Re: [PHP] Display Records in Multiple Pages

2002-06-27 Thread Justin French
well, establish how many you want per page ($perpage = 25). so your first limit will obviously be 0 and 25. since the offset is 0, there is no back button page 1, and the forward button is something like view.php?offset=25. then on subsequent pages, you use the $offset and $perpage to create

[PHP] Getting all letters not in a string?

2002-06-27 Thread Leif K-Brooks
What is the easiest way to get an array of all letters not in a string? I.e. $array = notinstring(abc); //returns array of: d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Accessing cookies in required files

2002-06-27 Thread Chris Morrow
Hi, Can anyone help with this problem? I have a file called settings.inc which I include in all files on my site like this: require(settings.inc); Up until now this has worked fine. But now I have a function in the settings.inc file that tries to read the value of a cookie called testcookie.

[PHP] MySQL fetch data

2002-06-27 Thread Jefferson Cowart
Is there any way to return all the rows returned by a mysql query with one command. Currently I have to run through a for or while loop the same number of times as there are rows and take that row and copy it to an array. I end up with an array of arrays but it seems like it would be a common

Re: [PHP] Display Records in Multiple Pages

2002-06-27 Thread Aqua
Thanks! It's working. I got your point after I think about it. Below is my trial script. Sorry for bothering you guys since I'm a beginner. Thanks again. Aqua .. $sql = select news_id, news_subj, news_precontent, news_content, news_home from news order by news_id limit $numInc,2; ... ?

Re: [PHP] Accessing cookies in required files

2002-06-27 Thread Leif K-Brooks
This sounds like a problem with the function, not file. Are you globaling the variable with the cookie? Chris Morrow wrote: Hi, Can anyone help with this problem? I have a file called settings.inc which I include in all files on my site like this: require(settings.inc); Up until now this

Re: [PHP] MySQL fetch data

2002-06-27 Thread Jason Wong
On Thursday 27 June 2002 16:20, Jefferson Cowart wrote: Is there any way to return all the rows returned by a mysql query with one command. I don't think there is a built-in command to do so. Currently I have to run through a for or while loop the same number of times as there are rows

RE: [PHP] MySQL fetch data

2002-06-27 Thread John Holmes
Is there any way to return all the rows returned by a mysql query with one command. Currently I have to run through a for or while loop the same number of times as there are rows and take that row and copy it to an array. I end up with an array of arrays but it seems like it would be a

Re: [PHP] Getting all letters not in a string?

2002-06-27 Thread Jason Wong
On Thursday 27 June 2002 16:12, Leif K-Brooks wrote: What is the easiest way to get an array of all letters not in a string? I.e. $array = notinstring(abc); //returns array of: d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z One way is to convert both entities into arrays then use array_diff().

RE: [PHP] Accessing cookies in required files

2002-06-27 Thread John Holmes
Function whatever() { global $testcookie; or global $HTTP_COOKIE_VARS; or upgrade your PHP and jus use $_COOKIE['testcookie'] and it's always available, regardless of scope. ---John Holmes... -Original Message- From: Chris Morrow [mailto:[EMAIL PROTECTED]] Sent: Thursday,

Re: [PHP] Accessing cookies in required files

2002-06-27 Thread Chris Morrow
Thanks, globalising it has sortd it out. John Holmes [EMAIL PROTECTED] wrote in message 000401c21db7$47aee4a0$b402a8c0@mango">news:000401c21db7$47aee4a0$b402a8c0@mango... Function whatever() { global $testcookie; or global $HTTP_COOKIE_VARS; or upgrade your PHP and jus use

RE: [PHP] Seperating presentation from logic

2002-06-27 Thread SP
Very cool John, you should forward that to pattemplate and they could see what to improve. One thing they could do is just implement caching like smarty templates does and you can't beat servering up static files. -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] More on removing item from cart

2002-06-27 Thread SP
Anytime I use arrays I use what John suggested but add pre/pre around it. If you do that then the array becomes very clear. echo pre, print_r($_SESSION), /pre; -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: June 27, 2002 12:44 AM To: [EMAIL PROTECTED] Subject:

[PHP] setlocale() and local date

2002-06-27 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all Having trouble with setlocale() and displaying a local date in my php. setlocale(LC_ALL, dk_DK); $date=strftime(%A %B %G); print($date); The setlocale is returning FALSE so I'm getting just the english date, I must be missing something but

[PHP] fsockopen and HTTP/1.1???

2002-06-27 Thread Alex Elderson
Hi, I build a few functions to open webpages on the internet. But it doesn't work very well, the first page is good the second page isn't good. The output of this script will be somthing like this: open connection to webapps.hardinxveld.netflex.nl oke get / done get / failt Closing

Re: [PHP] New Newsgroups

2002-06-27 Thread Alex Elderson
I got the same popup. In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... 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

Re: [PHP] Problem with Apache2/PHP4.2.1

2002-06-27 Thread Danny Shepherd
Try actually looking in the Apache2 manual - http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo HTH Danny. - Original Message - From: Simon Grabowski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 23, 2002 3:08 PM Subject: [PHP] Problem with Apache2/PHP4.2.1

Re: [PHP] Another Pop-Up problem..

2002-06-27 Thread Marek Kilimajer
My guess is that there is no new window opened, because you call window.open with window name that allready exists, so instead of: function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } try: var threadWindow; function

[PHP] PHP and OOP

2002-06-27 Thread Barýþ
i want to build a site in fully OO style but that will significantly slow down execution time and i'm about to make a u turn to procedural PHP programming on my project. that article is responsible of changing my decision: http://zend.com/zend/art/mistake1.php#Heading13 besides it will be

[PHP] gdlib list or galleries?

2002-06-27 Thread William S.
Is there a mailing list just dedicated to gdlib or any places that show a gallery with examples? I would be interested in seeing examples of images that are complex/artistic and beyond simple rectangles and boxes. -- Bill Amsterdam, NL -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Vars to use in stats program

2002-06-27 Thread Alex Elderson
Php [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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

Re: [PHP] PHP and OOP

2002-06-27 Thread Danny Shepherd
This article's been around for ages. I OO design wherever I think it'll make the code more portable and extendable later on. From what I've seen, the slow down is negligible rather than considerable. But you write how you want to write and I'll write how I want to write. HTH Danny. -

Re: [PHP] base64_encode

2002-06-27 Thread Rouvas Stathis
Hi, RFC2045: Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies para 6.8 Base64 Content-Transfer-Encoding URL:ftp://ftp.ntua.gr/pub/docs/rfc/20xx/2045 or your favorite RFC repository -Stathis. Gerard Samuel wrote: Thanks Andrew Braund wrote:

Re: [PHP] MySQL fetch data

2002-06-27 Thread Chris Hewitt
Jefferson, I am wondering why you would want to do this. If you get the sql statement to order the rows the way you need to use them then there should not be a need to refer back to earlier rows. I sometimes need to know if one field has the same value as in the previous record, so I keep

Re: [PHP] Seperating presentation from logic

2002-06-27 Thread Jesper Brunholm
John Holmes wrote: You really want a template system. Check out Smarty or patTemplate. Devshed.com has a nice two part tutorial on patTemplate and I like how it looks a little better than Smarty right now. Might want to evaluate both and see which is faster or easier. Great idea - except

[PHP] Getting value back from fsockopen?

2002-06-27 Thread Jeff Lewis
Currently I am using fsockopen on my IP and a port and when sending a UDP request it always says it's open. Now, what I'm trying to do is see if I have an application running on there. This application listens to the port I'm trying to hit. Is there a way with fsockopen I can do this? Instead of

[PHP] Re: setlocale() and local date

2002-06-27 Thread Jesper Brunholm
Hello Nick Nick Wilson wrote: Having trouble with setlocale() and displaying a local date in my php. setlocale(LC_ALL, dk_DK); I'm using: setlocale(LC_TIME, 'danish'); which works fine for me... btw: if you speak Danish then the dk.edb.internet.webdesign.serverside.php might be worthwile

[PHP] Re: PHP and OOP

2002-06-27 Thread Jesper Brunholm
[EMAIL PROTECTED] wrote: i want to build a site in fully OO style but that will significantly slow down execution time Do you have any documentation on this? - I'm getting quite used to read and hear the very opposite. Previously programmers even argued that asp was faster than php because

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

2002-06-27 Thread Kondwani Spike Mkandawire
I forgot to point out another disadvantage of turning on register_globals apart from that of security is that when you are sending a page with a form to the same page, e.g: form name=whatever action=$PHP_SELF method=post there is a tendency to lose info.. E.g. If you are sending text separated

[PHP] Easier way to seperate variables?

2002-06-27 Thread Leif K-Brooks
I am trying to put a variable within a print END. The thing is, I want text directly after it - which php will include in the variable name. I have to END; and use another print $variable;. Is there an easier way to seperate the variable? -- PHP General Mailing List

[PHP] Re: PHP and OOP

2002-06-27 Thread Kondwani Spike Mkandawire
I still don't get what the big fuss of OO programming is about I do agree that it is stylistic hence helps someone else who hasn't written your code to follow up on what you are doing... But so far the programs I have been writing in OO supported languages have been written and scripted on an as

[PHP] help pls!

2002-06-27 Thread adi
how to make a changerate.php file for: Read a file: rate.php Find string : 'USD' = '0.33' Put '0.33' value in an editable textbox. I can change this value, let's say to 0.35; I Have an Update Button, when I press, the new value (0.35) change with old value (0.33) in rate.php like this: 'USD' =

Re: [PHP] Re: setlocale() and local date

2002-06-27 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Jesper Brunholm declared Having trouble with setlocale() and displaying a local date in my php. setlocale(LC_ALL, dk_DK); I'm using: setlocale(LC_TIME, 'danish'); which works fine for me... Great! Thanks very much, btw: if

Re: [PHP] Easier way to seperate variables?

2002-06-27 Thread Justin French
what about wrapping the $variable in {}'s ?? END{$variable} I'm not 100% sure it works in the case of an END, but for everything else, it workds great. Justin French on 27/06/02 10:11 PM, Leif K-Brooks ([EMAIL PROTECTED]) wrote: I am trying to put a variable within a print END. The thing

[PHP] RE: trans-id enabled not working?

2002-06-27 Thread Jerry Artman
UPDATE! I tried NN7 last night and it works without the phpsessid. Perhaps I should go back to NN4.7 and try it? I'll double check the cookie settings on all. Since my project is for schools everyhting needs to work without cookies. Jerry Artman interactivemedianet.com -- PHP General

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Jay Blanchard
[snip] I still don't get what the big fuss of OO programming is about ...How many of us have done so? Could some one please point out another feasible advantage of OO programming a part from the fact that I would make someone else's work easier by using this style of programming... [/snip] It's

Re: [PHP] help pls!

2002-06-27 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then adi declared how to make a changerate.php file for: I think a specific problem and a helpful subject line might get a better response for you. - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version:

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

2002-06-27 Thread Marek Kilimajer
If they are the same the difference will be in $HTTP_HOST and (if different) $SERVER_ADDR, but you want be able to find that out in a gif file. Rasmus Lerdorf wrote: That is the technical difference. Both will make HTTP requests and issue a GET request to fetch the image file. One opens a

Re: [PHP] help pls!

2002-06-27 Thread adi
The files are: changerates.php file ? include('rates.php'); ? html head titleTitle here!/title /head body ? if (isset($save)) { $currency_rates[USD]== $text; } ? br ? print_r($currency_rates[USD])? form method=post action=?=$php_self? input type=text name=text input

Re: [PHP] Another Pop-Up problem..

2002-06-27 Thread Erik Price
On Wednesday, June 26, 2002, at 08:39 PM, Doug Coning wrote: 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

[PHP] Detecting Browser Type/OS from HTTP_USER_AGENT

2002-06-27 Thread Patrick Teague
Hey, Currently I'm trying to set up a system on the website to detect the OS the browser type version of incoming traffic. Is there an easier way to do this than trying to parse the HTTP_USER_AGENT variable? I'm coming from an ASP/VBScript background these were specific variables as part of

Re: [PHP] Display Records in Multiple Pages

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 02:56 AM, Justin French wrote: 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.

Re: [PHP] include_module()

2002-06-27 Thread Marek Kilimajer
Hi, instead of include_module() use int *dl* ( string library) Loads the PHP extension defined in /library/. Other questions: array *get_defined_functions* ( void) This function returns an multidimensional array containing a list of all defined functions, both built-in (internal) and

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

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 03:14 AM, René Moonen wrote: Compiling and installing Expat and Sablotron works fine (so it seems) but after that I get errors compiling PHP with XSLT options. Compiling without the XSLT options works just fine. These are the PHP options I use:

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

2002-06-27 Thread Patrick Teague
I check for the occurrence of the search string if($pos=strpos ($line, $strfrom)) I hope this isn't exactly the way it is in your code. It should be 2 =s. if($pos==strpos ($line, $strfrom)) otherwise with only 1 = you assign the right hand value to the left hand variable even within the if

[PHP] PHP include_path

2002-06-27 Thread Tim Nields
I am running php4.2.1. I tried to use a simple include() coommand, but the path that it defaults to is /usr/local/lib/php. Can anyone tell me how to change this? Thanks Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL fetch data

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 04:20 AM, Jefferson Cowart wrote: Is there any way to return all the rows returned by a mysql query with one command. Currently I have to run through a for or while loop the same number of times as there are rows and take that row and copy it to an array. I

Re: [PHP] PHP include_path

2002-06-27 Thread Matt Williams
On Thursday 27 June 2002 17:13, you wrote: I am running php4.2.1.  I tried to use a simple include() coommand, but the path that it defaults to is /usr/local/lib/php.  Can anyone tell me how to change this? Thanks You can change this either in your php.ini or add it to a .htaccess as;

Re: [PHP] OOP assistance request

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 04:44 AM, Andrew White wrote: On Wednesday, June 26, 2002, at 04:48 pm, Erik Price wrote: My problem is that I have no way to know which type of object to instantiate in advance -- all I have is this primary key. Using the primary key to instantiate an

RE: [PHP] Seperating presentation from logic

2002-06-27 Thread SP
I can only talk about smarty but the designers can use as little or as much of the features in the template. For example: Typing {$app_version} in an ordinary html file could display Greatest Application version 3.3. If your programmer changes the value to Greatest Application version 4.0, the

[PHP] Changing Session ID

2002-06-27 Thread Riaan Stander
Hi there I've got the following cenario. I got a general user page with a Login button next to each user. This button only opens a new browser window by setting the target in the form tag and submits the username, password, button value, and a newsess flag to the login page in the new browser

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread SP
OO is slower then procedural. You can test that out yourself or look at this article where the guy did a very basic test. Maybe they will fix the speed problem by the time php5 comes around. http://www.phpbeginner.com/columns/demitrious/objects/8 -Original Message- From: Kondwani

Re: [PHP] Re: PHP and OOP

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 08:10 AM, Kondwani Spike Mkandawire wrote: I still don't get what the big fuss of OO programming is about I do agree that it is stylistic hence helps someone else who hasn't written your code to follow up on what you are doing... But so far the programs I

Re: [PHP] Detecting Browser Type/OS from HTTP_USER_AGENT

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 08:57 AM, Patrick Teague wrote: Has anyone else done something similar to this? The main purpose for doing this is to find out what clients are using the most so that we can provide content more specific to the browsers. I've noticed things that work

Re: [PHP] rar error in session management

2002-06-27 Thread Analysis Solutions
Hi Andy: On Wed, Jun 26, 2002 at 06:51:16PM +0200, Andy wrote: I have written an own session management. Workes fine, but recently after more people signed up there has appeared an error. In some cases when people submit reports the userID cant be filtered out of the database (there is a

Re: [PHP] Apache Directives for php as module

2002-06-27 Thread Jason Wong
On Thursday 27 June 2002 02:49, Jason G Trusty wrote: 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? If

Re: [PHP] PHP include_path

2002-06-27 Thread Jason Wong
On Thursday 27 June 2002 21:31, Matt Williams wrote: On Thursday 27 June 2002 17:13, you wrote: I am running php4.2.1. I tried to use a simple include() coommand, but the path that it defaults to is /usr/local/lib/php. Can anyone tell me how to change this? Thanks You can change

Re: [PHP] Re: Fork Or Cron?

2002-06-27 Thread apokalyptik
The parent process would be examining data in a database and moving it around to where it needs to be... then signifying to the child processes what needs to be done. the child processes would only touch the part of the database assigned to them by the parent process... the point is to have one

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

2002-06-27 Thread James Clifford
On Thu, Jun 27, 2002 at 09:14:32AM +0200, René Moonen wrote: snip 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). /snip Hum, I did spent some time yesterday on exactly that, but

Re: [PHP] Display Records in Multiple Pages

2002-06-27 Thread Jason Wong
On Thursday 27 June 2002 21:22, Erik Price wrote: On Thursday, June 27, 2002, at 02:56 AM, Justin French wrote: 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

[PHP] Uploading files

2002-06-27 Thread Tyler Longren
Hello, I usually use this code to upload files when I have a form with input type=file name=passcodeFile It no longer works for some reason: $data = fread(fopen($_POST[passcodeFile], r), filesize($_POST[passcodeFile])); Here are the errors that it produces: Warning: fopen(, r) - Success in

[PHP] performance, memory objects

2002-06-27 Thread Erik Price
Since we are on the topic of objects with PHP, what is the best way to free the memory being used by an object? A lot of examples use unset($objReference). But when freeing the memory used by a large string, it's best to assign that string's reference variable to an empty string, ($str = ;)

Re: [PHP] Gradients using GD

2002-06-27 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

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

2002-06-27 Thread René Moonen
snip I had the same problem yesterday afternoon, trying to compile PHP with Sablotron 0.95. Last week, I did a compile with Sablotron 0.90 and everything was good, so I downgraded 0.95 to 0.90 and was able to successfully build PHP. /snip That did it for me also... thanks René -- PHP

Re: [PHP] passing variable arguments from select

2002-06-27 Thread Haddad Said
I still cant get it right, in query.php i have this piece of code; echo form action='test2.php' action='post' select name='language' option value='0'selected='yes'one/option option value='1'two/option /select input type=text name=query input type=submit name=submit /form; and in test2.php i

Re: [PHP] passing variable arguments from select

2002-06-27 Thread Mark Heintz PHP Mailing Lists
On Thu, 27 Jun 2002, Haddad Said wrote: in query.php i have this piece of code; echo form action='test2.php' action='post' select name='language' option value='0'selected='yes'one/option option value='1'two/option /select input type=text name=query input type=submit name=submit /form;

Re: [PHP] passing variable arguments from select

2002-06-27 Thread Haddad Said
Yes I changed that, but now it always echoes EngP=0 Mark Heintz Php Mailing Lists [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, 27 Jun 2002, Haddad Said wrote: in query.php i have this piece of code; echo form action='test2.php' action='post'

Re: [PHP] passing variable arguments from select

2002-06-27 Thread Haddad Said
I just found out the $_POST['language'] is always assigned the value Array. Since a user must choose either of the options and not both, I would rather do this without arrays, is there another way? Haddad Said [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Yes

[PHP] Sessions and 4.2.1

2002-06-27 Thread Steve Heath
Why can I not write any session information to my MySQL database? System: SunOS sunblade1 5.8 Generic_108528-13 sun4u sparc SUNW,Sun-Blade-100 Server Software: Apache/2.0.36 (Unix) PHP/4.2.1 I am using the following to handle sessions: session_mysql.php PHP4 MySQL Session Handler by Ying Zhang

[PHP] searching all open sessions

2002-06-27 Thread Dave
Is there any way (built in function or otherwise) to search for a value across all open sessions? Here's the problem: A user logs in, a new session is created and their user_id is saved as a session variable. 10 minutes later the same user logs in through a new second browser window, and

[PHP] Interfacing with Verisign

2002-06-27 Thread Miva Guy
I'm finishing up a site for an organization that wants to have members register online. I've done shopping carts in other languages before prior to CyberCash's decline. Before I get started, I wonder what requirements I'll need and if anyone has some good examples of the final stage of a

[PHP] INCLUDE vs Functions

2002-06-27 Thread Jeff Gannaway
I'm re-writing a medium-sized commercial site in PHP. There will be elements that will on nearly every page. I was considering writing each element as a program and then using INCLUDE statements wherever I wanted that element displayed. Now I'm wondering if grouping all those elements into

[PHP] Best Delete Confirmation Script

2002-06-27 Thread Shane
Greetings. I would like your opinions on the best way to implement an Are You Sure You Want To Do This? dialog for an Admin user when they go to delete a record in a DB. Do you find that a whole page is usually required for this, or does anyone have any nice pop up solutions for such a query.

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Jeff Lewis
Shane, I use a javascript prompt. When you click OK, it passes the information on to the PHP script to do the work :) Jeff - Original Message - From: Shane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 27, 2002 12:48 PM Subject: [PHP] Best Delete Confirmation Script

RE: [PHP] INCLUDE vs Functions

2002-06-27 Thread Fifield, Mike
I cannot answer this for sure but my guess would be that having separately included files would be faster. There are two reasons for this. First functions are almost always slower then regular php code. Second you will be loading the entire Routines.php on every page even if you only require one

[PHP] PHP Security

2002-06-27 Thread Lazor, Ed
Does anyone have favorite links related to PHP security? My Google searches have been bringing up a lot of info, but I'd like to make sure everything's covered. My idea is to collect advice and recommendations on design, style, and methodologies for secure PHP programming. I will be organizing

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Dennis Moore
It really depends on how complex your site/application is... I really like using a popup window with some Javascript that refreshes the parent/opener page upon updating or executing the PHP. It then closes the popup window. If the user says no, it just closes the window. This gives the use a

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Richard Baskett
This is the one that I use: script language=JavaScript !-- function confirmSubmit(text) { var yes = confirm(text); if (yes) return true; else return false; } // -- /script input type=submit name=Delete value=Delete onclick=return confirmSubmit('Are you sure you want to DELETE this

[PHP] PHP Oracle 8 Functions Efficiency Problem

2002-06-27 Thread notoriousvic_ca
I have an HTML form which allows users to query data in an Oracle 8 Database. Usualy a search may return over 100 records so I diplay 10 records per page. I would like to make the search more efficient by using the OCISetPrefetch to prefetch the first 10 records. This works great for the first

[PHP] Help - PHP4

2002-06-27 Thread ER Lees
PHP$ is goiving me pagefaults (example below). System - Win 98 Apache 1.3.12 PHP 4.0.06 Any help GREATLY appreciated!! Thks Richard PHP caused an invalid page fault in module PHP4TS.DLL at 0177:1008d92e. Registers: EAX=011bed00 CS=0177 EIP=1008d92e

Re: [PHP] Re: PHP and OOP

2002-06-27 Thread Remy Dufour
I've tested thecode and there is what i've got Proceduraltook 1.24408602715 seconds OOtook 1.24240803719 seconds Here is the code. Test it by yourself ?phpfunction getmicrotime(){list($usec, $sec) = explode( ,microtime());return ((float)$usec + (float)$sec);}function

[PHP] HTTP1.1

2002-06-27 Thread Gerard Samuel
Kinda off topic, but it deals with a php script Im writing. Ive been using dynamic strings to create relative links like - a href=../../somefile.phpsomefile/a I was wondering if this is a no no according to http 1.1 specs. ie absolute links - a

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 12:48 PM, Shane wrote: I would like your opinions on the best way to implement an Are You Sure You Want To Do This? dialog for an Admin user when they go to delete a record in a DB. Do you find that a whole page is usually required for this, or does

RE: [PHP] HTTP1.1

2002-06-27 Thread Cal Evans
It's not so much a no-no as it is bad form. It makes it very difficult to re-arrange your site at a later date or move that page. For your own peace of mind and those who come behind you, absolute links in the form of href=/correct/path/to/the/file.php should be used. You can omit the http://

Re: [PHP] Re: PHP and OOP

2002-06-27 Thread B i g D o g
You also need to remember that these tests need to be run 100s of times and then calculate the avg. However, as we can assume there is really not going to be a big difference between the two. Its not like they are whole seconds apart. B i g D o g - Original Message - From: Remy

Re: [PHP] HTTP1.1

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 01:39 PM, Gerard Samuel wrote: I was wondering if this is a no no according to http 1.1 specs. ie absolute links - a href=http://host/correct_path_to_file.php;somefile/a I briefly looked through through the specs, but it didn't say that links/urls

[PHP] Buy Sell

2002-06-27 Thread César Aracena
Hi all. Have anyone used a PHP pre-made program before that can manage classifieds by only administrator managed? I want to set up a Buy Sell site for houses, vehicles, etc… Pretty much like a Real State on-line site. Any help appreciated, Cesar Aracena mailto:[EMAIL PROTECTED] CE /

Re: [PHP] HTTP1.1

2002-06-27 Thread Gerard Samuel
Acutally, I think Im ok, because, the dynamic links, adjust to where ever it lives in the file system. I defined a constant and use the constant in links, so no matter how you rearrange stuff, it would still work. So if the only reason is piece of mind, then Im in peace with myself... :)

RE: [PHP] Buy Sell

2002-06-27 Thread jon
I have one: http://jonroig.com/freecode/openrealty/ -- jon - jon roig project manager openlistings -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 1:50 PM To: PHP General List Subject: [PHP] Buy Sell Hi all.

Re: [PHP] Advantage of CURL over using LYNX

2002-06-27 Thread Jerome Houston
I've used both fopen() and the CURL libraries... 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

[PHP] Generating Barcodes and printing

2002-06-27 Thread PHPCoder
Hi, I would like to generate barcodes and have it print out the barcode automatically from awebpage, is this possible? How? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Generating Barcodes and printing

2002-06-27 Thread Analysis Solutions
On Thu, Jun 27, 2002 at 08:27:31PM +0200, PHPCoder wrote: I would like to generate barcodes and have it print out the barcode automatically from awebpage, is this possible? How? Go to http://groups.google.com/groups?hl=ensafe=offgroup=php.general Put this exact thing in the search terms:

  1   2   >