[PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx

2005-04-04 Thread Anthony Tippett
I'm having trouble figuring out why subtraction of two floats are giving me a very small number. I'm thinking it has something to do with the internals of type casting, but i'm not sure. If anyone has seen this or can give me some suggestions, please. I have 2 variables that go through a while

Re: [PHP] [Q] mail() security

2005-04-04 Thread Anthony Tippett
Eric, It sounds like you just need to do some reading on best practices of security when writing php code. It's pretty vast what one can do when trying to hack a php application and depending on what php server settings are set, you may need to do certain things. I'd suggesting reading / google

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx - Narrowed it down!

2005-04-04 Thread Anthony Tippett
* 1; print $a.br; // 18.49 var_dump($a); // float(18.49) var_dump($a-18.49); // float(3.5527136788005E-15) ? Anthony Tippett wrote: I'm having trouble figuring out why subtraction of two floats are giving me a very small number. I'm thinking it has something to do with the internals of type

Re: [PHP] PHP Tool to answer emails

2005-04-04 Thread Anthony Tippett
I think what you are looking for is a combination of programs. A mailing list that customers can view answers of emails try mailman or smartlist. Perhaps just a mailint list would give you want you want. If you are looking for more of a trouble ticket program, or FAQ program there are serveral

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx - Narrowed it down!

2005-04-04 Thread Anthony Tippett
number X you like. Or you can look at something like BC_MATH where precision can be carried out as far as you like... But what you are seeing is to be expected. That's just the way computers work, basically. On Mon, April 4, 2005 5:07 pm, Anthony Tippett said: Ok i've narrowed

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx - Narrowed it down!

2005-04-04 Thread Anthony Tippett
very small) internal conversion differences (0.27755575615629 in your example) or use the bcmath extension, although for monetary values you should go perfectly fine with using round(...,2) on your final results Anthony Tippett wrote: btw, thanks for your response. I'm

[PHP] Setting or Getting Relative Path for PHP Includes

2004-12-20 Thread Anthony Baker
provide a code example? Either that, or is there a way to call this variable from the server itself so that it's automatically -- and correctly -- set? Thanks, Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] apache2 php stability

2004-11-29 Thread Anthony Gauda
I have read at various places on the web that Apache 2 and PHP running as a module isn't recommended for production sites. Does anyone here run PHP 4/5 and Apache2 in a high load production environment with success? If so, whats your configuration? Thanks! -- PHP General Mailing List

Re: [PHP] apache2 php stability

2004-11-29 Thread Anthony Gauda
very inexpensive to start. Under a high load spike Apache 2 would, in theory, respond better. Greg Donald wrote: On Mon, 29 Nov 2004 15:55:31 -0600, Anthony Gauda [EMAIL PROTECTED] wrote: I have read at various places on the web that Apache 2 and PHP running as a module isn't recommended

Re: [PHP] apache2 php stability

2004-11-29 Thread Anthony Gauda
actually any distro with a 2.6 kernel should already have it. You can check by doing a getconf GNU_LIBPTHREAD_VERSION if it says NPTL .xx you have it... Greg Donald wrote: On Mon, 29 Nov 2004 16:21:22 -0600, Anthony Gauda [EMAIL PROTECTED] wrote: The same load under apache 2 runs under 300

[PHP] Specifying Variable Document Path in PHP

2004-10-25 Thread Anthony Baker
this so I don't have to hard-code paths across the site (as I'm doing now). Is there any easy way to accomplish this? Thanks in advance, Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] foreach()

