[PHP] Re: Problems with apache and php

2002-07-14 Thread Richard Lynch
I have a small problem, I can make the cgi version of php fine, it runs and installs perfectly, but when I try to make the apache module (i.e. --with-apxs=/path/to/apxs) php crashes apache. can anyone give me any insight on this? What error messages are in Apache log? Do you get a core dump?

Re: [PHP] HTTP_USER_AGENT?

2002-07-14 Thread Richard Lynch
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... For example in a book discussing PHP 3 it says: ? phpinfo(); ? This works just fine. In a book that discusses PHP 4 it says: ? php_info() ? This gives Fatal error: Call to undefined function: php_info() in

[PHP] Re: xml and max size of xml doc

2002-07-14 Thread Richard Lynch
Hi y'all Has anyone found any problems with the xml parsing functions when the xml document gets quite large. eg, a doc with about 5000 lines (about 200KB) The problem that's occurring is that some of the elements are being broken in two parts If you require more details, please ask, as it's

Re: [PHP] PHP meetup

2002-07-14 Thread Richard Lynch
I just signed up for this, as I would LOVE to be able to talk and interact (in person) with some PHP Developers. As I'm still learning (as we all are), it would be a great opportunity for me to be able to meet up and discuss this wonderful language with my peers. Hopefully that'll come to

[PHP] Re: A question of style ...

2002-07-14 Thread Richard Lynch
An agent goes to an interface that reveals a list of customers from a database. These customers have provided referrals which now reside in a database. The agent selects a referral which is processed by an intermediary script which sets a flag in the database saying that this agent is, has,or

[PHP] Re: Emulating Java Exceptions

2002-07-14 Thread Richard Lynch
Hi All, I'm porting Java Code to PHP, my question is: What is the best approach to emulate Java exceptions in PHP4? (I know ZE2 adds exceptions but I can't wait). When a Java method throws an exception it is difficult to handle as a return of an exception object since then I'd have to check

[PHP] Re: Write EXIF - is it possible?

2002-07-14 Thread Richard Lynch
Is it possible to write to exif-headers in pictures? I don't think any PHP built-in function will do that. Your options include: 1. Looking at the PHP source and extending it to do what you want. (and contributing that back). 2. Using some external program to do it: http://php.net/exec 3.

[PHP] Re: Final Year Computer Science Project involving PHP

2002-07-14 Thread Richard Lynch
The onus is on us to define the problem boundaries, to investigate possible solutions, and to present the results verbally, in writing and (possibly) to demonstrate in action. They like having projects that find solutions (or improve a current sloution) real life problems. You may want to

[PHP] Re: black becomes red w/ imagecreatefromjpeg

2002-07-14 Thread Richard Lynch
It's been over a year since I've had to come to you for help, but your insights and experience are too hard to resist... :-) I don't have a problem with any of the gd functions and they all works fine except that when I try to fill a circle or draw onto an imported image from

[PHP] Re: Encoding problem with command line PHP.exe

2002-07-14 Thread Richard Lynch
Hello - My problem is as follows: ? $data = mssql_result(mssql_query(SELECT Field FROM table WHERE ID='1'),0); echo $data; mysql_insert(INSERT INTO table2 VALUES('$data')); ? The data in the MSSQL table is: Æã I dunno what those characters are or what's going on,

[PHP] Re: pgSQL Functions with results set to php?

2002-07-14 Thread Richard Lynch
List, I'm creating a PHP/pgSQL web site...I need to execute queries with a cursor and get their result set into my PHP script. How can I make a pgSQL procedure with logic that also returns a result set? I've searched and searched but cannot find the answer. Does anyone got it? Any old

[PHP] Re: PHP install - what features?

2002-07-14 Thread Richard Lynch
I have searched the archive for a message subject something like PHP Wish List and was unsuccessful. Depends who does the wishing :-) The first time I compiled PHP, I tried to throw in almost everything that sounded remotely interesting. That was incredibly time-consuming and frustrating. I

[PHP] Re: New 2 PHP

