[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

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'll want to grab

[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:

[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] 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?

[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

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] 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? ? echo 'input type=hidden name=attend_ary_save value=' . $attend_ary_save .''; ? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[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

Re: [PHP] Removing commas from number

2007-05-06 Thread Todd Cary
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, 2) to format the number in an edit field. Now

[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,

[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

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] 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

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 = 'SMith'

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Todd Cary
; this 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 the text smith or SMith and returns Smith; same for ralph

[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... --

[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] 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:

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, but I don't know

[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

[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

[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

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

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

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

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't you

[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

[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 form method=get action=emailer.php At the top is ?php $send= $_GET[btnSend]; // Send button pressed $cancel =

[PHP] Re: Using POST to pass variables

2005-11-30 Thread Todd Cary
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 form method=get action=emailer.php At the top is ?php

[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 [EMAIL

[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) {

[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 knowing when to make

[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

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] 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] 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-13 Thread Todd Cary
Just before the police knocked at my door, I made a few changes! ? ob_start(); print This is a testbr; $buf = ob_get_contents(); $len = strlen($buf); ob_end_clean(); header(Content-type: text/plain); header(Content-Length: $len); header(Content-Disposition: attachment;

[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

Re: [PHP] Printing to a buffer

2005-11-13 Thread Todd Cary
required... Todd Cary wrote: Just before the police knocked at my door, I made a few changes! ? ob_start(); print This is a testbr; $buf = ob_get_contents(); $len = strlen($buf); ob_end_clean(); header(Content-type: text/plain); header(Content-Length: $len); header(Content

[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; ?

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. Todd Jasper Bryant-Greene wrote: Todd Cary

[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] 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

[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

[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) { $parts = explode

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) { $parts = explode

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) { $parts = explode

[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

Re: [PHP] Checking a date for validity

2005-09-07 Thread Todd Cary
, 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) { $retval = 0

[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:

[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

[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 PROTECTED

[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

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 available, and when I do

Re: [PHP] Is GD available

2005-07-15 Thread Todd Cary
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.ini) with extension=libgd.so

[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

[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:

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 site that lists

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

2005-03-30 Thread Todd Cary
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 feature. Rather

[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

[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

[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 in the URL. Can this be done and if so, how?

[PHP] Re: Sending data via POST

2005-03-11 Thread Todd Cary
); } | 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://; . |$_SERVER['HTTP_HOST'] .| |dirname($_SERVER['PHP_SELF

[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: IFRAME target=_top frameborder=0 SRC=search.php?search_text=?echo($search_text);? WIDTH=592 HEIGHT=282 /IFRAME This works well with the control being given to search.php. What I do not

[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

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

2005-02-08 Thread Todd Cary
Lynch wrote: Todd Cary wrote: 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

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

2005-02-08 Thread Todd Cary
for 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: Files *.php SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 500 /Files Not sure what that does or where I should have read about it, but I did

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Todd Cary
Justin French wrote: On 01/02/2005, at 1:05 PM, Todd Cary wrote: I have the following: $p = a href=http://209.204.172.137/casesearch/php/home.php;Home/a try $p = 'a href=http://209.204.172.137/casesearch/php/home.php;Home/a'; echo $p; --- Justin French, Indent.com.au [EMAIL PROTECTED] Web

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Todd Cary
]; } } } //print(Page_path: . $page_path . br); return $page_path; } Thank you for your help... Todd Jochem Maas wrote: Todd Cary wrote: OK...I am close, but still missing something. The string returned by the function is $page_path and it contains a href=http://209.204.172.137/casesearch/php

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Todd Cary
;'; } } else { if ($i == 0) { $page_path = $pages[$i]; } else { $page_path = $page_path . '-gt;' . $pages[$i]; } } } //print(Page_path: . $page_path . br); return $page_path; } Thank you for your help... Todd Jochem Maas wrote: Todd Cary wrote

[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

Re: [PHP] Storing key values in an array

2005-01-21 Thread Todd Cary
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 0,1,2,3...etc. How can I correct that? what is there to correct - you are telling me that the value of $file

[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 -- inline: NewLogo.gif

[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] 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

[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 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] 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

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 =

[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

[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

[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/)

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] 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] Displaying a pdf inline

2004-09-14 Thread Todd Cary
, 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 obvious errors

[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 array of

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 needs

[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:

[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:

[PHP] OnClick handler to show PDF

2004-05-13 Thread Todd Cary
Currently, I have a Link to show a PDF file ? print('Click a href=' . $url . $sfyc_race_schd_send . ' Name=Race Schedule Target=_blankhere/a to open the Race Schedule'); ? I want to replace it with a button and an OnClick() ? print('input type=button name = View Schedule OnClick='); ? I

Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread Todd Cary
You were close enough...this works: input type=button value=View Schedule onClick=JavaScript:document.location='?php echo ( $url . $sfyc_race_schd_send ); ?' The next challenge is to create a new window and display the file. Todd John Nichel wrote: Todd Cary wrote: Currently, I have

[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

[PHP] Reshuffling an array

2004-05-12 Thread Todd Cary
I do the following: $eventList = array(); $eventList[] = Any; $dbh = db_open($host, $user, $password, $database); if($dbh) { $sthdl = db_get_event_data($dbh); while ($row = mysql_fetch_object($sthdl)) { $eventList[] = $row-EV_EVENT; } } else { $eventList[] = * None

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_data($dbh); while ($row

  1   2   3   >