[PHP] Splitting a complex string problem

2001-03-02 Thread rm
etter more elegant ( read as faster) way to handle this problem. rm __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] MySQL Create Table Problem

2001-03-02 Thread rm
Shouldn't the primary key spec come at the end of the table create command, not in the middle ex... CREATE TABLE president ( last_name varchar(15) NOT NULL, first_name varchar(15) NOT NULL, suffix varchar(5) NOT NULL, city varchar(20) NOT NULL, state varchar(2) NOT NULL, birth date NULL, death da

Re: [PHP] cutting apart form field data

2001-03-02 Thread rm
look at the explode or split functions in the php help docs --- Randy Johnson <[EMAIL PROTECTED]> wrote: > okay I want to have the user submit multiple values > in a text form field > > ex > > day,night,month > > How do I take that data and break it apart into > separate variables? > > than

[PHP] Inane ereg_replace question

2001-03-03 Thread rm
;,":",$b); does not work. I've had this problem before and ended up using two or more statments rather than one. rm __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General

Re: [PHP] some array help :)

2001-03-10 Thread rm
I'm not exactly sure of what you're doing, however, if you're trying to find a match to an element of an array and if there's a match do somethingyou might try for ($i=0; $i < count($temparray); $i++){ if ($temparray[$i] == "something"){ do whatever

Re: [PHP] some array help :)

2001-03-10 Thread rm
True enough, however, there are still some of us using stone tablets for our correspondence :) rm --- Jørg_Vidar_Bryne <[EMAIL PROTECTED]> wrote: > Or you could use this in php4: > > if ( in_array( "something", $temparray

[PHP] Variable problems and strings PHP3

2001-03-15 Thread rm
f the string and if the variable $a changes then the final value of $string will reflect the new value of $a. Anyone have any vague idea of what I mean or how to accomplish this. Right now I'm using arrays to keep track of the string parts and then the script assembles the stri

Re: [PHP] include php3 -vs- 4

2001-03-16 Thread rm
try something like define("CONFIGURATION", "YES"); in xyz-inc-1.php if (CONFIGURATION != "YES") { include("/xyz-inc-1.php"); in the script --- Jack Sasportas <[EMAIL PROTECTED]> wrote: > Is there a workaround under php3 for include_once ? > > Thanks > > ___

Re: [PHP] Form problem...

2001-03-17 Thread rm
stripslashes should work in most cases, something like $text=stripslashes($text); before it goes to email rm __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http

Re: [PHP] how do i get a variable type?

2001-03-18 Thread rm
PHP, at least php 3.x, has a series of fuctions like is_string, is_integer, is_array etc. I know they're there...I don't us them so I don't know exactly where...this might be what you're looking for... rm --- phpman <[EMAIL PROTECTED]> wrote: > hello all, >

[PHP] Need a URL....

2001-04-13 Thread rm
My hard drive died, lost my bookmarks. Can someone post the url of the site that archives this list...it was marc something or otherneed to find a piece of code I know was posted to this listthank rm __ Do You Yahoo!? Get email at your

Re: [PHP] Need a URL....

2001-04-13 Thread rm
Thank you rm --- Keyur Kalaria <[EMAIL PROTECTED]> wrote: > it is > > http://marc.theaimsgroup.com/ > > regards > keyur > > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.ma

Re: [PHP] PHP Interact with DreamWaver

2001-06-19 Thread rm
I used to use DW 3.x and it would mangle the php code. I tried a demo version of DW 4.0 and it makes allowances for php code. To my knowledge there is no way to fix DW 3.x to properly work with php code. I've since changed to Homesite, after you get the hang ot it, it's better than dreamweaver.

[PHP] OT Re: http 1.0 1.1 info

2001-06-21 Thread rm
Anyone know of a url. Need a simple introduction to the concepts of http1.0 and 1.1 protocols, how they work etc etc. Preferably something with nice pretty pictures and something that does not require more than a first or second grading reading level. Everything I find at the various search eng

Re: [PHP] OT Re: http 1.0 1.1 info

2001-06-22 Thread rm
> it's not the equivalent of 'HTTP for Dummies' :-) funny thing...after your message, I went to a search engine ran a search for http protocol dummies...found what I needed ken __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail

[PHP] Reducing Brackets is a Logical expression

2001-06-29 Thread rm
Somewhere, some time ago, i saw a rountine, C, C++, php, some language that provided a rountine to reduce brackets in a logical expression to the fewest number of brackets possible (much like mysql does), for ex: ((a and b) or (a and c)) would be reduced to: (a or c) and b not a very good examp

Re: [PHP] Why does it take so long?

2001-07-01 Thread rm
FWIW, i run php.40, apache and mysql on both my desktops and my laptop, the laptop has 32 megs and a 166 processor. The arrangement runs fairly well on the laptop. What you might want to do is to check and see what other processes are running on your machine that you may not know about or need.

RE: [PHP] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread rm
before running ./configure go to the directory and delete the old configure.cache file then run ./configure again. kb --- nelo manuel <[EMAIL PROTECTED]> wrote: > yes it is, > when compilinf php-4.0.6 > after ./configure then make it gives me some error > portion of installation: > > micro

Re: [PHP] robot.txt file

2001-07-07 Thread rm
Everything you need to know about robots.txt files but were afraid to ask http://www.robotstxt.org/wc/robots.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (ht

[PHP] High Ascii chars

2001-07-07 Thread rm
php3.x We have a large number of people submitting a large number of docs...I'm having a problem with some docs coming through with high ascii characters in the text, apparently the dbm database we're using chokes on some high ascii chars. I need to eliminate characters in the text from 122 to

Re: [PHP] High Ascii chars---thanks

2001-07-08 Thread rm
Thanks for your help people, I appreciate it rm __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Splitting a string first by quotes then spaces

2001-07-09 Thread rm
the first part of the query a quote, the routine will detect it as an odd number element. rm __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in ...

2001-07-11 Thread rm
use phpinfo to see if they even compiled php with mysql support, probably didn't --- Tom Beidler <[EMAIL PROTECTED]> wrote: > I'm working with an new ISP and I'm having trouble > connecting to MySQL > through PHP 4. > > Here's some server specifics; > PHP Version 4.0.4pl1 > Apache/1.3.14 >

RE: [PHP] building a search engine ??

2001-07-12 Thread rm
lean search, oh and the last time I checked it was free. If you dont want to use perl to run the search you should be able to access the data from php assuming the proper support is compile in rm > > At 02:26 PM 7/12/01 +0200, void wrote: > > >I am thinking of building a search

Re: [PHP] Strange Bizzare Problem

2001-07-13 Thread rm
some kind of error checking. rm --- Somazx Interesting <[EMAIL PROTECTED]> wrote: > > I'm running into this really odd, seemingly > illogical problem: > > > Background: > > This is an on-line course made up of lots of pages, > some have forms, some &

Re: [PHP] echo vs printf

2001-07-16 Thread rm
Actually, you can do the same thing with echo. echo "you have $points points"; As I understand it, echo is not a function it's a language something or other, supposedly it runs slightly faster than print given the same output. however, given it's Monday, I could be wrong

Re: [PHP] Global Database

2001-07-16 Thread rm
FWIW re: dmoz.or, provides an index of topics and catagories as well as their own current database of subjects and content for download...big downloads, I think the content material is over 500megs, but it's free. It's in some sort of text format, I can't seem to recall the ex

RE: [PHP] echo vs printf

2001-07-16 Thread rm
good description), I think the greatest was half a sec for 1 million loops. rm __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

[PHP] OT Math Question

2001-07-18 Thread rm
rying to fake it.... rm __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

RE: [PHP] OT Math Question...thanks all

2001-07-18 Thread rm
Thanks, talk about a painfully obvious answer rm __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Code Refusing to Die

2001-07-18 Thread rm
p function file_exists might be of some use. rm --- Sheridan Saint-Michel <[EMAIL PROTECTED]> wrote: > Okay... I can't figure out why this isn't working... > > When I enter in a valid URL this function works > fine... > > The problem is when I enter an invalid ur

Re: [PHP] Code Refusing to Die

2001-07-18 Thread rm
try using fsockopen from the php network functions works better than fopen...we use it to run wget on one of our machines...fopen is supposed to report false on failure, however, we don't use it for connections outside our file system and even then we always use file_exists before using fopen

Re: [PHP] Can't think of a topic(but help)

2001-07-19 Thread rm
There is something like a php compiler ( it's not really a compiler in the usual sense) that will turn php files into windows exec. filesfrankly I ran across it someplace, not sure where. Try the links at various php sites...that's how I ran across it. --- ReDucTor <[EMAIL PROTECTED]> wrote

Re: [PHP] Using mod_rewrite with PHP

2001-07-19 Thread rm
try this url, maybe it will help... http://www.zend.com/tips/tips.php?id=68&single=1 --- Gawain <[EMAIL PROTECTED]> wrote: > I've been wrestling with mod_rewrite and trying to > understand how to > use it for my particular purpose. I've got two php > URLs I'd like to > rewrite to make them se

Re: [PHP] Help! Parse error.....

2001-07-20 Thread rm
to an early include file that was missing a bracket. Chances are you're missing a bracket some place before the reported error, could be anyplace. rm --- Jack Sasportas <[EMAIL PROTECTED]> wrote: > Tried the alternative stuff with no luck... > Looking for any crazy

Re: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread rm
you can try the lazy man's wayI just replace the double quotes using ereg with " whatever the html code is for quotes. I store in my mysql that way and write it to web pages --- garman <[EMAIL PROTECTED]> wrote: > I'm creating a specialized "suggestion box" type of > web application in

[PHP] Odd include/variable problem

2001-07-20 Thread rm
ludes except fulldisplay.php unless I include the config file for the second time. By way of note, all the other varaibles defined in the config file are available in fulldisplay.php without including the config fle for a 2nd time. rm __ Do You Yaho

Re: [PHP]logic question

2001-07-22 Thread rm
try: http://php.resourceindex.com/Complete_Scripts/Link_Management/ you should be able to find some examples here. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP Ge

Re: [PHP] magazine-subscription

2001-08-05 Thread rm
This might give you a start http://sourceforge.net/projects/props/ --- Chetan Ganpati <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know of a tool to handle an online > magazine and the magazine-subscriptions? > > Thanks, > Chetan. > > __

Re: [PHP] I HAVE A PROBLEM HERE...

2001-08-06 Thread rm
Problem isn't size, you may have a syntax error...perhaps if you give more detail, submit the variable to what? What do you mean it won't let you? rm --- Joshman <[EMAIL PROTECTED]> wrote: > Supposively all php variables arent suppose to have > size limits, for > e

Re: [PHP] Search Engines

2001-08-06 Thread rm
One of best tutorials around can be found at: http://www.northernwebs.com/set/ rm __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http

[PHP] Python and PHP

2001-08-06 Thread rm
I've noticed in some articles I ran across today that that there is some opinion that PHP is too linear and that Python was being used in conjuction with PHP since Python is so strong with oop. Anyone run across any docs or tutorials on using both P's toget

Re: [PHP] I HAVE A PROBLEM HERE...

2001-08-06 Thread rm
i assume you mean your passing the variable as part of the url...PHP_SELF?a=something (is this what your doing) if so make sure you use rawurlencode/urlencode before passing the variable and rawurldecode/urldecode on the variable afterwards... --- Joshman <[EMAIL PROTECTED]> wrote: > the php f

Re: [PHP] converting numeric to a string

2001-08-07 Thread rm
check out settype() however read the doc on types you may not need settype at all rm --- Don <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking at the 'String' section of the online > documentation. I cannot > find a function that converts a numeric to a

[PHP] OT win95/apache/ query

2001-08-16 Thread rm
will not let me create a file called .htaccess, I never had this problem on the win 95 before the old HD died!! Anyone know how to fix this? No win program will let me create this file so I assume this is a win config issue??? any help appreciated. rm

[PHP] Mem and variables

2001-08-20 Thread rm
se old variables that reference, in effect the same basic data, rather than create new or additional variables rm __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Ma

Re: [PHP] Page detect

2001-08-21 Thread rm
try using $PHP_SELF, this might be what you're looking for rm --- Kevin P <[EMAIL PROTECTED]> wrote: > Hi all > > I am just five days new to PHP. When sending an > HTML form to a PHP page > for handling, can you cause the PHP to detect the > page name

Re: [PHP] how to discover cause of php crash under win98?

2001-08-21 Thread rm
I assume your running apache, if so...take a look at the apache error.log file, there may be some hint in there as to the problems...usually/ program files/apache/logs rm --- Chris Hayes <[EMAIL PROTECTED]> wrote: > hi, > i am trying to install the thousands-of-lines big > postn

Re: [PHP] convert 12:12:00 to seconds

2001-08-22 Thread rm
maybe $time=12:12:00 $x=explode(":",$time); $sec=($x[0]*3600)+($x[1]*60)=$x[2]; rm --- nafiseh saberi <[EMAIL PROTECTED]> wrote: > > hi. > how do I covert convert 12:12:00 to seconds ? > I want to get time from system and covert it to > second

Re: [PHP] Re: Mem and variables

2001-08-22 Thread rm
point taken...thanks > At any rate -- The right way to worry about > perforance is to figure out > where your code is spending 90% of its time, and to > optimize that. I'm > betting it ain't in variable lookups for most of us __ Do You Yahoo!? M

[PHP] Checksum Question

2001-08-29 Thread rm
hand. Given the task at hand and given I'm confused about why there are different length numbers, is there one particular option that allows for better change checking..or is it simply a matter of longer is better...I mean the longer the checksum number the better

Re: [PHP] insert space to a string (newbie)

2001-09-08 Thread rm
Maybe something like: $word="washington"; $length=strlen($word); $a=substr($word,0,3); $b=substr($word,3,$length-3); $string=$a." ".$b; print $string; you might want to test for the length of $word first to make sure $word has more than 3 characters --- Andras Kende <[EMAIL PROTECTED]> wrot

Re: [PHP] Email checking

2001-09-13 Thread rm
Have you tried: http://zend.com/codex.php?CID=11 --- Max Mouse <[EMAIL PROTECTED]> wrote: > I've been looking to check the validity of an email > address when it's > entered by a person on a from. So far, I have found > many different versions _

Re: [PHP] Search in Progress

2001-09-22 Thread rm
to my knowledge what you're talking about is done through html layers and javascript...I've seen it done at other siteshttp://www.anywho.com/rl.html uses this process. rm --- Alexis Antonakis <[EMAIL PROTECTED]> wrote: > Hi, > > I am developing a simple