Re: [PHP] Recommended book on PHP/SOAP

2008-05-05 Thread Todd Cary
Dan Joseph wrote: On Mon, May 5, 2008 at 12:29 PM, Todd Cary <[EMAIL PROTECTED]> wrote: I would like a book on implementing SOAP geared for someone with no SOAP experience. Hopefully SOAP can be used with PHP 4?!? Many thanks... I'm not sure of a book, but for PHP4 you'

[PHP] Recommended book on PHP/SOAP

2008-05-05 Thread Todd Cary
I would like a book on implementing SOAP geared for someone with no SOAP experience. Hopefully SOAP can be used with PHP 4?!? Many thanks... Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to create accessible by PHP

2008-05-03 Thread Todd Cary
Todd Cary wrote: Are there any examples of creating a dll that can be placed in the dll directory of php that can be accessed by php? My language would be Delphi, however an example in C would suffice. Many thanks... Todd Sorry about my typo in the Subject! Todd -- PHP General Mailing

[PHP] How to create accessible by PHP

2008-05-03 Thread Todd Cary
Are there any examples of creating a dll that can be placed in the dll directory of php that can be accessed by php? My language would be Delphi, however an example in C would suffice. Many thanks... Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] Interacting with an IpServer via sockets

2008-05-02 Thread Todd Cary
I have an IpServer using Turbopowers IpServer library) and am able to connect and send data (fwrite() ), however, I cannot receive data from the server. The PutString() in the IpServer executes without error, however the fgets() just hangs. Any ideas on what I may be doing incorrectly? $fp

[PHP] Passing an array as a hidden variable

2007-05-11 Thread Todd Cary
When I use the following syntax, the 2 dimensional array loses it's contents. Can an array be passed this way? $attend_ary_save .'>'; ?> Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Processing a table of input fields

2007-05-11 Thread Todd Cary
Jim Lucas wrote: Richard Davey wrote: Todd Cary wrote: I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process

Re: [PHP] Processing a table of input fields

2007-05-11 Thread Todd Cary
Jim Lucas wrote: Richard Davey wrote: Todd Cary wrote: I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process

[PHP] Processing a table of input fields

2007-05-11 Thread Todd Cary
I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process the table when the submit button is pressed? There are abo

Re: [PHP] Removing commas from number

2007-05-06 Thread Todd Cary
racter that will not be accepted by MySQL, so I do $mysql_number = preg_replace('/[^0-9^\.]/', '', $display_number); Thank you for your suggestions Todd Paul Novitski wrote: At 5/6/2007 08:33 AM, Todd Cary wrote: Thanks to the suggestions, I use number_format($my_number

[PHP] Removing commas from number

2007-05-06 Thread Todd Cary
Thanks to the suggestions, I use number_format($my_number, 2) to format the number in an edit field. Now I need to reenter it into MySQL. How should I use preg_replace to remove the commas? This removes the commas *and* the decimal point: preg_replace('/\D/', '', $str) In reviewing patterns

[PHP] Best way to format double as money?

2007-05-05 Thread Todd Cary
I have a MySQL DB that stores currency values as doubles. I want to display the values in the #,##0.00 format. What is the best way to do that? Todd -- Ariste Software 2200 D Street Ext Petaluma, CA 94952 (707) 773-4523 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Sending the results of a query without using a file

2007-05-02 Thread Todd Cary
Some shared servers do not allow the creation of a file, so I am looking for a way to take the results of a query (MySQL), create a CSV output and have it in a sendable format for the user without creating a file. Many thanks Todd -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Parsing CSV files

2007-04-27 Thread Todd Cary
Many thanks! I must be losing my eyesight! There it is and it works as expected...great. Todd Richard Lynch wrote: On Thu, April 26, 2007 3:39 pm, Todd Cary wrote: Is there a function that can parse a comma delimited file into an array? fgetcsv should work... -- Ariste

[PHP] Parsing CSV files

2007-04-26 Thread Todd Cary
Is there a function that can parse a comma delimited file into an array? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using a reentrant form

2007-03-13 Thread Todd Cary
To validate a page, I set the form value to the page name the user is on. Then there is a hidden variable, "looped" that is set to "1". By checking "looped", I know if the user has re-entered the form so I can do my validation checks. Is there a disadvantage to this approach? Thank you...

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Todd Cary
is equivalent to the class [^0-9]. ex: preg_replace('/\d/', '', $str); preg_replace('/\D/', '', $str); "Todd Cary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Chris Boget wrote: I would like to write a filter that takes th

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Todd Cary
Chris Boget wrote: I would like to write a filter that takes the text "smith" or "SMith" and returns "Smith"; same for "ralph smith". Is the a good source on using filters this way? It may not be the most efficient way of accomplishing this, but you could do something like: $string = 'SMit

[PHP] Capitalizing the first letter

2007-03-13 Thread Todd Cary
I would like to write a filter that takes the text "smith" or "SMith" and returns "Smith"; same for "ralph smith". Is the a good source on using filters this way? Thank you... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Have a SQL Server COM question

2006-08-08 Thread Todd Cary
I am in the process of converting my clients PHP scripts that are using Interbase so they will work with SQL Server (their request; not mine). Is there a reference where I can get the COM Methods and Properties? Also, without loading the large AdoDb, is there a Prepare() method if I use the

[PHP] ibase_errcode() not defined

2006-04-22 Thread Todd Cary
If I use ibase_errcode(), I get an undefined error; ibase_errmsg() works. Anyone else have this error with Firebird? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using Header() to pass information...

2006-04-22 Thread Todd Cary
M. Sokolewicz wrote: Jochem Maas wrote: Todd Cary wrote: If I use if ($send) header("location: mypage.php?message=" . $message); the data ($message) is passed in the URL. Is there a way to pass the data as though it was a POST method i.e. not in the URL? probably, b

[PHP] Using Header() to pass information...

2006-04-22 Thread Todd Cary
If I use if ($send) header("location: mypage.php?message=" . $message); the data ($message) is passed in the URL. Is there a way to pass the data as though it was a POST method i.e. not in the URL? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] Can "output_buffering" be set in a script?