2004-09-08 Thread Anthony Ritter
Greetings, The following code is from Learning PHP5 [O'Reilly] on page 90. Example - 6.5: I get a: Warning: Invalid argument supplied for foreach() in c:\apache\htdocs\or_6.4.php on line 15 after submitting the form. I'm not sure why since the example uses the call to foreach() in which the

[PHP] htmlentities()

2004-09-08 Thread Anthony Ritter
Copied and pasted the following sample script from the php manual and this outputs: ... ?php $str = A 'quote' is bbold/b; echo htmlentities($str); ? .. // outputs: A 'quote' is bbold/b Not sure why the I am still getting the tags and spaces after the call to htmlentities().

Re: [PHP] htmlentities()

2004-09-08 Thread Anthony Ritter
Chris Shiflett wrote: View source, and I think you'll understand. Or, remove the call to htmlentities(). Chris .. Thank you all for your assistance. Best... TR ... ...when a browser sees lt, it prints out a character instead of thinking OK here comes an HTML tag.

[PHP] Re: Does this beginner's book exist?

2004-09-02 Thread Anthony Ritter
Chris Lott wrote in message: I am looking for a new text for my beginning PHP...[snipped] ... Besides Larry's book - which is excellent - try David Sklar's book called Learning PHP 5 (O'Reilly). Not too much on mySQL with PHP except for chapter 7 _however_ the whole book is

[PHP] Re: Does this beginner's book exist?

2004-09-02 Thread Anthony Ritter
Chris Lott [EMAIL PROTECTED] wrote in message: I am looking for a new text for my beginning PHP and MySQL programming class. This class is for COMPLETE beginners who have never programmed before. I have used, in the past, PHP4: A Beginner's Guide and PHP for the World Wide Web (Visual

[PHP] strcasecmp()

2004-08-29 Thread Anthony Ritter
? $first_name = Hello; $second_name = Hello; if(strcasecmp($first_name,$second_name)) { echo words are equal; } else { echo words are not equal.; } ? .. In strcasecmp() - this comparison will return 0 - interpreted by PHP as FALSE - eventhough words are _equal_ so what will execute

Re: [PHP] mysql_fetch_array()

2004-08-18 Thread Anthony Ritter
Thank you Chris. My question was the call to mysql_fetch_array() will also return a result set without the additional argument constant as in: while ($row = mysql_fetch_array($sql)) {... // no constant is being used There are many times that I see that used in textbooks - without the

[PHP] mysql_fetch_array()

2004-08-17 Thread Anthony Ritter
When using mysql_fetch_array() is it necsessary to specify the second argument - meaning the constant of MYSQL_NUM or MYSQL_ASSOC? I have seen many examples where it is left out and it is coded: $row = mysql_fetch_array($sql); as opposed to $row = mysql_fetch_array($sql, MYSQL_BOTH); Thank

[PHP] RSS / eregi_replace()

2004-08-03 Thread Anthony Ritter
Greetings, I'm using an RSS feed from the New York Times and right now the a href link takes the user to the same window. I'd like the link to open in it's own window by using the target .html attribute. I was hoping that I could use the eregi_replace() call by inserting: a

Re: [PHP] RSS / eregi_replace()

2004-08-03 Thread Anthony Ritter
Justin Patrin [EMAIL PROTECTED] wrote in message: Thanks, lots of good info here. It's nice to have all of the info at once. I don't know about eregs myself, but I'll try a preg solution: $new_text = preg_replace('!link(.*?)/link!', 'a href=\1 target=_blank\1/a', $text); Thank you.

[PHP] php textbook

2004-08-02 Thread Anthony Ritter
Reading Creating Interactive Websites with PHP and Web Services (Sybex) by Eric Rosebrock. I've found it a good textbook and wanted to get some feedback from the group about two things I noticed in most of the code throughout the book which has helped me. 1. The author separtares .html form from

[PHP] session looses variable

2004-06-17 Thread Anthony Weston
Hi, This is what is probably a newbie session problem. I've been having some trouble with sessions on php 4.0.6, I'm developing a website in which I don't have direct control over the server. Due to some other problems I created a test counter script to try to narrow down where the problem

[PHP] Re: Calendar math .... how to count in week days....?

2004-05-14 Thread Anthony
The PEAR functions didn't seem to do what I was looking for. I built this function based on an idea given to me by Daryl Meese. After much trial and error, it actualy does what I need. My function is bassed on hours but you can easily change that. It will add or subtract days. - Anthony

[PHP] Calendar math .... how to count in week days....?

2004-05-06 Thread Anthony
have a really efficient function to do this, I need to figure out a LOT of dates in this app. - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form textbox with search

2004-04-20 Thread Anthony Ritter
Greets, The following code snippet receives data from a textbox named searchtext if the user types in a word. It then tries to match that word from the mysql database using: $searchtext = $_POST['searchtext']; if ($searchtext != '') { // Some search text was specified $where .= AND blurb LIKE

[PHP] example from meloni not working

2004-04-18 Thread Anthony Ritter
A basic ht counter script from Meloni's book on mysql (page 318). Not working for me. Every time I load the page the counter stays at zero. Thanks for help. TR .. ? $page_name=test1; $db=mysql_connect(localhost,root,'mypass); mysql_select_db(sitename); $sql = UPDATE test_track

Re: [PHP] example from meloni not working

2004-04-18 Thread Anthony Ritter
Thank you. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] example from meloni not working

2004-04-18 Thread Anthony Ritter
Thank you. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] binary data in php

2004-04-16 Thread Anthony Ritter
Lowell Allen [EMAIL PROTECTED] wrote in message: You might try using $HTTP_POST_FILES rather than $_FILES -- was necessary in my code recently. -- Lowell Allen ... Lowell, Thank you. I tried that in code below. Still - no dice. Any other thoughts? Best... TR

Re: [PHP] binary data in php

2004-04-16 Thread Anthony Ritter
John W. Holmes [EMAIL PROTECTED] wrote in message: So what's the output? How do you know it's not working? If you're not getting an error, then your query is running and something is going in the database. Are you sure the problem isn't in how you're displaying the data? ..

Re: [PHP] binary data in php

2004-04-16 Thread Anthony Ritter
Marek Kilimajer [EMAIL PROTECTED] wrote in message: You said register globals are off, didn't you? Where is the above variable set then? :) ... That was it. Many thanks Marek and others. Checking through the command line the file was uploaded to mysql database. However

[PHP] file upload

2004-04-15 Thread Anthony Ritter
In the following snippet, which uploads binary files to a mySQL database it works fine when Register Globals are set to ON. . mysql_connect(localhost,root,pass); mysql_select_db(adatabase); $data = addslashes(fread(fopen($form_data, r), filesize($form_data)));

[PHP] binary data in php

2004-04-15 Thread Anthony Ritter
Greets, Register globals are to off - however the files will not upload. At wit's end - help please! Thank all in advance. TR ? if ($submit) { // connect to the database // (you may have to adjust the hostname,username or password)

Re: [PHP] binary data in php

2004-04-15 Thread Anthony Ritter
John W. Holmes [EMAIL PROTECTED] wrote in message: Remember... we're laughing with you, not at you. You forgot to call mysql_query() in your code. :) . Hmmm... I wish it was as simple as that. I inserted the mysql_query() below but it still doesn't upload the file nor does it

[PHP] .doc file

2004-03-30 Thread Anthony Ritter
Greets, I've been able to open a remote URL, read it and then lop off everything except the last line and break it into an array with its' tabs - /t . The data will then be inserted into a table. However, the following URL shows reservoir storage and is a .doc file. I am unable to run the same

[PHP] Re: .doc file

2004-03-30 Thread Anthony Ritter
Jason Barnett [EMAIL PROTECTED] wrote in message: Actually, why don't you just use plain text like this. Sheesh, sometimes I forget the easy answer :) .. Jason, Thanks for the reply. Since those figures change _daily_ on their site, I was hoping for a way to open the file, read

[PHP] htmlspecialchars()

2004-03-25 Thread Anthony Ritter
php / mysql/ apache I tried the following using the call to htmlspecialchars() not sure why it is insn't working. I get the output: a href='test'Test/a Thank you. TR .. //script ? $new = htmlspecialchars(a href='test'Test/a, ENT_QUOTES); echo $new; ? // this is what is

[PHP] isset() question

2004-02-15 Thread Anthony Ritter
The following script is from Kevin Yank's book (Sitepoint). When I test it _without_ entering a name in the text box and hit submit, the _next_ page loads - however the same page should load beacuse of the conditional if (!isset($name) ): . If I replace !isset() with empty()

Re: [PHP] isset() question

2004-02-15 Thread Anthony Ritter
- Original Message - From: Richard Davey [EMAIL PROTECTED] Hello Anthony, I feel the book you're learning from might not be the best out there! Especially as it uses the horrible if : else : endif notation, includes code on the same line as the PHP tags themselves and is teaching

[PHP] limit run time of a function?

2004-02-11 Thread Anthony
confused and then I get help desk calls. There has got to be another way. Any ideas? - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: odbc functions - not binary safe?

2004-01-27 Thread Anthony
. :) - Anthony C C [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm trying to insert binary data into a MS SQL Server database. Text files are added fine, but binary files with null bytes are not. The field I'm adding the binary data to is image type. I get an error about unclosed

[PHP] php_hostconnect()

2004-01-08 Thread Anthony Ritter
I currently have websites with two ISP's. I am getting a lot of warnings throughout a .php script on one server - such as: php_hostconnect() I have used the _same_ .php script exactly on my other ISP's server and I don't get any warnings. In addition, I have tested this script locally on

[PHP] localhost mail

2004-01-07 Thread Anthony Ritter
Using php/apache/mysql on win 98 I am testing an mail script. The script has a .html form which receives the text input and then a .php script to execute the variables in a mail() function. When I publish both files - the .html and .php - to my ISP's server and enter the data and hit submit I

[PHP] mail()

2004-01-06 Thread Anthony Ritter
Using php/apache/mysql I am testing an mail script. The script has a .html form which receives the text input and then a .php script to execute the variables in a mail() function. When I publish both files - the .html and .php - to my ISP's server and enter the data and hit submit I receive an

[PHP] session / garbage collection problem

2003-12-19 Thread Anthony Kaufman
that had been around for less than a minute. We've thought of several hacks that would control the problem but we can't come up with any way to fix it. Thanks in advance, Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session / garbage collection problem

2003-12-19 Thread Anthony Kaufman
Redhat 9 kernel 2.4.20-18.9bigmem ext3 fs Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What filesystem and OS is this? Anthony Kaufman wrote: PHP Version 4.2.2 Apache 2 RH 9 The problem is that session files in the /tmp directory are completely cleared

Re: [PHP] session / garbage collection problem

2003-12-19 Thread Anthony Kaufman
it does in our case), you don't rely on the stuff in the tmp directory at all. You could also emulate PHP's session-in-file approach using a similar method. Tony Crockford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 19 Dec 2003 13:37:06 -0800, Anthony Kaufman wrote: PHP