2002-07-14 Thread Richard Lynch
Hi Everyone. Yup.. another dummy who can't suss out php. I'm running win2000 server and have installed php (by the book), also have mysql running. I just saw an article on Apache Today (http://www.apachetoday.com) about PHP on W2K installation. It seemed to be pretty clearly-written and had

[PHP] Re: Can this be done with mail()?

2002-07-14 Thread Richard Lynch
I need to query a database and return a resultset. A php script will then sort through the data and send the data to the browser in the form of a table. Is it possible to gather the the results with html tags and store them in a variable so that the results can be emailed to someone? If so,

[PHP] Re: Dealing with spaces and punctuation in uploaded filenames (tjlq)

2002-07-14 Thread Richard Lynch
$SAFEFILENAME = ereg_replace ([[:punct:]]+[[:blank:]]+, , $FILENAME); But that does not seem to be working, and I have not been able to figure out why. It's better to specifically *ALLOW* certain characters than to try to list all the ones you do *NOT* allow: # Get rid of gnarly

[PHP] serverside restrictions

2002-07-14 Thread Liam MacKenzie
Hi guys, I have a function: $substring = substr($REMOTE_ADDR,0,9); if ($substring != '192.168.0') { echo Access Denied; exit; } If the user isn't from the local network, he's not allowed in. This works fine, but is there a way to get apache to do it for me instead? Like, this for

[PHP] state engine or HTML parser

2002-07-14 Thread Justin French
Hi all, I'm looking at some pretty complex regexp's at the moment for parsing HTML, stripping out some attributes, getting the values of others, etc etc. The simple fact is that all these... A HREF=foo.php A HREF='foo.php' A HREF=foo.php A HREF='foo.php' TARGET=something A HREF=foo.php

php-general Digest 14 Jul 2002 08:21:08 -0000 Issue 1463

2002-07-14 Thread php-general-digest-help
php-general Digest 14 Jul 2002 08:21:08 - Issue 1463 Topics (messages 107537 through 107584): Animated GIFs 107537 by: Peter Re: recusive functions 107538 by: Jome Can't Install on Mac OS X 107539 by: Brandon Pearcy 107543 by: Liam MacKenzie Re: Can this

Re: [PHP] PHPDiscuss.com

2002-07-14 Thread Adam Alkins
Wow...a forum. Is that vBulletin your using? Shouldn't you be giving them credit somewhere?? It looks like YaBB. You'd think when people are using a free BB, they'd atleast have the courtesy of dropping a small plug at the end of the page. I guess not -- Adam Alkins

[PHP] Variables aren't being passed to php page

2002-07-14 Thread Mike Heffner
Hi, I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems to be a problem that variables from POST/GET are not being passed to the PHP page. For example, with the following file test.php, using the URL 'test.php?mid=1' displays 'nope'. ? if (isset($mid)) echo $mid;

[PHP] Re: Can't Install on Mac OS X

2002-07-14 Thread Andy
I've tried an alternative way of installing from Marc Liyanage's web site, http://www.entropy.ch/ which was very easy to follow, but it absolutely will not allow me to view any PHP pages through Apache. as far as I remember you have to have the original apache build (by apple) to run Marcs

[PHP] Re: TOC protocol (AOL Instant Messenger)

2002-07-14 Thread Micha
You can find AIM/ICQ (Since some years ICQ uses the AIM protocol - OSCAR - too, the only difference is one packet where the ICQ client identifies it as an ICQ Client, not AIM) information on http://www.rejetto.com/icq :) I don't know anything about a PHP-AIM/ICQ project. As server you can use

[PHP] (Exact) Difference between - and ::

2002-07-14 Thread Micha
Hi, I would like to know the exact difference between - and ::. I know that I can use as class directcly by using :: but I still don't know the exact meaning So why do they use in Example 8 on http://www.php.net/source.php?url=/zend2_example.phps $this-id = self::$id++ and not self::id++ or

[PHP] Opening and Editing Quark Binaries

2002-07-14 Thread Simon Troup
I've been trying to open and end some of the ascii portions of Quark Express binary files, (I'm using PHP4 on MacOSX, the quark files are OS9 files). Even if I make the simplest eregi_replace () having done ... $fd = fopen ($file, rb+); $contents = fread ($fd, filesize ($file)); fclose ($fd);

