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
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
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
;,":",$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
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
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
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
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
>
>
___
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
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,
>
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
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
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.
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
> 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
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
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.
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
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
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
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
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
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
>
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
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
&
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
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
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: [
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: [
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
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
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
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
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
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
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
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
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
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.
>
> __
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
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
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
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
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
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
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
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
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
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
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
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
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
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
_
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
54 matches
Mail list logo