2006-03-30 Thread Todd Cary
I do not have access to the php.ini file and I need to have output_buffering turned on. Can this be done within a script? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Formatting a Time field

2006-03-23 Thread Todd Cary
I have a field, Start_Time, in a MySQL DB. Since it is not a TimeStamp, I believe I cannot use date(), correct? I would like to format 09:00:00 to 9:00 AM. If I convert the 09:00:00 with the strtotime(), I get a couple of extra minutes added. Suggestions are welcomed Todd -- PHP Gener

Re: [PHP] Creating a Window without JavaScript that is on top

2006-03-22 Thread Todd Cary
Problem solved Todd Todd Cary wrote: How do I get the var into a php variable in the destination window? Todd Brady Mitchell wrote: Personally, I think that posting a way to allow php to communicate with javascript OR any other language is relevant for a php-general list, don'

Re: [PHP] Creating a Window without JavaScript that is on top

2006-03-22 Thread Todd Cary
How do I get the var into a php variable in the destination window? Todd Brady Mitchell wrote: Personally, I think that posting a way to allow php to communicate with javascript OR any other language is relevant for a php-general list, don't you think? To use the value of a PHP variable in j

Re: [PHP] Creating a Window without JavaScript that is on top

2006-03-22 Thread Todd Cary
Gosh darn! That really works!! Many thanks! Though I may be still playing around with the PHP code, a demo might be seen at http://209.204.172.137/calendar/php/showmonth.php Todd Brady Mitchell wrote: Personally, I think that posting a way to allow php to communicate with javascript OR a

Re: [PHP] Creating a Window without JavaScript that is on top

2006-03-22 Thread Todd Cary
Thank you! Very helpful indeed! Todd Jay Blanchard wrote: [snip] Is there a way to create a Window that is like the Help or Popup type windows one can create with JavaScript? I have an event calendar and I want the link for the event to go to a PHP page, but I want the page to be on top an

[PHP] Creating a Window without JavaScript that is on top

2006-03-22 Thread Todd Cary
Is there a way to create a Window that is like the Help or Popup type windows one can create with JavaScript? I have an event calendar and I want the link for the event to go to a PHP page, but I want the page to be on top and have focus with a Close button. The PHP page will have some PHP co

[PHP] Executing a string

