ssb Fri Feb 16 09:57:06 2001 EDT
Modified files:
/php4/pear/DB mysql.php
Log:
* load mysql extension if needed
Index: php4/pear/DB/mysql.php
diff -u php4/pear/DB/mysql.php:1.46 php4/pear/DB/mysql.php:1.47
--- php4/pear/DB/mysql.php:1.46 Fri Feb 16
On Friday 16 February 2001 18:27, Jeff Oien wrote:
> I'm totally stuck on this code. I get the error
> "Couldn't execute query." so I know where it's
> failing but can't figure out what's wrong. I have
> a database with 'title' as one of the fields. Based
> on code in PHP Fast and Easy.
> $sql =
On Friday 16 February 2001 18:48, Ted Goranson wrote:
> > > Thanks so much for the URLs but they are hardly complete and not
> > > at all succinct. I supposed the POSIX REs because that's what I
> > > thought the PHP docs said. PCREs are good too? Sure seems like the
> > > PHP docs would incl
angela,
this would work if people did not switch back and forth between langauges.
We have many bilingual users who want print copies, for example, in french
and english. Each time they click a little tab at the top, it will switch
languages and sites too, BUT will remain with the corresponding t
sas Fri Feb 16 10:55:58 2001 EDT
Modified files:
/php4/ext/standard php_smart_str.h php_smart_str_public.h
Log:
Add all necessary includes for these header files.
Index: php4/ext/standard/php_smart_str.h
diff -u php4/ext/standard/php_smart_str.h:1.5 php
Hi,
I have a form that contains a scrolling text box. When I display the
contents of the text box, say in variable $form[mytextbox], it displays
all on one line (or wraps at end of line). As the ending character of
each line will vary, does anyone know of away to split the lines up so
that I ca
There's a new mod_gzip out that does work with PHP output.
Have a look at www.dvanhorn.org
All the pages are PHP generated, with nothing special in the PHP code.
--
Dave's Engineering Page: http://www.dvanhorn.org
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
--
PHP General Mai
On Fri, 16 Feb 2001, Joe Sheble aka Wizaerd wrote:
> Is there anything that evaluates PHP code and checks for optimization? Not
> like the Zend Optimizer, but one that checks for things such as variables
> that were defined but never used, repeated variables, unnecessary
> statements or constr
Matt Davis pressed the little lettered thingies in this order...
> I have a php script which runs a query and then outputs the results in to
> html. The html should repeat itself depending on the number of results. i.e
> to produce search results.
>
> I know that my current query should return 5
Hi All,
It is Friday afternoon here and I don't want to have to reinvent the
wheel. What would be the easiest way to delete an item from a shopping
cart? I know what is required for Mysql but I am stumped on how to
implement it.
TIA
Gary
--
PHP General Mailing List (http://www.php.net/)
T
At 3:30 AM +0800 2/17/01, Tiger Quimpo wrote:
>
>I could go with the Zend tools, I suppose. but there isn't enough
>money here for that yet (third-world... who can afford software that
>costs the same as the salaries of 8 to 10 programmers?). someday...
>
Even with the new Developer's Suite and
On Friday, February 16, 2001, at 10:31 AM, Hoover, Josh wrote:
> Try this bit of code and see if it works. (I don't know if there's a less
> taxing (on the server) way to get a count of files in a directory or not.)
this code snippet won't work as a standalone. you are referencing an object
Addressed to: Javier Muniz <[EMAIL PROTECTED]>
Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]]
[EMAIL PROTECTED]
** Reply to note from Javier Muniz <[EMAIL PROTECTED]> Fri, 16 Feb 2001
10:14:29 -0800
>
> You should use fieldnames in your selects... I'd imagine count(*
sas Fri Feb 16 11:01:23 2001 EDT
Added files:
/php4/ext/ircg ircg_scanner.c ircg_scanner.re
Modified files:
/php4/ext/ircg Makefile.in ircg.c
Log:
The new scanner adds HTML anchors automatically to a certain subset
of RFC 2
On Friday, February 16, 2001, at 09:27 AM, Jeff Oien wrote:
> $result = mysql_query($sql,$connection)
> or die("Couldn't execute query."); //<$queryhttp://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list admini
zeevFri Feb 16 11:42:54 2001 EDT
Modified files:
/CVSROOTavail gen_acl_file.m4
Log:
Add notes karma to Brad Atkins
PR:
Submitted by:
Reviewed by:
Obtained from:
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.85 CVSROOT/avail:1.86
--- CVSROOT/av
Try include_once() for your includes instead of simply include().
--toby
Matt Williams wrote:
>
> >
> > This has been an ongoing problem, when I include a file which contains a
> > call to a function I get undefined function errors but when I try
> > to include
> > the file containing the funct
Addressed to: Maxim Maletsky <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
Christian Dechery [mailto:[EMAIL PROTECTED]]
** Reply to note from Maxim Maletsky <[EMAIL PROTECTED]> Fri, 16 Feb 2001
12:18:27 +0900
>
> I never used 50 of them, but I think there's such a thing as 'r
Can I get some recommendations on some good PHP
books. Something broad but with good novice
concepts
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
BBedit gets that share because I know people who use a Mac for development,
just for BBedit.
Regx, ftp, custom tags, volume wide search and replace, glossaries,
scriptable and attachable, syntax checking, syntax coloring (html, css, js,
php, c, c++, java) entity conversion (both ways), spell che
Chris Lee wrote:
> Zend Technologies has an encoder, might be what your looking for, might not.
> why do you want to compile your code, you havent mentioned ?
>
> --
>
> Chris Lee
> Mediawaveonline.com
>
> em. [EMAIL PROTECTED]
>
> ph. 250.377.1095
> ph. 250.376.2690
> fx. 250.554.1120
>
> "dmalc
Is 'what' = persistent? If it is, why is it 'what' then? :)
At 20:55 16/2/2001, Sascha Schumann wrote:
>sas Fri Feb 16 10:55:58 2001 EDT
>
> Modified files:
> /php4/ext/standard php_smart_str.h php_smart_str_public.h
> Log:
> Add all necessary includes for these header fi
Brian V Bonini wrote:
>
> Can I get some recommendations on some good PHP
> books. Something broad but with good novice
> concepts
There are many at http://php.net/books.php. Maybe Leon Atkinsons Core
PHP (second edition) or Sterling Hughes Developer's Cookbook.
-Egon
--
SIX Offene Sy
Jim Jagielski wrote:
> At 9:10 AM -0600 2/16/01, dmalcolm wrote:
> >Is there such a thing as a PHP compiler? Linux based? Windoze based?
> >
> >Thanks in advance.
> >
>
> Depends on what you mean by a compiler. If you mean a "package"
> that turns your PHP script into a 100% stand-alone binary
Hello All,
Sometime later today, I will share with all of you how to perform inserts
from PHP using the DB2 Universal Connection into an AS400 Table. Yes, we
figured it out!
Look for my post by end of day (Friday).
Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
Also... Bbedit was bundled with dreamweaver for the longest time. Maybe
still...
> BBedit gets that share because I know people who use a Mac for development,
> just for BBedit.
>
> Regx, ftp, custom tags, volume wide search and replace, glossaries,
> scriptable and attachable, syntax checking,
Hello!
Has anyone succeded installing php4 on a cobalt raq3 server?
I have the following problem:
If I compile php with mysql included in php distribution, it can't
connect to database.
For example phpMyAdmin gives me this error(it seems that mysql_error()
return nothing):
Warning: MySQL Connect
php-general Digest 16 Feb 2001 21:24:00 - Issue 516
Topics (messages 40120 through 40228):
Re: Count columns in array
40120 by: Tim Ward
Re: True || False ?
40121 by: Tim Ward
40122 by: Maxim Maletsky
40125 by: Robin Vickery
Re: PHP Editors
40123 by
are you using a spec cart system? or did you write your own? its hard to
give an accurate answer without knowing. Ive wrote my own simple cart, using
sessions, to delete an item I just unset the variable.
unset($stockno['1234']);
where $stockno is an session array variable. its very spec on what
When they click on the tab to change languages, you could have that go back to a page
on
the main site, reset the cookie, and then send it on to the site you want it to go to.
-Angela
Jeremy Gillies wrote:
>
> angela,
>
> this would work if people did not switch back and forth between langauge
Hello,
I am making a php file that untars files. What I can't seem to figure out
is how to untar a file into another folder. I have tried:
tar -xpf file.tar /new/folder/*
& and &
tar -xpf file.tar /new/folder/
does anyone know how to do this?
Thank you,
Addressed to: "Richard Lynch" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Richard Lynch" <[EMAIL PROTECTED]> Thu, 15 Feb 2001 19:25:14
-0600
>
> I think you *can* use the "for win32 only" stuff on Linux if you want to
> send your mail to a different server...
I do
I found the same as you, I wrote some classes of my own. have you done much
with postgres ? Ive used mySQL alot here and am not happy with the
stability, postgres (beta) seems to be faster but havent used it in products
so cant comment on stability. Im curious.
--
Chris Lee
Mediawaveonline.com
Odd - we serve millions of pages a day off of MySQL - solid as a rock. Hhm
wonder if that Quad SPARC has anything to do with it...
--Joe
On Fri, Feb 16, 2001 at 01:50:59PM -0800, Chris Lee wrote:
> I found the same as you, I wrote some classes of my own. have you done much
> with postgres ?
Does it work when you print from Netscape? I don't have a printer hooked
up,
but that was a problem with some other gzip stuff I used in the past.
David VanHorn wrote:
> There's a new mod_gzip out that does work with PHP output.
> Have a look at www.dvanhorn.org
> All the pages are PHP genera
have you tried:
mv mytar.tar /my/path/to/dir/; tar -xpf /my/path/to/dir/mytar.tar
this should work, but there may be a more direct unix-y way to do it.
DanO
-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 1:49 PM
To:
Addressed to: Gerald Gutierrez <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from Gerald Gutierrez <[EMAIL PROTECTED]> Thu, 15 Feb 2001 01:04:30 -0800
> 2) In JSPs, it is possible to do server-side page redirection, i.e.
> "forward" a request from page A to page B, as if
see:
http://www.php.net/manual/en/function.header.php
it works just like JSP.
DanO
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:01 PM
To: Gerald Gutierrez; [EMAIL PROTECTED]
Subject: Re: [PHP] Specific PHP/JSP questions
Add
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:07 PM
To: DanO
Subject: RE: [PHP] using tar to untar a file into a certain dir... In
php of course
That just untars it into the current dir the php script is in.
-Original Message-
From: DanO [mailto:[EMAI
At 04:53 PM 2/16/01 -0500, Michael Kimsal wrote:
>Does it work when you print from Netscape? I don't have a printer hooked
Hmm. Couldn't tell you, I don't have Netscape.
The only bug reports so far, all involve a relatively minor config tweak.
I've had no problem reports on my page.
--
Dave's
Profession PHP Programming
ISBN: 1-861002-96-3
__John Monfort_
_+---+_
P E P I E D E S I G N S
www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-
On Fri, 16 Feb 2001, Bri
Addressed to: "Richard Lynch" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Richard Lynch" <[EMAIL PROTECTED]> Thu, 15 Feb 2001 19:54:55
-0600
> Does die() give you a line number? If not, just put it in there.
No, die() does not add to your message.
Here is how
Hello, I'm trying to make a multiple select...
I've this code...
1
2
3
then I select more than one option but when I see the value of $test, I only see
the last value that I checked.
Somebody can help me?
Thanks
Pablo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
good point. i should think before i post.
here is another go:
i can't test this as i am on a windows box at the moment, but i think you
can get the gist of it.
change the working directory of php and then extract from another file.
DanO
-Original Message-
From: Brandon Orther [m
Change the name of your select to "test[]" instead of "test", then
access it like an array:
foreach($test as $current) {
echo "$current was selected\n";
}
--toby
Pablo Martin De Natale wrote:
>
> Hello, I'm trying to make a multiple select...
>
> I've this code...
>
>
> 1
> 2
> 3
>
>
>
Don't calls to system() live within their own shell and environment? If so
you may need to:
system("cd /destination/dir && tar -xpf /some/path/to/tarfile.tar");
this will also insure that if the cd fails for some reason, tar will not
execute.
-jm
-Original Message-
From: DanO [mailto:
I've seen mentions of CORBA before and skimmed a book at the local b&n, but
what exactly is it? Is it programming standards? A seperate language all
together? (something like COM?)
Thanks,
-Jonathan Sharp
Technology Director
Imprev, Inc.
http://imprev.com
[EMAIL PROTECTED], [EMAIL PROTECTED]
EP
I really wouldn't ask this if I wasn't completely exausted, but the last
thing I feel like doing just now is reading up on this when someone can
probably answer it in a matter of seconds.
OK, I've an error handling page. Basically, I want to split (that might
even be one of the functions I'l
I agree...
The red book "Professional PHP Programming"
(WROX "Programmer to Programmer" series)
is an exellent PHP book
but, if you're looking for novice level stuff, WROX
also published a companion called "Beginning PHP4".
i was fluent in perl when i picked up the professional
one, and had no
Chris Lee wrote:
> are you using a spec cart system? or did you write your own? its hard to
> give an accurate answer without knowing. Ive wrote my own simple cart, using
> sessions, to delete an item I just unset the variable.
>
> unset($stockno['1234']);
>
> where $stockno is an session array
If each of the scrolling lines is separated by something regular, like a
carriage return, or a line break, tab (etc), you could use explode(); and
have the values returned as an array.
James.
> I have a form that contains a scrolling text box. When I display the
> contents of the text box, say
An exceptionally easy way to do this would be to pass both $PHP_SELF and
$REQUEST_URI.
Alternatively, you can use explode():
">
Username:
etc
-Original Message-
From: James, Yz [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Fin
In article <[EMAIL PROTECTED]>,
"Janet Valade" <[EMAIL PROTECTED]> wrote:
if you include a hyphen in a character class, it must be the
last entry in the range, otherwise it is interepreted as the
range separator.
[0-9+.\()-]
is what you want (probably have to escape some of the
chars above).
Dear PHP experts,
I am trying to install PHP as a servlet. I have Apache+Tomcat (Apache
v1.3.17, PHP 4.0.4pl1, Tomcat 3.2.1) running with mod_jk fine as far as I
can tell: I have no problem executing ordinary servlets and jsp. I have
merged the web.xml file into examples/web.xml and made a php su
zeevFri Feb 16 13:36:29 2001 EDT
Added files:
/php4/ext/notes notes.dsp notes.dsw php_notes.c php_notes.h
Log:
import notes modules from Brad Atkins
Index: php4/ext/notes/notes.dsp
+++ php4/ext/notes/notes.dsp
# Microsoft Developer Studio Projec
On Fri, 16 Feb 2001, Jason Brooke wrote:
> > However, there's no necessity to have the cgi version if you already have
> > the modular version. All that is needed is to call the appropriate script
> No there's not - I think that goes without saying though.
> install' - then you can use this awes
At 02:49 PM 2/16/2001 -0800, Jonathan Sharp wrote:
>I've seen mentions of CORBA before and skimmed a book at the local b&n, but
>what exactly is it? Is it programming standards? A seperate language all
>together? (something like COM?)
>
>Thanks,
>-Jonathan Sharp
>
>Technology Director
>Imprev, In
Hola:
http://www.google.com/intl/en_extra/options/winnetscape.html
Its kinda helpful: I modified the above to utilize the
www.php.net/some_function
Heres the trivial js code:
javascript:q=document.getSelection();for(i=0;ihttp://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
i'd use split, to split the value up into an array:
if this is your url
$url = "/pages/error.php?/pages/login.php?user=scott";
and use this code:
$thing = split('\?', $url);
print $thing[0] ." \n ";
print $thing[1] ." \n ";
print $thing[2] ." \n ";
output will be:
/pages/error.php
davidg Fri Feb 16 13:49:01 2001 EDT
Removed files:
/php4/ext/midgard midgard-logo.h midgard-team.h
Modified files:
/php4/ext/midgard midgard.c
Log:
deleting logo & picture to slim down the Midgard extension
Index: php4/ext/midgard
how is this type of comment on a mailing list productive?
DanO
-Original Message-
From: Gerald Gutierrez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 3:26 PM
To: Jonathan Sharp; [EMAIL PROTECTED]
Subject: Re: [PHP] CORBA?
At 02:49 PM 2/16/2001 -0800, Jonathan Sharp wrot
davidg Fri Feb 16 13:50:09 2001 EDT
Removed files:
/php4/ext/midgard/logo midgard-logo.gif
Log:
deleting logo to slim down the Midgard extension
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
sas Fri Feb 16 14:53:18 2001 EDT
Modified files:
/php4/ext/ircg ircg.c ircg_scanner.c ircg_scanner.re
Log:
Move the separate entity encoding into the scanner. Otherwise,
we cannot properly differentiate between (apparent) HTML which was
generated by
Seems to be good enough for NASA. :)
-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 1:51 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] shopping cart classes
I found the same as you, I wrote some classes of my own. have you done much
with post
Well, since Gerald's answer was so informative...check out www.corba.com
they list the main concepts and give standards.
Cheers,
-Jonathan
> -Original Message-
> From: DanO [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 3:47 PM
> To: Gerald Gutierrez; Jonathan Sharp; [EMAIL
here is a very simple cart in sessions. you have stockno and quan, it can be
easily modified to handle various other variables.
cart_product_id[$product_id] = $product_id;
$this->cart_product_quan[$product_id] = $product_quan;
}
function add_single($var_name)
{
if ( !isset($GLOBALS[
this doesn't relate directly to PHP,
but it will when I am done.
How can I create a file input that
reads from a directory on the server
instead of the users machine
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://
Hello,
I can't seem to get cd to work while using system I even use the whole
root path.
Anyone got any ideas?
Thank you,
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--
Thanks Chris,
It is a little late in the design to use your class, but it has given
me an idea on how to delete from my code.
Thanks
Gary
Chris Lee wrote:
> here is a very simple cart in sessions. you have stockno and quan, it can be
> easily modified to handle various other variables.
>
>
to put it simply, you can't...
but you could put an input type of text with a link or a button next to it
manually, and then on the onClick of either this button or link open a
secondary window running a PHP script that reads a particular directory
structure with full navigation support. Then wh
I have a feeling that after receiving answer to this question I will be able
to do everything I want...:)
SHOP:
Page has three frames: left, right_top and right_down.
Left frame:
";
echo " ";
echo " ";
echo " ";
echo " ";
echo " ";
echo " ";
?>
Right_top frame:
(right_top.php)
if ($actio
Try just specifying the path
system("tar -xvf /home/httpd/html/file.tar
/home/httpd/html/filedirectory/.");
Let me know if this helps.
Brian Drexler
- Original Message -
From: Brandon Orther <[EMAIL PROTECTED]>
To: PHP User Group <[EMAIL PROTECTED]>
Sent: Friday, February 16, 2001
so then maybe, if I understand it correctly
(which may or may not be true) I could read
the contents or a directory and populate a
dropdown list...?
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
that should be contents of,
not contents or...
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 200
that would be one option... however, if you're going to let them navigate
through different directories, it would be a bit tougher in a dropdown...
but if all you need is to display a list of files to them, then that would
work great
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3
On Fri, 16 Feb 2001 17:31:46 -0600, Christopher Allen
([EMAIL PROTECTED]) wrote:
>Hola:
>http://www.google.com/intl/en_extra/options/winnetscape.html
>
>Its kinda helpful: I modified the above to utilize the
>www.php.net/some_function
>
>Heres the trivial js code:
>javascript:q=document.getSelecti
sas Fri Feb 16 14:59:58 2001 EDT
Modified files:
/php4/ext/ircg ircg_scanner.re ircg_scanner.c
Log:
Reverse the priority of the entity matches vs. anything. If it sees
a single entity, it should handle it immediately.
Index: php4/ext/ircg/ircg_sc
Is the PHP split command the same as that in Perl?
ex.
($var_1, $var_2) = split(/:/,$string, 2);
will something like that work?
On Fri, 16 Feb 2001, ..s.c.o.t.t.. [gts] wrote:
> i'd use split, to split the value up into an array:
>
> if this is your url
> $url = "/pages/e
sas Fri Feb 16 15:10:13 2001 EDT
Modified files:
/php4 NEWS
Log:
Add some old and some recent news
Index: php4/NEWS
diff -u php4/NEWS:1.592 php4/NEWS:1.593
--- php4/NEWS:1.592 Thu Feb 15 18:09:23 2001
+++ php4/NEWS Fri Feb 16 15:10:12 2001
@@
I have an existing database from a flat file that I
imported into a MySQL table. Some of the title
fields are duplicates - songs with the same name
from different song books. So if I want to delete
a record by title, I'll end up deleting all songs with
that title. Is there a way I can add a uniqu
Dave Goodrich wrote:
> The only reason I have a Mac on my desk is for Bbedit. Hoping they
> port to OSX and allow it to run on my FBSD box.
Isnt BBedit originally from BeOS? This way, you could at least run it
on your x86-Box.
regards
Wagner
--
Three may keep a secret, if two of them are dead
The most useful "second" book is :
PHP Developers Cookbook
It really is nice. I say "second" because it's geared towards those that
understand a bit already but still, it'll even help the complete newbie
(easy to read). Excellent tips, short-cuts, examples, etc. Includes uses
of various
I have been writing this project in PHP4 but had to save it for PHP3 an
apache server.
http://www.sed.is/sereign_145.php3
When I saved it on an apache server (I have W2K - where it's 100% ok!) as
php3 I get these errors:
Warning: Wrong parameter count for round() in /sereign_145.php3 on
Hello,
Hey I can't remeber how to do it but I'm sure one of you will. How do I
strip the \n from a variable?
Thank you,
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--
You want to totally remove \n?
$something = ereg_replace("\n"," ",$something);
That should do it. If you mean making \n into BR:
$something = ereg_replace("\n","",$something);
- Kath
- Original Message -
From: "Brandon Orther" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECT
Hi Kath,
@ 9:41:34 PM on 2/16/2001, [EMAIL PROTECTED] wrote:
> You want to totally remove \n?
> $something = ereg_replace("\n"," ",$something);
trim() will suffice.
http://www.php.net/manual/en/function.trim.php
-Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-
Trim() will in fact only strip whitespace from the beginning or end of
the string; if he has \n's anywhere in the middle of the string, trim
will do perform the desired operation.
Ereg_replace() is unnecessary for a simple search/replace operation;
str_replace() will suffice and is faster to some
> Trim() will in fact only strip whitespace from the beginning or end of
> the string; if he has \n's anywhere in the middle of the string, trim
> will do perform the desired operation.
CORRECTION : "trim will not perform the desired operation"
--
PHP General Mailing List (http://www.php.net/
Hello,
I am looking for a way to get a dir listing of the current dir my phpscript
is in and putting it into an array. Does anyone have a quick way to do
this?
Thank you,
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-
just add a field unique_id int auto_increment in the table...u dont have to
do anything more...it will start at 1 and every time a new record is added
to the table this value will be incremented
- Original Message -
From: "Jeff Oien" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Se
Can PHP execute a refresh to a new page?
If so, how?
Thanks.
Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094
'87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!!
http://www.s-series.org/htm/windstorm/project-windstorm.htm
'85 3.4L Carbed Chevy S-10 Blazer (FireStorm) ...
HTML can create a refresh to a new page.
Put this in the header
http://newurl.com">
3 is the number of seconds that it is delayed
Brian Drexler
Precision Web Design
- Original Message -
From: Kenneth R Zink II <[EMAIL PROTECTED]>
To: PHP <[EMAIL PROTECTED]>
Sent: Friday,
You can set your error reporting in your php.ini file or set error_reporting()
in your scripts to be very sensitive where it will tell you such things as
variables that weren't defined properly. Look into
http://www.php.net/manual/en/features.error-handling.php
Michael
Joe Sheble aka Wizaerd w
HTTP can also tell a broswer to 'refresh'
http://$SERVER_NAME$PHP_SELF");
?>
--
Chris Lee
Mediawaveonline.com
em. [EMAIL PROTECTED]
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
""Kenneth R Zink II"" <[EMAIL PROTECTED]> wrote in message
014501c09890$cf4322d0$[EMAIL PROTECTED]">news:0
phanto Fri Feb 16 18:15:12 2001 EDT
Modified files:
/php4/ext/com typedef_VARIANT.c conversion.h conversion.c COM.cpp
Log:
multiple codepage support
export global constants
Index: php4/ext/com/typedef_VARIANT.c
diff -u php4/ext/com/typedef_VARIANT.c:1
i've been using the header("...") approach myself, but
was curious to see if there's a builtin PHP function that
will accomplish the same thing
im a kind-of new PHP programmer, and havent really
been exposed to too much of the language yet,
but i found it quite odd that such a function seems
Using PHP3/MySQL, is there a way I can select only the newest record from a
MySQL table. I have a datetime field and an Auto_incremented field. Anyone
got any ideas???
Brian Drexler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
tar on all my systems (got this from 'man tar')
tar xf file.tar -C /dest/dir
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Could you tell me how to add a field to an existing
database? I'm having trouble finding out how to do it.
Thanks.
Jeff Oien
> just add a field unique_id int auto_increment in the table...u dont have to
> do anything more...it will start at 1 and every time a new record is added
> to the table t
phanto Fri Feb 16 18:16:28 2001 EDT
Modified files:
/php4/ext/dotnetdotnet.cpp
Log:
multiple codepage support
export global constants
Index: php4/ext/dotnet/dotnet.cpp
diff -u php4/ext/dotnet/dotnet.cpp:1.5 php4/ext/dotnet/dotnet.cpp:1.6
--- php4/ext/dot
101 - 200 of 212 matches
Mail list logo