[PHP] Where'd my session go??

2003-12-17 Thread Anthony
into the application. I checked session.cookie_lifetime and it's set to 0. The client side is IE 5.5 or 6. What could be causing the session to be lost? Thanks for your help :) - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] count()

2003-12-06 Thread Anthony Ritter
Marek Kilimajer [EMAIL PROTECTED] wrote in message: There are 10 '[PAGEBREAK]' substrings in the string. If the string is split apart at these substrings, it will give you total 11 parts. Thank you. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] count()

2003-12-05 Thread Anthony Ritter
Greetings- I'm have the follwing string called $text and throughout this string I'd like to split this into an array by calling spliti() at the tag called PAGEBREAK. So, I count the array elements starting at 0 and get to 9. When I call count(), I get 11. Could somebody please explain why this

[PHP] $_SESSION var sometimes set, sometimes not

2003-11-24 Thread Anthony Whipple
Hi, The following code sometimes produces output indicating that the session variables have been set, and sometimes is says that they have not been set. Unfortunately the server is not mine to configure, but if there is a problem with it, I can get in touch with the right people. Is the script

Re: [PHP] $_SESSION var sometimes set, sometimes not

2003-11-24 Thread Anthony Whipple
I just tried that. It made no change. Still sometimes works, sometimes doesn't. It's on the order of clicks. It may work three times in a row, then fail a couple times. It's very strange. John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anthony Whipple wrote