[PHP] Re: Variables aren't being passed to php page

2002-07-14 Thread Micha
This is no problem. Since PHP 4.2 register_globals is disabled by default (in prior versions it was enabled). Either you can use the $_POST, $_GET etc. arrays or simply set register_globals in the php.ini to On ! -micha Mike Heffner wrote: Hi, I've recently upgraded from PHP 4.0.4p11 - PHP

[PHP] (Exact) Difference between - and ::

2002-07-14 Thread Micha
Hi, I would like to know the exact difference between - and ::. I know that I can use as class directcly by using :: but I still don't know the exact meaning So why do they use in Example 8 on http://www.php.net/source.php?url=/zend2_example.phps $this-id = self::$id++ and not self::id++ or

RE: [PHP] How come this will echo No or nothing?

2002-07-14 Thread César Aracena
I've come up with this before and solved it like this (guess it'll work): if($row['plevel'] == '0'){ echo 'No'; } else if($row['plevel'] != '0'){ echo 'Yes'; } Notice the *ELSE IF* instead of a simple else statement. Try it. C. -Original Message- From: JJ Harrison [mailto:[EMAIL

Re: [PHP] hello the list

2002-07-14 Thread DL Neil
Welcome Nicolas, =You didn't actually say what the problem was! =Some have made suggestions, please also consider (below): i'm new and i'm trouble with this code :'( can U help me please ?? this is the code : while ($cd_tbl = mysql_fetch_array ($result)) { $cd_id = $cd_tbl['cd_id'];

Re: [PHP] Restricting access using IPs

2002-07-14 Thread DL Neil
Liam, Not altogether happy with the suggestion below. It works - for now. A more generic solution might be to replace the hard-coded 9 with a call to strrchr() on the last 'dot' character position (minus one). Then it should work on any properly formed IP address. Thereafter parameterise the

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Jason Reid
Check your php version. if its greater then 4.1.0, then you must either enable 'register_globals' in your php.ini, or use $_GET['var'] or $_POST['var'] to get data from a form - Original Message - From: Mike Heffner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 14, 2002 2:36

Re: [PHP] serverside restrictions

2002-07-14 Thread Chris Hewitt
Liam MacKenzie wrote: This works fine, but is there a way to get apache to do it for me instead? Like, this for example... Location /server-info SetHandler server-info Order deny,allow Deny from all Allow from 192.168.0.0 /Location Yes, using exactly the syntax you have. The

Re: [PHP] serverside restrictions

2002-07-14 Thread Jason Wong
On Sunday 14 July 2002 14:17, Liam MacKenzie wrote: This works fine, but is there a way to get apache to do it for me instead? Like, this for example... Location /server-info SetHandler server-info Order deny,allow Deny from all Allow from 192.168.0.0 /Location This

Re: [PHP] Re: Can not delete files that were uploaded

2002-07-14 Thread Michael Hall
Be warned that if PHP can delete them, so can anybody else on the shared server who wants to write a PHP script to delete them, unless you've configured PHP specially to run as a specific user, which is unlikely for most ISP setups. How can PHP be configured to run as a specific user? I'm

Re: [PHP] How come this will echo No or nothing?

2002-07-14 Thread Matthew K. Gold
this is from the O'Reilly _Programming PHP_ (Rasmus Lerdorf Kevin Tatroe): Because echo is not a true function, you can't use it as part of a larger expression: // parse error if (echo(test)) { echo(it worked!; } Such errors are easily remedied, though, by using the print() or printf()

[PHP] Form/insert problem

2002-07-14 Thread Martin Kampherbeek
Below, is the code of a form to predict some matches. What I want is to submit this with with one button so it inserts the macthes in the database. One match is one record. The problem is that I don't know what to do now. Can someone help me with this form and the insert file

RE: [PHP] PHPDiscuss.com

2002-07-14 Thread John Holmes
Wow...a forum. Is that vBulletin your using? Shouldn't you be giving them credit somewhere?? It looks like YaBB. You'd think when people are using a free BB, they'd atleast have the courtesy of dropping a small plug at the end of the page. I guess not Exactly, it's the small things

RE: [PHP] Variables aren't being passed to php page

2002-07-14 Thread John Holmes
I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems to be a problem that variables from POST/GET are not being passed to the PHP page. For example, with the following file test.php, using the URL 'test.php?mid=1' displays 'nope'. Do you always upgrade programs without

RE: [PHP] You are about to leave the secure conexion

2002-07-14 Thread John Holmes
Is the new window your opening secure? Is it an HTTPS URL? Either way, sound like a client side issue to me... ---John Holmes... -Original Message- From: Pedro Garre [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 9:13 AM To: [EMAIL PROTECTED] Subject: [PHP] You are about to

Fw: [PHP] Re: Problems with apache and php

2002-07-14 Thread Marxus
Do you have apache2 and one of the latest php versions? if so oyu need to download the latest php4apache2.dll ... I found in on the manual page somewhere. And oyu also need to change some other stuff which was listed in the install.txt. - Original Message - From: Richard Lynch [EMAIL

[PHP] ob_start

2002-07-14 Thread Kevin Waterson
I wish to compress some data using ob_start(ob_gzhandler); I use if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'],gzip)) { ob_start(ob_gzhandler); } else { ob_start(); } but the compression is never used.. obstart is always used withouth the gz_handler is there a way around this? or am I

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Jason Wong
On Sunday 14 July 2002 21:53, John Holmes wrote: I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems to be a problem that variables from POST/GET are not being passed to the PHP page. For example, with the following file test.php, using the URL 'test.php?mid=1'

RE: [PHP] ob_start

2002-07-14 Thread John Holmes
I wish to compress some data using ob_start(ob_gzhandler); I use if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'],gzip)) { Shouldn't gzip be in quotes, here?? The second argument to strstr... ob_start(ob_gzhandler); } else { ob_start(); } but the compression is never used..

Re: [PHP] ob_start

2002-07-14 Thread Andrew Brampton
I don't think you need to do the if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'],gzip)) { because ob_start(ob_gzhandler); checks to see if the browser will accept gzip content before gzipping it.. But I think the reason that it isn't working for you is that you don't have the correct compression

Re: [PHP] ob_start

2002-07-14 Thread Kevin Waterson
On Sun, 14 Jul 2002 10:35:13 -0400 John Holmes [EMAIL PROTECTED] wrote: Shouldn't gzip be in quotes, here?? The second argument to strstr... indeed, that fixes that.. thanks now, I have a problem with mozilla and netscape. Although they both accept the ob_start(ob_gzhandler); netscape gives

[PHP] Creating an PHP program and C program

2002-07-14 Thread Alexandre Soares
Hello All, I wrote some times ago an library to draw graphics in 2 and 3 D, but this sources are write in C, whats the procedures I need to use this rotines in PHP. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Animated GIFs

2002-07-14 Thread Jome
Peter [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I know GIF support was dropped from the GD library, but can you make animated GIFs in any version of GD? I think your best shoot would be to combine GD with ImageMagick which has a function called

[PHP] Newbie Date question

2002-07-14 Thread RoyW
If: $today = date(Y-m-d); Then how to I get: $yesterday = ? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: pgSQL Functions with results set to php?

2002-07-14 Thread Joe Conway
Richard Lynch wrote: List, I'm creating a PHP/pgSQL web site...I need to execute queries with a cursor and get their result set into my PHP script. How can I make a pgSQL procedure with logic that also returns a result set? I've searched and searched but cannot find the answer. Does anyone

[PHP] Trying to build intelligent query from question

2002-07-14 Thread Peter J. Schoenster
Hi, I may be doing this all the wrong way :) so feel free to let me know, thanks. I've been developing a q/a database. I don' want to search on what I consider common words. Certainly there must be a list of these. Anyhow, I explode the question string into words and then iterate as such:

Re: [PHP] mail() problem

2002-07-14 Thread Duncan
Hi again, ok i found out now, that the problem is the From: ... Reply-To: header. Whenever i leave those, the email gets delivered instantly, but included, the email gets a delivery delay for about 3 hours. Is there any other way, i can avoid getting the default email address as the sender,

Re: [PHP] Newbie Date question

2002-07-14 Thread Jason Wong
On Monday 15 July 2002 00:01, RoyW wrote: If: $today = date(Y-m-d); Then how to I get: $yesterday = ? Use strtotime() followed by date(). Details in manual. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting *

[PHP] PHP, JAva history

2002-07-14 Thread Saci
I would like to see from where visitor come from mypage i need a function who return the last visited page prior to mine. I didn't found any function on php for that purpose and I'm thinking in mix Java and php for that purpose, using the browser history, Can someone show-me how can I do that.

Re: [PHP] Trying to build intelligent query from question

2002-07-14 Thread Jason Wong
On Monday 15 July 2002 01:00, Peter J. Schoenster wrote: I may be doing this all the wrong way :) so feel free to let me know, thanks. I'm not going to comment on your overall concept. I've been developing a q/a database. I don' want to search on what I consider common words. Certainly

Re: [PHP] mail() problem

2002-07-14 Thread Duncan
Hi again, ok, i found the (weird!) problem now: Its not my server nor my ISP, but php (at least, i think so): Here are the exact lines i used in my test script: 1st non working - delayed example: mail($receiver,-Subject-,Here are your account details:\n\nusername: $lp_name\npassword:

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Philip Olson
Please read this: http://www.php.net/manual/en/language.variables.external.php Regards, Philip Olson On Sun, 14 Jul 2002, Mike Heffner wrote: Hi, I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems to be a problem that variables from POST/GET are not being passed

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Philip Olson
PHP page. For example, with the following file test.php, using the URL 'test.php?mid=1' displays 'nope'. This list gets at least one question a day on this subject ... Please refer to the manual when this happens, specifically:

[PHP] Michalski Luc - Weblog upgrading - Asking for some help

2002-07-14 Thread David D
Hello, my name is lucas I am student in computer science... We are imporving a previous version of phpweblog ( News Management ) in which we have had a DHTML editor and others goodies...For this part we don't have problems... But translations are problematics because we have integrated PHPlang,

[PHP] Re: Development Tools

2002-07-14 Thread Lord Loh.
www.phpide.de Check this out - Php IDE Lord Loh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trying to build intelligent query from question

2002-07-14 Thread Peter J. Schoenster
foreach($words as $Key=$Value) { if($ignoreWords[strtolower($Value)]) { continue; } You would be better off using array_diff(). Jason, Thanks, that works except that it doesn't account for case. I want to ignore case as it doesn't apply here. But I was able to

Re: [PHP] You are about to leave the secure conexion

2002-07-14 Thread Chris Hewitt
Pedro Garre wrote: When I open a new window with javascript (window.open) the browser (IE) says I am about to leave the secure conexion. Same happens when I download the .der certificate. Its a browser configuration. Most browsers have the means of notifying the user if they are entering or

Re: [PHP] PHP, JAva history

2002-07-14 Thread Peter J. Schoenster
On 14 Jul 2002 at 13:42, Saci wrote: I would like to see from where visitor come from mypage i need a function who return the last visited page prior to mine. I didn't found any function on php for that purpose and I'm thinking in mix Java and php for that purpose, using the browser

Re: [PHP] Re: Development Tools

2002-07-14 Thread Chris Garaffa
Ahm... Anything good for MacOS X out there? I currently use and love BBEdit, but am open to other alternatives. Chris He who calles himself Lord Loh. (from [EMAIL PROTECTED]) wrote on 7/14/02 1:40 PM: www.phpide.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Does not work

2002-07-14 Thread Saci
I tried this simple code html body Page refered by ?php echo $HTTP_REFERER.'br'; echo $_SERVER['HTTP_REFERER'].'br'; ? /body /html and I receive blank reply even if referenced from a link from other site. What am i doing wrong ? Or perhaps my server does not have referer enabled? -- PHP

RE: [PHP] Does not work

2002-07-14 Thread Michael Geier
from PHP documentation: http://www.php.net/manual/en/reserved.variables.php 'HTTP_REFERER' The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as

Re: [PHP] Does not work

2002-07-14 Thread Saci
// HTTP_REFERER as a feature. In short, it cannot really be trusted. Anybody know how to do that using JAva history with PHP together , or any other methode that works and can be trusted. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variables aren't being passed to php page

2002-07-14 Thread Tim Luoma
Jason Wong wrote: This list gets at least one question a day on this subject ... And there will be a lot more as people scan the web for example scripts and find ones that assume 'register_globals' is set to on. TjL -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Peter
I totally agree. No offence to all the ppl who have asked, but didn't it say on the download page that there had been major changes to the way variables are used?? John Holmes [EMAIL PROTECTED] wrote in message 000a01c22b3d$e4755790$b402a8c0@mango">news:000a01c22b3d$e4755790$b402a8c0@mango...

[PHP] Re: Does not work

2002-07-14 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Saci) wrote: I tried this simple code html body Page refered by ?php echo $HTTP_REFERER.'br'; echo $_SERVER['HTTP_REFERER'].'br'; ? /body /html and I receive blank reply even if referenced from a link from other site. What am i

php-general Digest 14 Jul 2002 20:27:28 -0000 Issue 1464

2002-07-14 Thread php-general-digest-help
php-general Digest 14 Jul 2002 20:27:28 - Issue 1464 Topics (messages 107585 through 107635): Re: PHPDiscuss.com 107585 by: Adam Alkins 107603 by: John Holmes Variables aren't being passed to php page 107586 by: Mike Heffner 107591 by: Micha 107596

[PHP] mysql LIMIT

2002-07-14 Thread Alexander Ross
can I use limit to show the 2nd record on without knowing how many more records there might be? also, what happens if I set the limit in a mysql statement (LIMIT 5,10), but there are only 3 results? 7 results? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] REminder APllication

2002-07-14 Thread The Doctor
On Thu, Jul 11, 2002 at 10:05:05PM -0400, John Holmes wrote: DOes anyone know how to build a reminder application on: a) identified users b) Sorting users' reminders?? Yes. ---John Holmes... http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-n

