[PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Russell P Jones
Im trying to count the number of times a word occurs in a string - is the only way to do this preg_match_all? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PEAR::SOAP, nusoap, PHP 4.2.2

2005-04-08 Thread Russell P Jones
Im running PHP 4.2.2 on RedHat 9.0 Just using one of the many free Google API search scripts using nusoap or pear::soap, I get no response. When I run the same script on a different server (identical, just a later version of PHP) it works like a charm. Is there a syntax difference in 4.2.2 and

[PHP] Copy mySQL database...

2005-02-03 Thread Russell P Jones
I just need to make a duplicate copy of a mySQL database (I have to reinstall some web software and I am afraid it will overwrite the existing database, so i would like to make a backup of it)... Any classes, scripts, etc out there to do this? Russ -- PHP General Mailing List

[PHP] cron job style php...

2005-01-16 Thread Russell P Jones
I have written a simple script that when a date in an array matches todays date, it sends an email (notifies me when bills are due). Any ideas on how to make this run once a day? Can you do a cron job on a PHP prog? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Sort by string length...

2004-12-21 Thread Russell P Jones
Any idea how to sort an array by string length? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mass mySQL update...

2004-12-17 Thread Russell P Jones
So I populated a mySQL database but forgot to create random ids for each record. I have used phpmyadmin to add a varchar(15) column named id at the end of the database for each record, but now am wondering if there is an easy way to get random ID's into each of these... The column values for

[PHP] fread()

2004-12-08 Thread Russell P Jones
Is there any way to use fread() or a similar function to read a section of a document NOT starting at the beginning... for example, I can read the first 1000 bytes of a document with fread($doc, 1000); Is there any way to read the second 1000 bytes? perhaps, fread($doc, 1000, 2000); who

[PHP] Sorting...

2004-11-17 Thread Russell P Jones
I have an array filled with CSV data... array ( 20040310, Title, Author 20041115, Title, Author 20040513, Title, Author ) where each array element is 1 line from the csv. When I go to print it out, Im going to explode each by , and then print it out the way I

[PHP] Reality Check...

2004-11-03 Thread Russell P Jones
Whether we like it or not - whether it was the correct decision or not - there is one certainty. Bush's reelection will mean more war and, subsequently, more death. This is not to say that such may not be necessary, but it is nevertheless disheartening. The re-election of President Bush means

[PHP] XML...

2004-06-29 Thread Russell P Jones
Any ideas on easy ways to trouble shoot problems in XML. I keep getting invalid character errors and I dont have a good way to find the problem and correct it. Russ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Get Column Names for mySQL...

2004-06-06 Thread Russell P Jones
How would one cycle through and get all of the column names in a mysql table? say that i have... id | title | name | description 1 | MR. | russ | age XX height XX 2 | MRS. | jan | age XX height XXX and I want to print out the 4 column names... how would one accomplish this? Russ --

[PHP] mySQL table output...

2004-05-23 Thread Russell P Jones
I just want to print out a table from mySQL. Thats it. into an html table. Column 1 | Col 2 | Col 3 - Val 1| val 2 | val 3 Val 4| val 5 | val 6 any ideas on how to do this? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Web Hosting

2004-04-19 Thread Russell P Jones
http://www.networkeleven.com I have been using these folks for about a year and a half now. They have done numerous custom builds for me and will do it within 15 minutes of your request. Pretty amazing customer service. Russ Jones On Mon, 19 Apr 2004, Daniel Clark wrote: I'm using

[PHP] Removing line breaks...

2004-04-17 Thread Russell P Jones
How do i turn this... [br] [b]My Title [/b] [br] into [br][b]My Title[/b][br] --- I just need to have line breaks removed basically... any ideas? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Extracting Output from File...

2004-03-30 Thread Russell P Jones
Basically there is a php page... lets say http://www.myserver.com/outputpage.php that picks up some info from a database and echos it out as plain text to the browser. I want to use php in a different file to go pick up whatever is printed out to that file and save it to a variable.. basically

[PHP] PHP PDFs...

2004-02-19 Thread Russell P Jones
Is there any way to deal with PDFS using PHP and not installing PHPlib? I simply need to pull the first page of a PDF document and print it out using PHP. (Like a PDF preview of sorts)... Any ideas? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP and Word...

2004-02-15 Thread Russell P Jones
I need to use PHP to pull the first page from a Word Document and then print it to the screen. It doesnt have to be fancy, so even if just the text is pulled that would be fine (although formatting would be grand too). Anyone got any ideas? I cant use the COM object since Im running this on a

[PHP] PHP, XML, UTF-8

2003-12-08 Thread Russell P Jones
Im storing a lot of user-entered data in XML files but i have a problem with folks submitting stuff just by copying and pasting from microsoft word. Smart Quotes and other awkward text then gets submitted and ruins the xml, meaning i am searching and replacing item by item to replace stuff. Does

[PHP] Use XML...

2003-10-08 Thread Russell P Jones
Use XML to store all your data, and if you want an xml search mechanism, I have a quick and dirty answer that runs client-side so you dont have to worry about wearing down your server... russ jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Website templating schemes

2003-08-26 Thread Russell P Jones
Agreed with John W. Homes regarding his method of website templating. It is used in that fashion for all sites run by demcampaigns.com and www.collegedems.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Invalid Characters, XML...

2003-08-03 Thread Russell P Jones
Im using PHP to write to XML files, but I am having some problems. A lot of users are cutting and pasting content from text editors like word, which uses odd quotation marks, dashes, etc. which PHP writes to the XML file, and then the XML parser does not under stand. Is there a stripslashes() or

[PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Russell P Jones
Any idea on how to get rid of Windows chracters. I have paroblem with users cutting and pasting out of Microsoft Word into textarea's and input-boxes and the special characters like quotations and apostrophes messing up the xml... Thanks Russ -- PHP General Mailing List

[PHP] Send BCC mail with PHP

2003-06-24 Thread Russell P Jones
Is there any way to send mail blind carbon copy via PHP? Or do I need to write some script that cycles through and sends a separate email for each individual? Im trying to write a script for personal use that allows me to send emails straight from my active desktop, but I would like to allow

RE: [PHP] php and flash chat program

2003-06-10 Thread Russell P Jones
The best way I can see to answer this would be to use the body onUnload=function() in javascript and just have that function run what you need. You could have php put the screen name into some variable in the javascript and then onUnload (the user either closes the browser or changes the page) run

Re: [PHP] PHP Hosting Sites

2003-06-10 Thread Russell P Jones
I recently hosted with a company called networkeleven (http://www.networkeleven.com)... I required a custom build of php because i use DOMXML to run most of my site. They completed the task in literally under 15 minutes after my request. Since then, I have had no service interuptions and

[PHP] 4.2.3 and XML...

2002-12-28 Thread Russell P Jones
My sysadmin just complied 4.2.3 on my Apache web server but is out of town for the next few weeks. Problem is, all my PHP/domxml stuff is SHOT and won't work at all anymore. Does anyone know where I can track down the documentation for 4.2.3, specifically the code changes in domxml. The