Fw: [PHP] str_replace

2003-03-14 Thread Hugh Danaher
- Original Message - From: "Hugh Danaher" <[EMAIL PROTECTED]> To: "Sebastian" <[EMAIL PROTECTED]> Sent: Friday, March 14, 2003 11:37 PM Subject: Re: [PHP] str_replace > I just though up a better idea, > put your conditional statements in your included files not in the calling > file. T

Re: [PHP] inserting parameters into URLs dynamically

2003-03-14 Thread Hugh Danaher
Mo, "(we haven't found, in our initial research, a way to do this)" You could format your variables before they're needed in the link something like: if(isset($x)) $x_link="&x=$x"; if(isset($y)) $y_link="&y=$y"; etc. then your link would look like the following someplace.com "slug=1" is

[PHP] RE: Newbie MySQL INSERT Q

2003-03-14 Thread Uttam
PHP does not allow ';' character in query strings so you'll have to break these. regds, -Original Message- From: Charles Kline [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 20:34 To: [EMAIL PROTECTED] Subject: Newbie MySQL INSERT Q Can I have a single SQL string do INSERTS into

Re: [PHP] Re: str_replace

2003-03-14 Thread Hugh Danaher
if the header and footer info come from your config.php file, then you have to get to that file before it's parsed by the server. Perhaps, splitting config.php into three files (header.php, config.php and footer.php), then when you want to print just call the middle file. if(isset($_GET['print'])

Re: [PHP] Re: str_replace

2003-03-14 Thread Sebastian
doesn't work but also doesn't give any errors, I will try to explain what I am trying to do: I am trying to remove the header and footer to create a "printer friendly page" with just the content, here's what my pages look like, I need to remove header and footer when they visit: file.php?action=pr

[PHP] Feasability of Serial functions and constantly running progrms

2003-03-14 Thread Jason Young
After upgrading to RedHat 8.0 and effectively breaking some python caller-id script that I have no clue how to fix.. I'm curious of whether or not PHP would be able to get caller-id data from a modem.. I imagine it could, and probably won't be too difficult to overcome... but I am posing that q

[PHP] Re: str_replace

2003-03-14 Thread John Gray
$footer = str_replace('include("$header");', '', $footer); The way you have it now, you're telling PHP to first include the file named by the variable $header, then do an str_replace on the result; but the parser is going to fail on that first semi-colon, and that's not what you want to do anyw

[PHP] str_replace

2003-03-14 Thread Sebastian
This may seem weird: How do I str_replace an include function? I want to replace this line: include("$header"); with nothing .. something like this: $footer = str_replace(" '. include("$header"); .' ", "", $footer); I get errors, any ideas? cheers, - Sebastian

Re: [PHP] inserting parameters into URLs dynamically

2003-03-14 Thread Tom Rogers
Hi, Saturday, March 15, 2003, 7:31:52 AM, you wrote: MR> We are looking for a way to set several key/value pairs (which will differ MR> across users) such that they will persist during the user's session and MR> be logged in the weblogs for every request that user makes. Some MR> potential

Re[2]: [PHP] php file writting ?