Re: [PHP] mysql LIMIT

2002-07-14 Thread Robert Cummings
Alexander Ross wrote: can I use limit to show the 2nd record on without knowing how many more records there might be? also, what happens if I set the limit in a mysql statement (LIMIT 5,10), but there are only 3 results? 7 results? This looks like a question that could be answered with a

[PHP] retrieving random data from mysql database

2002-07-14 Thread mm fernandez
hi, can you teach me how to retrieve random data from my database? like for example...i have a list of names on my database and i'd like to retrieve only one name at a time..randomly. how do i go about this? hope someone can help...thanx.

RE: [PHP] mysql LIMIT

2002-07-14 Thread David Freeman
can I use limit to show the 2nd record on without knowing how many more records there might be? also, what happens if I set the limit in a mysql statement (LIMIT 5,10), but there are only 3 results? 7 results? My answer would tend to be that you should try it for yourself and

RE: [PHP] retrieving random data from mysql database

2002-07-14 Thread David Freeman
can you teach me how to retrieve random data from my database? like for example...i have a list of names on my database and i'd like to retrieve only one name at a time..randomly. how do i go about this? This is really a database question rather than a php question and you haven't

Re: [PHP] retrieving random data from mysql database

2002-07-14 Thread Chris Knipe
SELECT RANDOM name FROM table or SELECT name FROM table ORDER BY RANDOM LIMIT 1 not tested, used at your own free will. -- me - Original Message - From: mm fernandez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 14, 2002 11:37 PM Subject: [PHP] retrieving random data