2006-01-09 Thread Todd Cary
If I have $myStr = "$a * $b"; and I pass it as an argument $result = myFunction($myStr); function myFunction($var) { $a = getData(1); $b = getData(2); return // Use $var } Is there a way to use $var to process $a and $b? Todd -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] The meaning of and "@"

2006-01-09 Thread Todd Cary
I have not been able to find in the Online Manual the use of the "@" symbol as in while ([EMAIL PROTECTED]($sqlID, MYSQL_BOTH)){ Is that a "pointer"...address of...? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using POST to pass variables

2005-11-30 Thread Todd Cary
information via the socket (POST). Todd David Robley wrote: Todd Cary wrote: When I have more than one button on a page, I us what I call a reentrant approach. That is the page calls itself. If the page is emailer.pgp, the the FORM tag would be At the top is Is there a better way to d

[PHP] Using POST to pass variables

2005-11-30 Thread Todd Cary
When I have more than one button on a page, I us what I call a reentrant approach. That is the page calls itself. If the page is emailer.pgp, the the FORM tag would be At the top is Is there a better way to do this so I can use a POST form? Thank you... Todd -- PHP General Mailing List

[PHP] Re: when to enter submitted in mysql?

2005-11-29 Thread Todd Cary
I track my sessions in the MySQL database in the session table. There is a field, ExpireTime, so the table is self purging. For the pages, I place them into a table, tmp_data, that has a sessionID field and ExpireTime. When all pages are completed, the data is inserted into the data table.

Re: [PHP] Web based editor

2005-11-27 Thread Todd Cary
Tom - I noticed that too: http://209.204.172.137/emailer/php/examples/example_full.htm http://209.204.172.137/FCKeditor/_samples/php/sample01.php Todd Tom Chubb wrote: I don't know about TinyMCE - about to look at it, but I have found FCKeditor very slow. HTH On 26/11/05, Todd Cary &l

[PHP] Improving my PHP coding

2005-11-26 Thread Todd Cary
Though my applications run in a high profile environment (national class action lawsuits e.g. Enron, Microsoft, etc.), my coding style is ages old, and even then, primitive. If there is anyone who has the time to help me bring my coding up to 2005 standards, off line, I would appreciate it.

Re: [PHP] Web based editor

2005-11-26 Thread Todd Cary
Joe - Thank you. I like how TinyMCE integrates. Todd Joe Wollard wrote: On Nov 26, 2005, at 12:11 PM, Todd Cary wrote: I want to provide the user with an editor like http://209.204.172.137/FCKeditor/_samples/php/sample01.php Is it best to use a JavaScript based editor? Are there some

[PHP] An event calendar

2005-11-26 Thread Todd Cary
Currently I am considering the use of ltwCalendar, however I am open to suggestions for an open source event calendar like this demo of ltwCalendar: http://209.204.172.137/sfyc/php/calendar/calendar.php I would like to be able to easily modify it so that I can have an event that links to anoth

[PHP] Re: When to make a class

2005-11-26 Thread Todd Cary
Olli - A very well thought out answer. I especially liked the part, "I see the benefits of a class when functions start sharing variables.". Todd Oliver Grätz wrote: Todd Cary schrieb: My background is in Object Oriented Pascal (Delphi), however I am having difficulty knowi

[PHP] When to make a class

2005-11-26 Thread Todd Cary
My background is in Object Oriented Pascal (Delphi), however I am having difficulty knowing when to make a class in PHP. For instance, in my script file, functions.php, I have these functions among others: /* Input a field */ function input_field($name, $value, $size, $max) { echo('')

Re: [PHP] Printing to a buffer

2005-11-13 Thread Todd Cary
.html"); echo $buf; ?? looks easier to me... no output buffering required... Todd Cary wrote: Just before the police knocked at my door, I made a few changes! "; $buf = ob_get_contents(); $len = strlen($buf); ob_end_clean(); header("Content-type: text/plain"); header(&

[PHP] Output_Buffer problem

2005-11-13 Thread Todd Cary
My client has switched to a shared server, so direct access to the php.ini is not availble. Our calendar program expects to have output_buffering set to On ("1"). Currently, I get the expected error of Warning: Cannot modify header information - headers already sent by (output started at /h

Re: [PHP] Printing to a buffer

2005-11-13 Thread Todd Cary
Just before the police knocked at my door, I made a few changes! "; $buf = ob_get_contents(); $len = strlen($buf); ob_end_clean(); header("Content-type: text/plain"); header("Content-Length: $len"); header("Content-Disposition: attachment; filename=sfyc.html"); print($buf); ?> Tod

Re: [PHP] Printing to a buffer

2005-11-13 Thread Todd Cary
Marcus - Many thanks! I did not know that MIME-Type. Change duly made! Todd Marcus Bointon wrote: On 13 Nov 2005, at 00:17, Jasper Bryant-Greene wrote: seem to do that. I just tried "application/text" since I use "application/pdf" for other applications. Whatever it's giving the user

Re: [PHP] Printing to a buffer

2005-11-12 Thread Todd Cary
Yup! It was the missing parentheses! Works as planned. Many thanks The "application/text" gives the user the ability; "text/plain" does not seem to do that. I just tried "application/text" since I use "application/pdf" for other applications.

[PHP] Printing to a buffer

2005-11-12 Thread Todd Cary
My client's new shared server does not allow printing to a file, so I want my print statement to print to a buffer, then I'll send it to the user via Headers. This does not work since "print" does no go to the buffer, or at least appears not to: I get the errors from the header statements; "

[PHP] Re: Attachments and SendMail()

2005-11-08 Thread Todd Cary
I figured it out! The base location for SendMail is the php directory. Now that I think about it, that makes sense. Todd Todd Cary wrote: I have had to move an application for a client from a dedicated server to a shared server. On the dedicated server, the path to the attachements was an

[PHP] Attachments and SendMail()

2005-11-08 Thread Todd Cary
I have had to move an application for a client from a dedicated server to a shared server. On the dedicated server, the path to the attachements was an absolute address of "/home/sites/home/web/php/images/raceschd.pdf"; and all worked fine when I gave that as the location of the attachement:

[PHP] Setting up Linux and SendMail for SMTP

2005-10-13 Thread Todd Cary
I have a Linux server on my network, however my main mail is handled by Thunderbird on my PC which uses my ISP's SMTP server (UserName and PW). Can I configure SendMail to send mail to my ISP's SMTP server using the built in mail() function of PHP? If I use one of the Mail Classes, I can do i

[PHP] Best way to update PHP on RH 9

2005-09-11 Thread Todd Cary
I have RH 9 on our server and if I try to use a rpm for php-4.3.9 or greater, there are many unresolved dependencies. What is the best way around this problem? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking a date for validity

2005-09-08 Thread Todd Cary
Chris W. Parker wrote: Todd Cary <mailto:[EMAIL PROTECTED]> on Wednesday, September 07, 2005 3:39 PM said: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retval = 0; } else { if (strpos($date, "/") > 0) {

Re: [PHP] Checking a date for validity

2005-09-08 Thread Todd Cary
Chris W. Parker wrote: Todd Cary <mailto:[EMAIL PROTECTED]> on Wednesday, September 07, 2005 3:39 PM said: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retval = 0; } else { if (strpos($date, "/") > 0) {

Re: [PHP] Checking a date for validity

2005-09-08 Thread Todd Cary
Chris W. Parker wrote: Todd Cary <mailto:[EMAIL PROTECTED]> on Wednesday, September 07, 2005 3:39 PM said: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retval = 0; } else { if (strpos($date, "/") > 0) {

Re: [PHP] Checking a date for validity

2005-09-07 Thread Todd Cary
2005, at 5:39 PM, Todd Cary wrote: I need to check the input of a user to make sure the date is valid and correctly formatted. Are there any examples available? Here is one solution I created: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retva

[PHP] Checking a date for validity

2005-09-07 Thread Todd Cary
I need to check the input of a user to make sure the date is valid and correctly formatted. Are there any examples available? Here is one solution I created: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retval = 0; } else { if (strpos

[PHP] Re: Debugging mail()

2005-07-28 Thread Todd Cary
Todd Cary wrote: I have the following code in my script and no errors are created, but I do not get any emails. It works on other servers. Are there some logs I can check to figure out why an email is not being sent/received? Todd Whoops...forgot the code: if (mail("[EMAIL PROT

[PHP] Re: Debugging mail()

2005-07-28 Thread Todd Cary
Todd Cary wrote: I have the following code in my script and no errors are created, but I do not get any emails. It works on other servers. Are there some logs I can check to figure out why an email is not being sent/received? Todd I think I figured out the problem: the needed port is

[PHP] Debugging mail()

2005-07-28 Thread Todd Cary
I have the following code in my script and no errors are created, but I do not get any emails. It works on other servers. Are there some logs I can check to figure out why an email is not being sent/received? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Is GD available

2005-07-15 Thread Todd Cary
supported out of the box. I am going to try and find the rpm for php-4.3.11 and reinstall it. Todd André Medeiros wrote: On Fri, 2005-07-15 at 07:25 -0700, Todd Cary wrote: In php 4.3.11, ini files are placed in /etc/php.d that have "extension=". I have one (i.e. gd.

Re: [PHP] Is GD available

2005-07-15 Thread Todd Cary
In php 4.3.11, ini files are placed in /etc/php.d that have "extension=". I have one (i.e. gd.ini) with "extension=libgd.so.2" and libgd.so.2 is in /usr/lib/php4. Todd André Medeiros wrote: On Fri, 2005-07-15 at 07:06 -0700, Todd Cary wrote: I have php 4.3.11 a

[PHP] Is GD available

2005-07-15 Thread Todd Cary
I have php 4.3.11 available, and when I do a phpinfo() http://209.204.172.137:81/testphp.php I see it in the configuration, but it is not listed elsewhere. How can I test to see if it is available? gd_info() is not in 4.3.11 and extension_loaded('gd') gives a false. Todd -- PHP General

[PHP] RH 9: Installing PHP 4.3

2005-07-06 Thread Todd Cary
Until I can get Fedora 4 to install on my computer, I need to go back to RH 9 which means I need to update Apache and PHP. This is not an area in which I have much knowledge, so bear with me: I downloaded the tarball for Apache 2.0.54 and then configured with ./configure --prefix=/www --enable

[PHP] PHP 4.3/MySQL phpinfo()

2005-04-05 Thread Todd Cary
I have installed FC 3 with Apache and MySQL. When I run phpinfo(), I do not see MySQL listed as a database nor can I connect via php. Does something have to be specially done with the FC 3 install? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] Simple CMS program

2005-03-31 Thread Todd Cary
This has been the one I wanted to try, but I needed to hear from someone that could recommend it. Now I'll do a test install on my Linux "play box". Many thanks... Todd Andre Dubuc wrote: On Wednesday 30 March 2005 08:19 pm, Josip Dzolonga wrote: Todd Cary wrote: When I went to a

[PHP] Simple CMS program

2005-03-30 Thread Todd Cary
When I went to a site that lists and compares CMS programs, I was overwhelmed by at least 100 listings. Again, I would like to rely on personal experience. What I am seeking is a CMS that will provide users at my client (a Yacht Club) to update news items, and if possible, update a calendar u

Re: [PHP] Any personal experience with MySQL/Calendar application

2005-03-30 Thread Todd Cary
e in a company setting and found it to be largely satisfactory. It might be overkill in your case but you can restrict module access. www.egroupware.org HTH Peter Brown Todd Cary wrote: I am looking for an open source calendar program that uses MySQL to store the data and has an online Admin f

[PHP] Any personal experience with MySQL/Calendar application

2005-03-29 Thread Todd Cary
I am looking for an open source calendar program that uses MySQL to store the data and has an online Admin feature. Rather than trying the many that are listed, I am hoping that someone may have some personal experience with a application of this type and make a recommendation. Todd -- PHP Gen

[PHP] Re: Sending data via POST

2005-03-11 Thread Todd Cary
fp)) { echo fgets($fp, 128); } fclose($fp); } | "Todd Cary" <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote in message news:[EMAIL PROTECTED] Currently I send data to another page by using header("Location: http://"

[PHP] Sending data via POST

2005-03-11 Thread Todd Cary
Currently I send data to another page by using header("Location: http://" . $_SERVER['HTTP_HOST'] .                     dirname($_SERVER['PHP_SELF']) .     "/" . $relative_url  .     "?" . $my_data); My client would like the data passed via a POST rather than

[PHP] Inline Frame and php

2005-02-28 Thread Todd Cary
My client insists on using inline Frames that uses my php pages. As an example, this is on one page: This works well with the "control" being given to search.php. What I do not understand is that within search.php, I have a statement that is suppose to pass "control" to anther page. The l

[PHP] Re: Changing PHP properties (Previously: Cannot upload a file greater

2005-02-08 Thread Todd Cary
me I am sure! Todd Dan Trainor wrote: Todd Cary wrote: Richard - It turned out that the following was missing from Apache's httpd.conf file: SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 500 Not sure what that does or where I should have read about it, but I did find that

Re: [PHP] Cannot upload a file greater than 500 KB

2005-02-08 Thread Todd Cary
Richard - It turned out that the following was missing from Apache's httpd.conf file: SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 500 Not sure what that does or where I should have read about it, but I did find that in an email I got with Google. Todd Richard Lynch wrote:

[PHP] Cannot upload a file greater than 500 KB

2005-02-08 Thread Todd Cary
I am using php 4 and Apache 1.3 on a RH 9 box. upload_max_filesize is set to 5M post_max_size is set to 8M MAX_FILE_SIZE in the HTML upload page is set to 500 I get the error "The document contains no data" with any file over 500 KB. What is creating the error? Many thanks. Todd -- PHP Gene

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Todd Cary
} else { $page_path = $page_path . '->' . '<a href="' . $path . $scripts[$i] . '">' . $pages[$i] . '</a>'; } } else { if ($i == 0) { $page_path = $pages[$i]; } else { $p

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Todd Cary
$page_path = $page_path . '->' . '<a href="' . $path . $scripts[$i] . '">' . $pages[$i] . '</a>'; } } else { if ($i == 0) { $page_path = $pages[$i]; } else {

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Todd Cary
ring, $fullscriptname) . "'"; with the same results. Todd Justin French wrote: On 01/02/2005, at 1:05 PM, Todd Cary wrote: I have the following: $p = http://209.204.172.137/casesearch/php/home.php";>Home try $p = 'http://209.204.172.137/casesearch/php/home.php"

Re: [PHP] Storing key values in an array

2005-01-21 Thread Todd Cary
re are the result: Array ( [mailings] => mailings [cases] => cases ) 0 => cases 1 => mailings Todd Jochem Maas wrote: Todd Cary wrote: I am using an array to populate a drop-down and I would like to have the same value in the key as the value. Using the following, the key is

[PHP] Storing key values in an array

2005-01-21 Thread Todd Cary
I am using an array to populate a drop-down and I would like to have the same value in the key as the value. Using the following, the key is 0,1,2,3...etc. How can I correct that? $file_list = array(); $dir = opendir($doc_dir); while (false !== ($file = readdir($dir))) { if (

[PHP] Providing a means for the surfer to send a file

2005-01-20 Thread Todd Cary
I am looking for some sample code on setting up a page that provides a means for the surfer to send a file to the server. Todd -- <>

[PHP] Making includes and requires safe.

2004-12-27 Thread Todd Cary
I received the following and I would like to know what is meant by "making includes and requires safe": [Quote] News Story by Peter Sayer DECEMBER 27, 2004 (IDG NEWS SERVICE) - The latest version of the Santy worm poses an elevated risk to many Web sites built using the PHP scripting language,

[PHP] Re: Passing values from a new window

2004-11-05 Thread Todd Cary
Is there a place where I can view some examples of using JavaScript? Todd Todd Cary wrote: I have a button that creates a new window. The surfer may enter data in the new window, and if he does, when the window is closed by the surfer, can the information update fields on the original page

[PHP] Passing values from a new window

2004-11-05 Thread Todd Cary
I have a button that creates a new window. The surfer may enter data in the new window, and if he does, when the window is closed by the surfer, can the information update fields on the original page - the page/window from which the new window was created? I have seen instances where the surfe

Re: [PHP] Passing marked rows in a table

2004-11-02 Thread Todd Cary
[snip] If the elements all live within the same form, you can add [] to the end of the name/id attribute, and then all checkboxes with the same name will be accessible in an array. So "checkboxname[]" will show up as $_POST['checkboxname'] on the receiving end. [/snip] Can I do $MyArray = $_POST

[PHP] Passing marked rows in a table

2004-11-02 Thread Todd Cary
I create a list of records from a DB and each has a check box. What is the best way to select those that were checked after the form is submitted? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passing a list in the Header

2004-11-02 Thread Todd Cary
I need to pass a list (preferably an Array) in the header. Can this be done, and if so, what is the best method? Also, how do I extract the info on the page that receives the info? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] With a graphic image, making text transparent

2004-10-12 Thread Todd Cary
I would like to place text on a graphic but vary the transparency of the text. Can this be done with the gd library? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Auto escaping an apostrophy...

2004-09-20 Thread Todd Cary
Many thanks to all. Todd John Legg wrote: Todd, From the PHP manual: magic_quotes_gpc boolean Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically.

[PHP] Auto escaping an apostrophy...

2004-09-20 Thread Todd Cary
I have noticed that an apostrophy is automatically escaped with a "\", or at least appears to be if the surfer enters an apostrophy in a text field. Has this always been the case or is there a setting in the php.ini file that contols this? Todd -- PHP General Mailing List (http://www.php.net/)

[PHP] Creating a new window

2004-09-20 Thread Todd Cary
I am using PHP to create a button on a window so that a new window is created when the button is clicked using javaScript. Is there a way to create a new window inline; that is create a window on top of the current window without having the surfer press a button? Here is my current onClick cod

Re: [PHP] Displaying a pdf inline

2004-09-14 Thread Todd Cary
file. Yet, the file can be opened on the server. Am I missing something simple here? Todd Curt Zirzow wrote: * Thus wrote Todd Cary: After reading the online documentation, it appears that I should be using the following code, however it does not appear to work. Are there some obvi

[PHP] Displaying a pdf inline

2004-09-14 Thread Todd Cary
After reading the online documentation, it appears that I should be using the following code, however it does not appear to work. Are there some obvious errors? if ($row) { $pdf_file = $row->CLM_IMG_FILE; $msg = $pdf_file; $SRC_FILE = "/tmp/" . $pdf_file;

Re: [PHP] Re: Slideshow using PHP

2004-07-08 Thread Todd Cary
Matthew - <<< Part of getting the slideshow to work is making the browser switch to the next image and well, PHP doesn't really make the browser do anything. >>> As I was thinking about it before posting this thread, that was my impression. The problem with my javaScript app is the fact that it

[PHP] Re: Slideshow using PHP

2004-07-08 Thread Todd Cary
I do have a JavaScript based "SlideShow", however, I would like to use PHP rather than JavaScript. Is there a way to "loop" with PHP and "display" an image without re-displaying the whole page? Todd Alex Shi wrote: Search google for javascript slideshow script. Javascript slideshow need an arr

[PHP] Slideshow using PHP

2004-07-07 Thread Todd Cary
I would like to have images displayed automatically using PHP with a Database and/or an array of images. Is there any sample code available for doing that? Can that be done with Flash and PHP? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] Online HTML editor

2004-06-21 Thread Todd Cary
I want to create an email application in PHP for my client so they can produce email text with different fonts and styles just using a browser. Are there any classes that would provide the means to do the editing? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Making Printer Friendly files

2004-05-13 Thread Todd Cary
I have a news letter produced by PageMaker that is normally put into PDF format so the user can download it. However, I would like to have a Printer Friendly version (no graphics). Is there a PHP program that can take an HTML version and remove the graphics or is there a better way with pagem

Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread Todd Cary
You were close enough...this works: The next challenge is to create a new window and display the file. Todd John Nichel wrote: Todd Cary wrote: Currently, I have a Link to show a PDF file here to open the Race Schedule'); ?> I want to replace it with a button and an

[PHP] OnClick handler to show PDF

2004-05-13 Thread Todd Cary
Currently, I have a Link to show a PDF file here to open the Race Schedule'); ?> I want to replace it with a button and an OnClick() '); ?> I cannot get the syntax correct for the OnClick. Is this the best way to use a button for the task? Todd -- PHP General Mailing List (http://www.php.net

Re: [PHP] Reshuffling an array

2004-05-12 Thread Todd Cary
Works as advertised. Made it a sort. Todd John W. Holmes wrote: From: "Todd Cary" <[EMAIL PROTECTED]> I do the following: $eventList = array(); $eventList[] = "Any"; $dbh = db_open($host, $user, $password, $database); if($dbh) { $sthdl = db_get_event_d

  1   2   3   4   >