2003-03-14 Thread Tom Rogers
Hi, Saturday, March 15, 2003, 4:53:44 AM, you wrote: RP> Yes I did. RP> Here is the code, maybe I am just missing something (this is the part RP> where it writes and then opens again... RP> $h6 = fopen("/etc/group.backup","a"); RP> for($i = 0; $i < count($users); $i++) RP>

[PHP] Header order

2003-03-14 Thread John Taylor-Johnston
For the record, am I declaring these in the correct order? Thanks, John http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect issue

2003-03-14 Thread Philip J. Newman
try mysql_connect("loghost:3306","$username","$password"); - Original Message - From: "Steve Shead" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 15, 2003 12:14 PM Subject: [PHP] mysql_connect issue > I'm trying to get a small PHP based log reader to run but get t

[PHP] mysql_connect issue

2003-03-14 Thread Steve Shead
I'm trying to get a small PHP based log reader to run but get this error every time: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/weblog/weblog.php on line 58 Here is the PHP I'm using ... does anyone know what is happening here? Radu Solea Contributor: H

[PHP] My PHP mysql Command

2003-03-14 Thread Philip J. Newman
Assuming that gAccessLevel = eather one of level-1, level-2, level-3 ... if (!$gStart) { $gStart=0; } $sql = "SELECT * FROM gallerys WHERE gMode = '$mode' AND "; if ($siteAccessLevel == "level-1") { // LEVEL-1 VIEWING ONLY. $sql .= "WHERE (gAccessLevel = 'level-1')"; } else if

[PHP] Convert Date to MySQL format

2003-03-14 Thread Vernon
I've had to convert times in a MySQL field to a normal date, but never in reverse. How to I convert a date in this format, 03/14/2003, to MySQL format so it can be posted to a date field? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

RE: [PHP] form/text area input problem

2003-03-14 Thread Boaz Yahav
Did you play with or Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Poon, Kelvin (Infomart) [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 6:25 PM To: '- Edwin' Cc: '[EMAIL PROTECTED]' Subjec

Re: [PHP] Apache 2.0 and PHP

2003-03-14 Thread Ernest E Vogelsinger
At 19:37 14.03.2003, Michael Aaron said: [snip] >Sorry if this has been answered before but I can not find it anywhere: > >Why does the PHP docs. state: > "Do not use Apache 2.0 and PHP in a production environment neither on >Unix nor on Windows. " > >What

Re: [PHP] General Information About Porting a Monolithic Perl CGI Script to PHP

2003-03-14 Thread Ernest E Vogelsinger
At 22:26 14.03.2003, Richard Ward said: [snip] >Also, from my reading, it sounds like some of the features I might need in >PHP are considered extensions. For example, my Perl script makes heavy use >of searching and replacing using regular expressions. I've

[Fwd: Re: [PHP] inserting parameters into URLs dynamically]

2003-03-14 Thread Pete James
You could use output buffering to do the rewriting for you. IF you use ob_start('my_function'); at the top of your page, where my_function is the name of a callback function This function might look like this: function my_function($buffer) { return $buffer . '?x=foo&y=bar'; } That's it.

Re: [PHP] inserting parameters into URLs dynamically

2003-03-14 Thread Ernest E Vogelsinger
At 22:31 14.03.2003, Maureen Roihl said: [snip] >- find a way for PHP to automatically tack the parameters onto the ends >of url querystrings, the same way it can do with PHPSESSIONID (we haven't >found, in our initial research, a way to do this) > >Our p

[PHP] General Information About Porting a Monolithic Perl CGI Script to PHP

2003-03-14 Thread Richard Ward
Hello, I have a ~5500 line monolithic Perl script that I distribute with my commercial application for processing forms on any Web server that supports CGI and Perl. Perl has been a wonderful platform because of its portability. However, people are now suggesting that my program also support PHP,

[PHP] inserting parameters into URLs dynamically

2003-03-14 Thread Maureen Roihl
We are looking for a way to set several key/value pairs (which will differ across users) such that they will persist during the user's session and be logged in the weblogs for every request that user makes. Some potential ways of doing this that occurred to us: - implement functionality t

Re: [PHP] OT? Dynamic Page Setup in IE please help

2003-03-14 Thread David T-G
Anthony -- Your question is pure browser. Good luck, especially considering the browser you have to target :-) You might be able to change the setting with some javascript. You might also be able to define the print format with a style sheet (doubtful). In either case, you need to get into IE i

Re: [PHP] Apache 2.0 and PHP

2003-03-14 Thread Rasmus Lerdorf
On Fri, 14 Mar 2003, Michael Aaron wrote: > Sorry if this has been answered before but I can not find it anywhere: > > Why does the PHP docs. state: > "Do not use Apache 2.0 and PHP in a production environment neither on > Unix nor on Windows. " > > What is the reason for this Warning? The co

[PHP] OT? Dynamic Page Setup in IE please help

2003-03-14 Thread Anthony
I'm gonna post this in some Microsoft list too, but I'm hopping someone here might be able to help me out. I have a few situations where users will need to print from my app. The browser they are using will be IE. What I'd like to be able to do is through some type of scripting remove the header

[PHP] including files in PHP-pdf development

2003-03-14 Thread Bill Hudspeth
Hello, I am developing an application that ouputs the results of a database query to a PDF file using PHP. The only real problem I have encountered is in trying to use the "include" and/or "require" keywords. I have a block of code in another file that needs to called several times from my main PD

[PHP] File transfer FTP HTTP

2003-03-14 Thread Michael Steinhart
Thank you in advance to any one who may be able to help. I am looking for a way to have users be able to down load files from a site via FTP and HTTP. This sounds easy enough but here are the details. There will be a application server that users will purchase software form (Under development)

Re: [PHP] checking $_POST variables

2003-03-14 Thread Liam Gibbs
> That's generally not a good idea because depending on the type of control > empty input fields will not be available in the $_POST array (e.g. > unchecked checkboxes are _not_ sent by the browser). > > You should rather have a list of input variables that need to be filled and > compare $_POST ag

Re: [PHP] checking $_POST variables

2003-03-14 Thread Ernest E Vogelsinger
At 20:26 14.03.2003, drparker said: [snip] >I'm running this script to make sure all fields are filled in on a form: > >foreach($_POST as $p) >{ > if(!$p) > { > header("Location: signup.php?error=3"); > exit(); > } >} > >But I need to exclude one field on

[PHP] Re: PHP DOM XML Function

2003-03-14 Thread Alexandru COSTIN
Hello, As far as I know from Christian Stocker (the domxml maintainer) - they are already pretty stable. They are tagged as "experimental" to avoid people complaints about API changes (API changes are necessary because DOMXML should have a DOM api, and it was pretty not like this at the beggining).

[PHP] checking $_POST variables

2003-03-14 Thread drparker
I'm running this script to make sure all fields are filled in on a form: foreach($_POST as $p) { if(!$p) { header("Location: signup.php?error=3"); exit(); } } But I need to exclude one field on the form from being checked - Street2. How could I do this? -- PHP General Mailing List (h

[PHP] replace string in array

2003-03-14 Thread Chris Winters
I'm having a bit of trouble... I have an array that consists of a string like this: string1\rstring2\rstring3\rstring4 I want to REMOVE STRING3, and keep the rest of the array intact - but cannot figure on how to do it. I tried using functions such as preg_replace, strstr and so forth... In my

Re: [PHP] php file writting ?

2003-03-14 Thread Ronald Petty
Yes I did. Here is the code, maybe I am just missing something (this is the part where it writes and then opens again... $h6 = fopen("/etc/group.backup","a"); for($i = 0; $i < count($users); $i++) { for($k = 0; $k < count($grouplines);$k++)

[PHP] Apache 2.0 and PHP

2003-03-14 Thread Michael Aaron
Sorry if this has been answered before but I can not find it anywhere: Why does the PHP docs. state: "Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows. " What is the reason for this Warning? Thanks in advance. Mike Aaron -- PHP General Mailing List (ht

RE: [PHP] IF statement madness

2003-03-14 Thread James E Hicks III
Thank you (all who resonded)!!! It makes sense now. Now I can wait until 5:00pm, quitting time, to go crazy!! James -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 1:23 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] IF statement madness Compar

RE: [PHP] IF statement madness

2003-03-14 Thread Ford, Mike [LSS]
> -Original Message- > From: James E Hicks III [mailto:[EMAIL PROTECTED] > Sent: 14 March 2003 18:22 > > Help save my sanity! What can I do to the IF statement in the > following code to > make it print the line that says "By God they are equal in > value."? I have tried > the following

RE: [PHP] IF statement madness

2003-03-14 Thread jon roig
What happens if you change $target to 216.0? -- jon -Original Message- From: James E Hicks III [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 1:22 PM To: [EMAIL PROTECTED] Subject: [PHP] IF statement madness Help save my sanity! What can I do to the IF statement in the f

Re: [PHP] IF statement madness

2003-03-14 Thread Ernest E Vogelsinger
At 19:21 14.03.2003, James E Hicks III said: [snip] >Help save my sanity! What can I do to the IF statement in the following >code to >make it print the line that says "By God they are equal in value."? I have >tried >the following changes; > > 1. usin

RE: [PHP] IF statement madness

2003-03-14 Thread Johnson, Kirk
Comparing a float with an integer can have problems. You could try something like: if(abs($i - $target) < .1) { //then they are essentially equal } Kirk > -Original Message- > From: James E Hicks III [mailto:[EMAIL PROTECTED] > Sent: Friday, March 14, 2003 11:22 AM > To: [EMAIL PRO

[PHP] IF statement madness

2003-03-14 Thread James E Hicks III
Help save my sanity! What can I do to the IF statement in the following code to make it print the line that says "By God they are equal in value."? I have tried the following changes; 1. using === instead of == 2. placing (float) in front of the $i and $target inside and before the

Re: [PHP] php file writting ?

2003-03-14 Thread Chris Hayes
At 18:53 14-3-2003, you wrote: I open a file, modify it, save it out to disk. The VERY next line, i open it, and the size is zero. I look at the file and it is fine (not zero). I think there is a timing issue with php on file read/writes. I tried sleep(1), but all that did was slow the script do

[PHP] Re: Unable to install PHP4.2.3 + Apache 1.3 + Win2k

2003-03-14 Thread Paul B. McBride
Here are the PHP related lines from my Appache2.0.43 httpd.conf file. ScriptAlias /php4/ "E:/PHP4/" AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps Action application/x-httpd-php /php4/php.exe With this setup, all *.php and *.phtml files are processed corr

Re: [PHP] need a new challenge

2003-03-14 Thread Chris Hayes
At 11:12 14-3-2003, you wrote: Im looking for ideas for a 2 programming contests. What I need is a very basic challenge - that new php programmers can do, but involves them mixing there thinking/programming and creative abilities. I also need a challenge for professional programmers - something th

[PHP] php file writting ?

2003-03-14 Thread Ronald Petty
I open a file, modify it, save it out to disk. The VERY next line, i open it, and the size is zero. I look at the file and it is fine (not zero). I think there is a timing issue with php on file read/writes. I tried sleep(1), but all that did was slow the script down (didn't help). Any ideas?

Re: [PHP] accidently inserting into web database blank records.

2003-03-14 Thread Leif K-Brooks
The string is in double quotes, ont single quotes. The single quotes are simply characters in the double-quoted string. I believe the register_globals explanation is correct. Brent Baisley wrote: I'm pretty sure your problem is the single quotes around your variables. Single quotes and doubl

Re: [PHP] trikky string limit question

2003-03-14 Thread -{ Rene Brehmer }-
On Thu, 13 Mar 2003 23:17:02 -0500, daniel wrote about "RE: [PHP] trikky string limit question" what the universal translator turned into this: >never mind i worked it out > >function create_caption($content,$max_length,$primaryID,$ID) { > if (strlen($content) > $max_length) { >

Re: [PHP] OT Inactivity Timeout

2003-03-14 Thread Ernest E Vogelsinger
At 17:03 14.03.2003, Luis Lebron said: [snip] >This may be more of a javascript question than a php question. But how can I >set up an inactivity timeout that will logout a person after let's say 20 >minutes of inactivity? [snip]--

Re: [PHP] Generating Statics Pages

2003-03-14 Thread -{ Rene Brehmer }-
On Thu, 13 Mar 2003 16:28:38 -0600, Christina wrote about "[PHP] Generating Statics Pages" what the universal translator turned into this: >What is the fastest way to generate multiple static pages? What do you want them to contain ??? Without knowing that, it's nearly impossible to answer that

Re: [PHP] OT Inactivity Timeout

2003-03-14 Thread Joe Goff
use sessions - Original Message - From: "Luis Lebron" <[EMAIL PROTECTED]> To: "Php-General (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, March 14, 2003 10:03 AM Subject: [PHP] OT Inactivity Timeout > This may be more of a javascript question than a php question. But how can I > set up an in

Re: [PHP] accidently inserting into web database blank records.

2003-03-14 Thread Brent Baisley
I'm pretty sure your problem is the single quotes around your variables. Single quotes and double quotes have very different meanings. Single quotes tell PHP not to look for anything inside the quotes, whereas PHP will always parse double quotes to see if there is anything it needs to process.

[PHP] Unable to install PHP4.2.3 + Apache 1.3 + Win2k

2003-03-14 Thread Diego Fulgueira
Hi. I followed the instructions in the php manual to install php as CGI module under apache, under windows. I get the following message when requesting a php file: Invalid URI in request GET /mydir/myfile.php HTTP/1.1 I believe this is because Apache is not getting the protocol:host part of the r

[PHP] Upload Progress

2003-03-14 Thread Dominik Werder
Hi all, when does PHP gets support for a server-html-based form upload progress meter? Does anyone know? thx. Dominik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PDF Creation

2003-03-14 Thread R B
I'm trying to use PDFreportsLite in Windows. in the /src folder, there is a rep.php example. But when i run the rep.php script, nothing apears, only the white page and the window done status. In the PDFReportsLite.php, i set: $MM_PDFReportsLite_HOSTNAME = "127.0.0.1"; $MM_PDFReportsLite_DBTY

[PHP] Why are these sessionvariables empty?

2003-03-14 Thread André Rosendaal
Hi, I created a simple example of a problem that I have with a PHP script that works in Netscape, and in Internet Explorer when cookies are disabled, but not in Internet Explorer when cookies are enabled. The purpose of the script is to create a .ram file on the fly, and playback part of a streami

RE: [PHP] Search/Regular Expression problem

2003-03-14 Thread Poon, Kelvin (Infomart)
THANKS I got it! -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 5:45 PM To: Poon, Kelvin (Infomart); 'Chris Hayes' Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP] Search/Regular Expression problem At 22:15 13-3-2003, Poon, Kelvin (Infomart) wrote

RE: [PHP] OT Inactivity Timeout

2003-03-14 Thread Johnson, Kirk
> But how can I > set up an inactivity timeout that will logout a person after > let's say 20 > minutes of inactivity? You could put a refresh on the page, that redirects to an "inactivity" page. Set the refresh time to the timeout value. Put some logout code on the "inactivity" page. Otherwi

[PHP] Re: newbie OOP?

2003-03-14 Thread John Gray
I think it's always worth it to at least design using OO methodologies. The coding moves much faster and is much easier to maintain, in my experience. A couple of books I've read recently that I'd recommend: The Object-Oriented Thought Process by Matt Weisfeld and Bill McCarty Design Patterns Ex

[PHP] OT Inactivity Timeout

2003-03-14 Thread Luis Lebron
This may be more of a javascript question than a php question. But how can I set up an inactivity timeout that will logout a person after let's say 20 minutes of inactivity? thanks, Luis

Re: [PHP] Problem with sessions expiring?

2003-03-14 Thread CPT John W. Holmes
Session files will be cleaned up after 24 minutes by default. So if they take longer than that, and the garbage collection deletes their session file, then they are no longer logged in. Increase the session.gc_maxlifetime parameter in php.ini ---John Holmes... - Original Message - From: "

Re: [PHP] accidently inserting into web database blank records.

2003-03-14 Thread Chris Hewitt
Mahmut KARADEMIR wrote: Hi All; I am trying to add a new record web database using Mysql&PHP. But after at every add process a new blank record is added to mysql table. The entered text is not considered with codes. What is my trouble in this html or php code? Could anyone has any idea? Thanks. *

[PHP] Problem with sessions expiring?

2003-03-14 Thread Mallen Baker
Hi I have a process for people to apply for awards online. The login is controlled using sessions, with a basic session variable set with the username of the person logged in. In PHP ini the session cookie lifetime is set to 0 - ie. until the browser session finishes. Manyof the applicants are

Re: [PHP] Re user Identifying

2003-03-14 Thread Martin Mandl
The problem you are describing is implemented in a quite amazing GPL shop. You might want to have a look: www.oscommerce.org Regards Martin Peter Goggin wrote: I did not make my request for information clear. The two scenarios which I have to cover: 1. The user registers as a customer with the s

Re: [PHP] http_session_vars

2003-03-14 Thread rotsky
Aaah! That clears something up. Thanks. "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At 22:17 13.03.2003, rotsky said: > [snip] > >I thought session vars were either POSTed or passed via cookies... > --

Re: [PHP] Intermittent CGI Errors

2003-03-14 Thread Joshua Groboski
No avail. Here are the last few lines of the script. I can hit it 17 times in a row with no problems. Then I might hit it three times and get the CGI Error. I think it may be IIS not PHP that is the root of this problem. We have C++ app that had the same sort of problem on IIS until we moved t

[PHP] accidently inserting into web database blank records.

2003-03-14 Thread Mahmut KARADEMIR
Hi All; I am trying to add a new record web database using Mysql&PHP. But after at every add process a new blank record is added to mysql table. The entered text is not considered with codes. What is my trouble in this html or php code? Could anyone has any idea? Thanks. ***name.html**

Re: [PHP] Newbie MySQL INSERT Q

2003-03-14 Thread CPT John W. Holmes
> Can I have a single SQL string do INSERTS into multiple tables? No. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php/mySQL time comparison

2003-03-14 Thread CPT John W. Holmes
> Try quoting your dates - you could also edit your code by using the > BETWEEN SQL keywors. Using the less than / greater than method is slightly faster and probably more portable. I don't know how many databases implement BETWEEN. ---John Holmes... -- PHP General Mailing List (http://www.php

Re: [PHP] php/mySQL time comparison

2003-03-14 Thread Brad Wright
Thanks people, thank you very very much. the missing quotes were the problem. Can't beleive I kept missing that, everytime I re-read the code. Sorted now, and I've still got some hair!! You people are legends!!! Cheers, Brad Nel vino la verità, nella birra la forza, nell'acqua i bacilli -

Re: [PHP] php/mySQL time comparison

2003-03-14 Thread php-editors.com
Try quoting your dates - you could also edit your code by using the BETWEEN SQL keywors. hope this helps |-| |- www.php-editors.com| |- php programming contests | |- php tool reviews | |- php everything else| |-|

[PHP] Newbie MySQL INSERT Q

2003-03-14 Thread Charles Kline
Can I have a single SQL string do INSERTS into multiple tables? Like: sql="INSERT INTO tbl_1 (id, email_address_1) VALUES ($v_personid, '$v_email'); INSERT INTO tbl_2 (person_id, interest_id) VALUES ($v_personid, $v_int1);"; Or do I need to break them up and use tw

Re: [PHP] php/mySQL time comparison

2003-03-14 Thread Jason Wong
On Friday 14 March 2003 22:33, Brad Wright wrote: > I want to pull all data out of a mysql table that falls between two dates > (a start-time and end-time). > > I use PHP to allow the user to specify the time interval, creating 2 > variables > 'startTime' and 'endTime'. These are formatted thus: 2

Re: [PHP] php/mySQL time comparison

2003-03-14 Thread CPT John W. Holmes
$timeFrom and $timeTo need to be surrounded by quotes within your SQL query for the format you're using. $query = "select * from Job_TB where teamNo = $teamNo AND startTime >= '$timeFrom' AND endTime <= '$timeTo'"; ---John Holmes... - Original Message - From: "Brad Wright" <[EMAIL PROTEC

[PHP] php/mySQL time comparison

2003-03-14 Thread Brad Wright
Hi all, I have been tearing my hair out for weeks with this problem, hope someone can help. I want to pull all data out of a mysql table that falls between two dates (a start-time and end-time). I use PHP to allow the user to specify the time interval, creating 2 variables 'startTime' and 'end

Re: [PHP] Wildcard fromURL

2003-03-14 Thread Verdon Vaillancourt
Hi Chris, Thanks for the pointer :) I found some other interesting reference and ideas on using this in the manual. Now I just need to provide some error checking in case $_GET['menu'] isn't defined in the URL (that should be pretty straight fwd) and in case it is defined, but a corresponding imag

Re: [PHP] What do I do wrong?

2003-03-14 Thread Maciek Ruckgaber Bielecki
On Thu, Mar 13, 2003 at 05:56:40PM -0600, Tom Woody wrote: > On Fri, 14 Mar 2003 00:37:38 +0100 > Michael Cronstrom <[EMAIL PROTECTED]> wrote: > > > I get the message: > > > > Notice: Undefined variable: msg in > > F:\www-root\domain.com\website\script.php on line 202 > > mate, this is not actua

[PHP] Problem with fsockopen() and fgetc()

2003-03-14 Thread Christos Nikolaou
I try to connect to a site via fsockopen function and get data calling a cgi on remote server using a script like this following. The response is a large amount of data up to 500Kb. But every 5000 characters approximately I get arbitrary strings like numbers "1400" and "800" and others like "7be"

[PHP] Re: Collating Values from database fields

2003-03-14 Thread David Eisenhart
Matt, You are looking at least 2 separate select queries - one to retrieve the player data on a tournament by tournament basis and a second query to 'calculate' the summary data. Now, you will be needing the GROUP BY clause in the second query while drawing on at least the player and appearances t

RE: [PHP] preg_replace question,

2003-03-14 Thread John W. Holmes
> the current function been put in place replaces [f1253f] with a file, for > inside cms content , where 1253 is the key or the id of the filename in > the > database , therefore to denote its an ftool they added f's around the keys > , > so maybe i could get away with [1253], what else i'm asking

RE: [PHP] date

2003-03-14 Thread John W. Holmes
> If I have a date in this format :19-MAR-03 how do I get the next date (the > date plus 1)? echo strtoupper(date('d-M-y',strtotime("$date +1 day"))); But why do you have it in that format to begin with? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your cop

[PHP] Re: newbie OOP?

2003-03-14 Thread rush
"Bobby Rahman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am new to PHP and was wondering whether to develop small applications (20 > pages ) is it worth it to use OOP? My take is that on 20 pages especially if they behave like app, it makes sence to use OO. > In particular I

[PHP] date

2003-03-14 Thread Diana Castillo
If I have a date in this format :19-MAR-03 how do I get the next date (the date plus 1)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: need a new challenge

2003-03-14 Thread Martin Mandl
there were some nice threads last week: - formating the input of a name: eg: stuart o'neil -> Stuart O'Neil RONALD MCDONALD -> Ronald McDonald serge d'avignon -> Serge d'Avignon von Braun -> von Braun ... implementing that for all possible langugae struktur

Re: [PHP] Re user Identifying

2003-03-14 Thread Peter Goggin
I did not make my request for information clear. The two scenarios which I have to cover: 1. The user registers as a customer with the site. In this case the shopping basket and items can be attached to the customer Id. and the shopping basket made available across sessions. The shopping basket is

Re: [PHP] Will this do what I think it will?

2003-03-14 Thread CPT John W. Holmes
How didn't it work? How did you test it? I'd be more than willing to help you test it, but everything is sort of vague right now. ---John Holmes... - Original Message - From: "Dennis Gearon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 14, 2003 12:20 AM Subject: Re: [PH

Re: [PHP] String Replace

2003-03-14 Thread Leif K-Brooks
www.php.net/str-replace Awlad Hussain wrote: I have a string with underscore in the middle.. like "This_That" which function do i use to replace the _ with space? eg to "This That" the string is in a variable.. I know its really simple but just don't know which function to use. any suggestion?

RE: [PHP] String Replace

2003-03-14 Thread Niklas Lampén
There is many functions that can do it. str_replace() is the fastest on thisone. preg_match() comes on second position, and after that comes ereg_replace(). But if you need to do harder replacing, preg_match() is the one to use, imo. Niklas -Original Message- From: Awlad Hussain [mailto

[PHP] String Replace

2003-03-14 Thread Awlad Hussain
I have a string with underscore in the middle.. like "This_That" which function do i use to replace the _ with space? eg to "This That" the string is in a variable.. I know its really simple but just don't know which function to use. any suggestion? -awlad

RE: [PHP] need a new challenge

2003-03-14 Thread php-editors.com
George, Thanks for your idea, I do like it - the only problem is that sound very much like the current beginners contest (phone book and diary) - great minds think alike :) - it sound like you may be able to tweek your code and enter it in the contest !! I will be adding a repository for php a

[PHP] "Socket must be already connected" err while fopen('http://...') on Apache

2003-03-14 Thread Kyryll Mirnenko
Suppose I'm running PHP 4.0.0 on Apache 1.3.12 on a remote server (linked as a static module, OS is reported as AIX - kinda UNIX). My PHP script tries to fopen('http://somewhere.else.com/') while responding to HTTP request itself. I've got a "Socket must be already connected" error. Trying thi

[PHP] RE: newbie OOP?

2003-03-14 Thread Bobby Rahman
Hiya I am new to PHP and was wondering whether to develop small applications (20 pages ) is it worth it to use OOP? Can any recommend any books or URLS that explain Object orientated programming and design in detail. I have read articles in www.phpbuilder.com and www.phppatterns.com. In part

[PHP] Collating Values from database fields

2003-03-14 Thread Matt MacLeod
Hi, I'm building a site for my rugby club and I want to present players' data ie: number of appearances, points scored and so on. I have three tables in my database: a table of tournaments (date, location, opposition, etc), a table of players (name, contact details, position, etc) and a table of

RE: [PHP] SQL DISTINCT with MYSQL

2003-03-14 Thread Uttam
here's my solution: I presume you need the name of the file the user last accessed. This requires a datetime column in your useronline file which records the time a user has accessed a page. If the name of this field is atime then a) create a temporary table storing lact access time for each us

[PHP] need a new challenge

2003-03-14 Thread php-editors.com
Im looking for ideas for a 2 programming contests. What I need is a very basic challenge - that new php programmers can do, but involves them mixing there thinking/programming and creative abilities. I also need a challenge for professional programmers - something that involves lots of thought,

[PHP] Re: PHP XML Reference

2003-03-14 Thread David Eisenhart
check out the book XML and PHP by Vikram Vaswani, News Riders; a well written and concise treatment of xml and php. David Eisenhart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP DOM XML Function

2003-03-14 Thread Fatih Üstündağ
do you have any idea about PHP DOM XML functions? when will PHP DOM XML functions be stable? Fatih Üstündağ Yöre Elektronik Yayımcılık A.Ş. 0 212 234 00 90 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Page Rederection Problems

2003-03-14 Thread Michael Roger C. Bianan
Hi Kelly, It would be better if you just take off the second part, the one enclosed in "<>". Also, header("Location: location"); notice, Location starts with capital L . Hope this helps, miches:) -Original Message- From: Kelly Protsko [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13

RE: [PHP] Redirect to a new page?

2003-03-14 Thread Michael Roger C. Bianan
if the browser doesn't support Javascript use this : if (YES) { header("Location: thispage.php"); } else { header("Location: thatpage.php"); } exit(); Just make sure you haven't send any output to the browser yet. A suggestion: place this code before you ever print in your cod

[PHP] Re: PHP url variables

2003-03-14 Thread Cranky Kong
Have a look at the parameter register_global in your php.ini By default in the recent version of PHP, this parameter is set by default to off for security reason. So if you want to use $id, you just have to set this parameter to on "Stephen" <[EMAIL PROTECTED]> a écrit dans le message de news: [E

[PHP] Re: PHP XML Reference

2003-03-14 Thread Alexandru COSTIN
Hello, You will also might want to try the free Krysalis platform - it's designed from scratch for XML/XSL content publishing (a la Cocoon) and you will find it very useful for your goals. http://www.interakt.ro/products/Krysalis/ Alexnadru -- Alexandru COSTIN C

[PHP] What is the fastest method for changing php settings (save php.ini)?

2003-03-14 Thread Rob Paxon
I'm sorry if this question has been answered before, but I couldn't find anything in the archives. I don't have access to php.ini and I was wondering which method for changing settings is the fastest. Take, for example, "session.cache_expire". This can be set via ini_set(), session_cache_exp

  1   2   >