Re: [PHP] Re: Can not delete files that were uploaded

2002-07-14 Thread Richard Lynch
Be warned that if PHP can delete them, so can anybody else on the shared server who wants to write a PHP script to delete them, unless you've configured PHP specially to run as a specific user, which is unlikely for most ISP setups. How can PHP be configured to run as a specific user? I'm

[PHP] Question 1

2002-07-14 Thread Chris Kay
I am looking at importing data from rdtool into a mysql backend And not sure how to go about it... I was wondering if anyone has tried this or know of some information that may help. Or even a theroy on how the best way would be to do this... Thanks in advance..

[PHP] Training / Courses in Australia

2002-07-14 Thread Chris Kay
Would anyone know of any PHP training or courses in Australia... Also for the devolopers... Is there at present, or a future plan for a PHPCE A certified engineer :) Just a thought since everyone else has them ---

[PHP] Re: Newbie Date question

2002-07-14 Thread Jason Morehouse
include(Calc.php); #http://www.phpinsider.com/php/code/Date_Calc/ #Date_Calc - a class for manipulating and comparing #Calendar dates, as well as formulating arrays of dates # for traditional calendar display. $yesterday =

[PHP] DOM XML : experimental ?

2002-07-14 Thread Mario de Mello Bittencourt Neto
Hi, I am planning to use PHP to develop some scripts that will need to create and manipulate html pages. One of the things that will be created is a DOM tree of the html. After reading the manual I've found that php supports the event-driven and dom xml, but with the latter tagged as

