[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 4.2.2 which is insignificant
enough not to give an error, but significant enough to prevent a SOAP
request from coming through?

Russ Jones

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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, visit: http://www.php.net/unsub.php



[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 many of the entries are not unique, so I couldnt
just loop through saying where term = $row[term] set id= rand(1, 9)

any other ideas? Any way to refer to a particular row without matching
values?

Russ

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

or would substr work?

russ

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

BUT, I want to sort them all by those first 8 digits, which happen to be
the date. Any way to sort an array by the first x characters in its
string?

This would save a lot on processor time, otherwise Im going to have to
pull an array of those characters, sort it, and then run some matching
scheme against the CSV data to print it in the order I like - which would
be HUGELY processor intensive.

Thanks,

Russ

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 that the American people believe
that more blood must be shed to win the war on terror. A sobering reality
from either side of the aisle.

Russ Jones



On Wed, 3 Nov 2004, Angelo Zanetti wrote:

 you obviously havent watched farenheit 911. where are the WMD?



  Ryan A [EMAIL PROTECTED] 11/3/2004 5:56:27 PM 
 THIS is going too far, I am not an American or staying in the States
 but I
 hope bush wins,your country tries to develop WMDs and the Americans
 come and
 kick all your asses, impose sanctions and then leave :-D

 See what happens when you discuss your political views on a list that
 has
 different people receiving it??
 Motto: Be respectful to other people from every nation AND DONT POST
 POLITICS to the PHP list jackass.

  screw all this political bullsh1t!
  who cares about the americans, they are just after oil and I dont
 care
  as long as bush doesnt win.
 
  long live iraq!!!
 
 
 
 
 
 
 
 
 
   Daniel Schierbeck [EMAIL PROTECTED] 11/3/2004 3:52:35 PM 
 
  Ryan A wrote:
 
   On 11/2/2004 6:34:43 PM, ApexEleven ([EMAIL PROTECTED]) wrote:
 
  
 
  I can't wait for the replies...
  
  
  
   Heres one, I vote you drive yourself and your family as fast as
  possible on
   the freeway then close your eyes and wave both your hands in the
 air
  while
   counting from 1000 to 1, be sure to keep the accelerator to the
  floor.
  
   -Ryan
  Wow, I can feel the positive vibes coming from your posts!
 Halelujah!
 
  --
  Daniel Schierbeck
 
  Help spread Firefox (www.getfirefox.com):
  http://www.spreadfirefox.com/?q=user/registerr=6584
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
  
  Disclaimer
  This e-mail t

 
 Disclaimer
 This e-mail transmission contains confidential information,
 which is the property of the sender.
 The information in this e-mail or attachments thereto is
 intended for the attention and use only of the addressee.
 Should you have received this e-mail in error, please delete
 and destroy it and any attachments thereto immediately.
 Under no circumstances will the Cape Technikon or the sender
 of this e-mail be liable to any party for any direct, indirect,
 special or other consequential damages for any use of this e-mail.
 For the detailed e-mail disclaimer please refer to
 http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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: http://www.php.net/unsub.php



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 www.phpwebhosting.com


  On Mon, 2004-04-19 at 15:14, Martin, Stanley G [Contractor for Sprint]
  wrote:
  Some time ago I put up a web site on Domehost.com.  Everything has been
  working great and I had a couple questions for their Tech Support but
  haven't received any feedback from them, they don't answer their phones.
  Also, it is stated on their site that a company called Wintek Computing
  took them over last year.  I can't contact them either.  Does anyone
  know anything that may have happened here?  I suspect I need to find
  another web hosting company before my site just goes away.
 
  Stanley G. Martin
  System Administrator
  Sprint - EAS Business Intelligence
  [EMAIL PROTECTED]
  --

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

$contentofpage = getoutput(http://www.myserver.com/outputpage;);

any ideas? I need it to pick up the output, not something that actually
reads the content of the file...

Russ Jones

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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: http://www.php.net/unsub.php



[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
linux machine, and I have limited access to installation of 3rd party
software because I am using shared hosting. Classes would rock, or
anything really.

I was thinking about converting it to text somehow, and then just pulling
the first 50 lines or so - but I dont know how to convert it to text...

What do you all think?

Russ Jones

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 anyone know how I could do this automatically, as in is there
anything that will convert a string to UTF-8 automatically

ideally $fixed = convert-to-utf($oldmessedupstring)

any ideas? Will CDATA sections allow non UTF-8 text?

Russ Jones

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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: http://www.php.net/unsub.php



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 htmlspecialchars() equivalent that will convert this
kind of stuff to the correct ascii text?

Russ


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

Russ



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 the function that tells whatever your delete
username program is to remove that user from the list



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 continued
incredible support.

I am unaffiliated with the company, aside from being a customer.

Russ Jones
Technology Director, demCampaigns LLC
http://www.demCampaigns.com

On Tue, 10 Jun 2003, Martin, Stanley G wrote:

 Anybody have any GOOD experience with PHP Web Hosting sites?  I found a list at 
 http://www.zend.com/hosting_sites/phphosting.php?CID=484 but don't know enough about 
 them to make a safe decision.

 Stanley G. Martin
 System Administrator
 Sprint - EIS3 Customer Care
 [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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
changelog's just arent indepth enough and php.net just switched over its
documentation to 4.3.0...

Any help would be hugely appreciated.

Thank you so much,

Russ Jones...

to see the error in action... http://www.collegedems.com/?x=news.php

gracias


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php