[PHP] file paths and binaries

2003-11-23 Thread Anthony Ritter
Greetings all, I'm looking for a tutorial or some assistance in explaning how store and then open and read a binary file using php/mysql. I've got a few tutorials about storing the binary data _within_ a mysql table from Kevin Yank, phpbuilder, etc. but I've heard that it's sometime better to

[PHP] download from mysql script

2003-11-23 Thread Anthony Ritter
I'm trying to receive data from a mysql database through php. Using the command line at mysql listed below gives me a result set. I am able to connect to the database through php, however, when using the following script, I receive no data when the data is in the table called pictures in the db

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread Anthony Ritter
Thanks again but here's what happens when I run that. The form box appears. I select an option. I hit submit. The page that loads says: Warning: Invalid argument supplied for foreach() in c:\apache\htdocs\session_yyy.php on line 13 I then hit the link: Back to content page. The form box

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread Anthony Ritter
Sure. Here it is. There are three scripts. session_1.php: the original form script. session_1a.php: a revised script with a conditional else. session_2.php: the receiving script for the session array variable. Running script 1a and 2 works fine. However the original script 1 and 2 gives me a

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread Anthony Ritter
Additinally, upon looking at the session files in: C:/apache/tmp: I get from session file from script session_1a.php: products|s:23:a:1:{i:0;s:6:Tardis;}; ... However, looking at session file from script session_1.php: I get: products|s:2:N;; -- Anthony Ritter [EMAIL

[PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Anthony Ritter
Using mysql, apache and win98 The following code is from PHP, mySQL and Apache (SAMS) by Julie Meloni. Page 338-339 (hour 16). After choosing my selections in the form box and hitting submit I get: ... Warning: Invalid argument supplied for foreach() in

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Anthony Ritter
Thanks John and others. I'm using the script and no values show up in the page: session_bb.php after I submit the values in the select form. If somebody would like to test both scripts (session_aa.php and session_bb.php) and get back to me I would be grateful. As I said, these were from her

[PHP] naughty words / filter

2003-08-21 Thread Anthony Ritter
Hi, I'm trying to filter a word - in this case - called badword1 - to be replaced with asterisks. Listed below is my .html form and .php receiving script. I've also added the same script which gets a hardcoded string. In the first example, the output still shows the original message _without_

[PHP] Re: naughty words / filter

2003-08-21 Thread Anthony Ritter
Was able to get this to filter: . ? } $guestbook = stripslashes($message); $this_is_the_message=$guestbook; $dirty_words = array(badword1,badword2,badword3); $message = $this_is_the_message; foreach ($dirty_words as $word){ $message = str_replace($word, , $message); }

[PHP] mysql output

2003-08-19 Thread Anthony Ritter
The following code snippet outputs a table from a mySQL database. In version 1, I am able to get alternating background cell colors. However, the output gives me the same post five times. In version 2, I am able to receive five separate posts - which is what I'm looking for - but I'd like to

Re: [PHP] mysql output

2003-08-19 Thread Anthony Ritter
You also asked a very, very common question, i.e. how to alternate colors in table rows... there are a ton of websites/tutorials out there that explain ways to do this. ---John Holmes... Apologies for the lengthy code. I've tried using a few

Re: [PHP] mysql output

2003-08-19 Thread Anthony Ritter
Message - From: John W. Holmes [EMAIL PROTECTED] To: Anthony Ritter [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 9:59 PM Subject: Re: [PHP] mysql output Anthony Ritter wrote: You also asked a very, very common question, i.e. how to alternate colors in table

Re: [PHP] discussion forum from j. meloni's book

2003-08-14 Thread Anthony Ritter
Ford, Mike [LSS] [EMAIL PROTECTED] writes: You have a conceptual misconception. In effect, you need to read that query as: select ft.topic_id, ft.topic_title from ( forum_posts as fp left join forum_topics as ft on fp.topic_id = ft.topic_id )

[PHP] Re: Repopulating forms

2003-08-14 Thread Anthony
becasue your $test string contains double quotes. This is casuing you to end the value element in the input tag. - Anthony Gerard L Petersen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi My code looks like this. ?PHP $test = gerard's name is \gerard\; echo $test.br; echo

Re: [PHP] email confirmation script

2003-08-14 Thread Anthony Ritter
Thanks Jackson. I appreciate the assistance. Am I on the right track? Best... TR .. // this is the form html body form action=post method=process.php p Your e-mail address:br input type=text name=namebr input type=text name=emailbr input type=submit name=submit

[PHP] discussion forum from j. meloni's book

2003-08-14 Thread Anthony Ritter
The following code is From Julie Meloni's textbook - PHP, mySQL and Apache (SAMS) on page 305-307 / Listing 14.5: It's the last script of a discussion forum which is comprised of four php files and one html file. The script can be seen at: http://www.thickbook.com Chapter 14 off the zipfile.

[PHP] Re: Help Please in using fopen in PHP

2003-08-14 Thread Anthony Ritter
[EMAIL PROTECTED] wrote in message: Hi Folks, I am currently learning php and Mysql a scripting language and DB i just feel in love with. I am currently having problem in opening file to put data collected from clients when the purchase from an online shop. The scripts is as follows. where

[PHP] PDF Thumbnail with PHP?

2003-08-14 Thread Anthony
Does anyone know if there is a way to generate a thumbnail of the 1st page of a PDF document using PHP. I have an application that archives PDF files, beeing able to generate small preview images of the documents would be really cool :) - Anthony -- PHP General Mailing List (http

Re: [PHP] PDF Thumbnail with PHP?

2003-08-14 Thread Anthony
Unfortunatly, that's not what I'm trying to do. That function will add an image to a PDF file as a thumbnail. What I want to do, is read a PDF file, and generate a thumbnail in the form of a gif or jpg and have it display in the browser. Thanks for the thought though. - Anthony Jay Blanchard

Re: [PHP] discussion forum from j. meloni's book

2003-08-14 Thread Anthony Ritter
Ford, Mike [LSS] [EMAIL PROTECTED] writes: You have a conceptual misconception. In effect, you need to read that query as: select ft.topic_id, ft.topic_title from ( forum_posts as fp left join forum_topics as ft on fp.topic_id = ft.topic_id )

[PHP] email confirmation script

2003-08-14 Thread Anthony Ritter
Hi, I'm trying to find a script that does the following: 1. A user is presented with a form with a textbox for their e-mail address. 2. The user types in their e-mail addrees and submits the form. 3. A note is then sent from that server if their e-mail address , in fact, exists. 3. If the e-mail

Re: [PHP] discussion forum from j. meloni's book

2003-08-14 Thread Anthony Ritter
Jennifer Goodie [EMAIL PROTECTED] writes: You didn't switch the aliases around, you just switched the join order. This will provide unexpected results. In order to understand it, you should read up on left joins. http://www.mysql.com/doc/en/JOIN.html Thank you.

Re: [PHP] discussion forum from j. meloni's book

2003-08-14 Thread Anthony Ritter
Jennifer Goodie [EMAIL PROTECTED] writes: They don't. ft is aliased to forum_topics. That's right. ft is aliased to the forum_topics table. The query reads: ... $verify = select ft.topic_id, ft.topic_title from forum_posts as fp left join forum_topics as ft on

[PHP] email confirmation script

2003-08-14 Thread Anthony Ritter
This is what I receive via e-mail after I click submit using the following code. As you can see - the html attribute a href= shows up and the whole string in linked. All I was looking for is a link to the URL and the word - Click - to be underlined showing the link. Additionally, the value (as

[PHP] Re: Repopulating forms

2003-08-10 Thread Anthony
=post input type=text name=foo value= / input type=submit name=sub value=submit /form and it will work :) - Anthony Gerard L Petersen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi My code looks like this. ?PHP $test = gerard's name is \gerard\; echo $test.br; echo 'input

[PHP] Best PHP CMS

2003-08-05 Thread Anthony
of the features that I'd like are an easy template implementation, blog features, media gallery and something that's easy to build custom modules to add features. So far I'm looking at about 6 CMS systems, I like certain things in each of them. so what's your opinion. - Anthony -- PHP

Re: [PHP] mysql_real_escape_string

2003-08-04 Thread Anthony Ritter
Larry E . Ullman [EMAIL PROTECTED] wrote in message: The mysql_real_escape_string() requires a connection to the database. The connection identifier is defined in another script so it's brought in using the global statement. Hope that helps, Larry .

[PHP] mysql_real_escape_string

2003-08-03 Thread Anthony Ritter
The following function is from Larry Ullman's PHP and mySQL on page 217 - script 6.8 - in which there is a connection to a mySQL database using PHP. My question is that I'm not sure of the global variable $dbc. If I am to understand...this made up function escape_data() will receive a piece of

[PHP] Using eregi_replace()

2003-08-01 Thread Anthony Ritter
Using eregi_replace(), is there a way to take out a piece of a sentence - which has spaces - and then return the new sentence? For example, to return the new sentence: hello I must be going from the original sentence: blah blah blah hello I must be going blah blah. I tried:

Re: [PHP] Using eregi_replace()

2003-08-01 Thread Anthony Ritter
Messju Mohr [EMAIL PROTECTED] writes: you mean $newtext= ereg_replace(.*?(hello.*going).*,\\1,$text); ?? .. Thank you but I get: Warning: REG_BADRPT: in c:\apache\htdocs\string.php on line 3 Using: . ? $text=blah blah blah hello I must be

Re: [PHP] Using eregi_replace()

2003-08-01 Thread Anthony Ritter
However, this works using: preg_replace() . ? $text=blah blah blah hello I must be going blah blah; $newtext= preg_replace(!.*?(hello.*going).*!,$1,$text); echo $newtext; ? Thank you all. Is there a way I can be sure of the syntax? !.*?(hello.*going).*!,

[PHP] strings

2003-08-01 Thread Anthony Ritter
In the following snippet, I'm trying to open and read a URL into the variable $contents. I'd like to use preg_replace() to return only part of that string beginning with say - regional and ending with new - but I get the complete URL string returned. Thank you for any assistance. Tony Ritter

Re: [PHP] strings

2003-08-01 Thread Anthony Ritter
Curt Zirzow wrote in message: This exact thing was talked about earlier today, with the subject 'Using eregi_replace()'. Right. However, I've tried using the following code in which the text from the URL is printed out completely and then I change the variable from

Re: [PHP] strings

2003-08-01 Thread Anthony Ritter
Curt Zirzow writes: I did some testing you can see the code and results here: http://zirzow.dyndns.org/html/php/tests/preg/parse_doc.php .. Thanks Curt. I checked it out and I still pick up the following lines which I was looking to delete on the pattern match. They are:

[PHP] anchor in php page

2003-07-29 Thread Anthony Ritter
I am trying to access a page published on a server - and then using an anchor - to jump to a specific paragraph on that page. For instance, if using asp, I could write: www.thesite.com/thepage.asp?go=here where here -the value - in the string query would be marked up as:

[PHP] Re: anchor in php page

2003-07-29 Thread Anthony Ritter
Ivo: Why not use : www.thesite.com/thepage.asp#here . Thank you Ivo. I don't usually use asp but was wondering if the word go in asp like: www.thesite.com/thepage.asp?go=here is a _reserved_ word in .asp which acts like the symbol # - serving as the anchor. And if

[PHP] Re: Recovering from a time out

2003-07-18 Thread Anthony
page on timeout. That would be pretty cool though, anyone know? - Anthony Gerard Samuel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is it possible to *gracefully* recover from php timing out? For example, uploading a large file, and php times out, so display Oops Timed out

[PHP] Please dirrect me -- headers ????

2003-07-14 Thread Anthony
do this by sending certain headers? (I have both domains pointing to the same server) ... should/could I do something like this through PHP or is there something I can set in Apache to do the same thing? Simply confused, - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Strange Problem

2003-07-14 Thread Anthony
file. So you'd expect to get a 404 error. but IIS gives you the CGI error instead. Kinda sucks, I just use Apache now anyway, so I never spent the time to figure out why. - Anthony Haseeb [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, this is a very

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Anthony
. It's simply that one is the old address, and I want users to see teh new address, even if they type in the old one. - Anthony Ryan Gibson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Headers have nothing to do with the head tag, the headers are sent before the html page, ie

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Anthony
this through Apache. it would probably be much simpler. - Anthony Apache 2.0.45 by the way :) Taylor York [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Cant you edit the httpd.conf? I know there might be plenty of reasons why not to...but im just checking. =) Server mydom1.com

[PHP] Re: Please Help !

2003-07-08 Thread Anthony
['date'] is whatever variable you used. - Anthony Sean O'Reilly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I know this is really basic but i have a form for users to enter the date of an event that i would like to store in a mysql database how do i get the users input

[PHP] Re: php my sql question

2003-07-03 Thread Anthony
local machine, that way you can test your scripts without uploading them to the webserver. - Anthony Jerome A. Jackson/Ac/Vcu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a web site that has my sql installed. The web server is 1st host web and they do not provide much

[PHP] Re: Calculating Largest Member of Array

2003-07-03 Thread Anthony
[4] = 87.34 ) [Feb-99] = Array ( [0] = 5754.72 [1] = 3964.93 [2] = 6145.98 [3] = 693.32 [4] = 23.80 ) ) That would make it much easier. I think. - Anthony John Wulff [EMAIL PROTECTED] wrote

[PHP] Re: PHP + Linux: Configuration?

2003-07-03 Thread Anthony
Not 100% sure, but isn't $HTTP_POST_VARS depricated?... to lazy to look in the manual right now. You should use $_POST instead. I have no idea if that's causing your problem though :-P - Anthony Luiz Morte [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello list, I have a problem

Re: [PHP] Get Rid of this Crook

2003-07-03 Thread Anthony
pathetic isn't it :-/ - Anthony Doug Essinger-Hileman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 3 Jul 2003 at 9:06, Adam Voigt wrote: Well spamming doesn't get them any money. I believe I read they use this info to transfer money from your bank account, after

[PHP] Re: web based mail client

2003-07-03 Thread Anthony
/netmail/ Don't know how customiseable it is or if you could use PHP to extend it, but its worth a look. - Anthony Pete Morganic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] There's loads of email clients here http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Web

<    1   2   3   4   >