Re: [PHP] Does not work

2002-07-14 Thread Alberto Serra
ðÒÉ×ÅÔ! Saci wrote: // HTTP_REFERER as a feature. In short, it cannot really be trusted. Anybody know how to do that using JAva history with PHP together , or any other methode that works and can be trusted. Thank god no method can be trusted :) History even less the the referrer. Just

Re: [PHP] (Exact) Difference between - and ::

2002-07-14 Thread Alberto Serra
ðÒÉ×ÅÔ! Micha wrote: Hi, I would like to know the exact difference between - and ::. I know that I can use as class directcly by using :: but I still don't know the exact meaning So why do they use in Example 8 on http://www.php.net/source.php?url=/zend2_example.phps $this-id =

Re: [PHP] Does not work

2002-07-14 Thread Justin French
Pffft you can't trust Java, JavaScript or anything on the server side at all. Since it's set by the browser (client) itself, the best you can do is test for it, and provide a fall back option. For the bulk of users, this will be okay, because they're on IE. What you need to be carefull of is

[PHP] Re: compiling with mysql

2002-07-14 Thread David Robley
In article Pine.LNX.4.21.0207120957190.1434- [EMAIL PROTECTED], [EMAIL PROTECTED] says... Another PHP compilation question ... I've just compiled PHP 4.2.1 --with-mysql. I added no path to mysql, and it worked fine as it always does. However, I'm keen to add mod_python as a DSO to Apache

[PHP] IF inside LOOP?

2002-07-14 Thread César Aracena
Hi all. I’ve been fooling around with a LOOP which should show one or more text string stored in separate rows in a DB. The trick would we to separate them with commas (,) when there’s another string to show or end it with a period (.) if no other row is found according to the SELECT criteria.

RE: [PHP] IF inside LOOP?

2002-07-14 Thread Martin Towell
try using this if statement instead if ($m $num_rows2 - 1) or even use the ?: operator echo ($m $num_rows2 - 1 ? , : .); -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 12:04 PM To: PHP General List Subject: [PHP] IF inside LOOP? Hi

RE: [PHP] IF inside LOOP? -- SOLVED

2002-07-14 Thread César Aracena
Thanks for two things Martin: First for teaching me about the -1 operation (which seems logic now) and second, for getting me into the ?: operator. I've read something about it in the books, but didn't tough it was really useful 'till now. It worked perfectly. C. -Original Message-

[PHP] two way encryption

2002-07-14 Thread Justin French
Hi all, I'm looking at a way of encrypting AND decrypting a string (cc#) with a key. I plan to store the key in a file outside the docroot, and have asked the ISP for as much advice as possible to protect the key file. Anyway, since it needs to be encrypted and decrypted with a key, I obviously

Re: [PHP] two way encryption

2002-07-14 Thread Joe Conway
Justin French wrote: I'm getting the following error using 4.1.1: Fatal error: Call to undefined function: mcrypt_create_iv() in /usr/local/apache/htdocs/tests/enc.php on line 3 Which is confusing, given that the manual says mcrypt_create_iv() is available in PHP 4. Looks like your ISP

Re: [PHP] Does not work

2002-07-14 Thread Saci
To say the minumum yor reply does not help in nothing. Who cares about privacy on my own company Intranet ? Alberto Serra [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ðÒÉ×ÅÔ! Saci wrote: // HTTP_REFERER as a feature. In short, it cannot really be

[PHP] ignore_user_abort question

2002-07-14 Thread Jose Arce
Hi, got a question. What happend if ignore_user_abort is true, and the user closes the window? Also, i tried, but i push the stop button, and the script stops, shouldn ignore that?. Thx :D _ MSN Fotos: la forma más fácil de

RE: [PHP] Does not work

2002-07-14 Thread Peter
-Original Message- From: Saci [mailto:[EMAIL PROTECTED]] Sent: Monday, 15 July 2002 12:51 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Does not work To say the minumum yor reply does not help in nothing. Who cares about privacy on my own company Intranet ?

Re: [PHP] two way encryption

2002-07-14 Thread Justin French
on 15/07/02 12:41 PM, Joe Conway ([EMAIL PROTECTED]) wrote: Looks like your ISP doesn't have mcrypt support. What does phpinfo() show? Well, that was on my local test server, which I didn't compile with mcrypt... so that solves that, but it appears my ISP didn't compile with it either... so

Re: [PHP] two way encryption

2002-07-14 Thread Joe Conway
Justin French wrote: Well, that was on my local test server, which I didn't compile with mcrypt... so that solves that, but it appears my ISP didn't compile with it either... so there's very little point in getting my local server working with it. What alternatives do I have? I don't

Re: [PHP] Does not work

2002-07-14 Thread Saci
I agree, I made a mistake on my last reply , and I apologize for that. Thank you also for you for your coments, but my main question still open without any related reply. To say the minumum yor reply does not help in nothing. Who cares about privacy on my own company Intranet ? 1. I

Re: [PHP] Does not work

2002-07-14 Thread Justin French
This works for me, PHP 4.1.1 Upon first loading the page, I get nothing, but when I click on go, I get both referrer address' echoed. refer.php: --- html body A HREF=refer.phpgo/aBRBR Page refered by ?php echo $HTTP_REFERER.'br'; echo $_SERVER['HTTP_REFERER'].'br'; ? /body /html --- It's

RE: [PHP] two way encryption

2002-07-14 Thread James Cox
sorry to step in, but did you consider base64_[encode|decode] ? -- james Justin French wrote: Well, that was on my local test server, which I didn't compile with mcrypt... so that solves that, but it appears my ISP didn't compile with it either... so there's very little point in

RE: [PHP] retrieving random data from mysql database

2002-07-14 Thread Anas Mughal
When you say, Order by RAND() I would think the Order by construct expects a column name. In your case, it gets a decimal value. How does Order by treat decimal values? Oh, I just checked the manual: In MySQL Version 3.23, you can, however, do: SELECT * FROM table_name ORDER BY RAND() I still

Re: [PHP] two way encryption

2002-07-14 Thread Justin French
base64 doesn't have a key, so anyone could decode the string, which is obviously not desirable :) thanks anyway Justin on 15/07/02 2:00 PM, James Cox ([EMAIL PROTECTED]) wrote: sorry to step in, but did you consider base64_[encode|decode] ? -- james Justin French wrote: Well, that

  1   2   >