, etc.
=C=
*
* Cal Evans
* Techno-Mage
* http://www.calevans.com
*
- Original Message -
From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 1:09 PM
Subject: [PHP] Dynamic List Using Php
> Hello All
>
>
ex code for a space. When the url get 'URLENCODED' any non-valid
characters get converted to hex. In some (broken?) browsers a space in the
URL may work but it's generally not a good idea.
=C=
*
* Cal Evans
* Techno-Mage
* http://www.calevans.com
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
URL??
:)
*
* Cal Evans
* Techno-Mage
* http://www.calevans.com
*
- Original Message -
From: "Adrian Greeman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 8:18 AM
Subject: [PHP] Editor
> I am just surprised that noone mention
it to fire. Kinda goofy but no
more so than the lack of overloading. (I REALLY miss overloading functions!)
=C=
*
* Cal Evans
* Techno-Mage
* http://www.calevans.com
*
- Original Message -
From: "Steve Dix" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday
$message = "Dear $cusname,".$originalMessage;
$fromaddress = "[EMAIL PROTECTED]";
mail($to, $subject, $message, $fromaddress);
}//end of for
}//end of if
*
* Cal Evans
* Techno-Mage
* http://www.calevans.com
;
$subject = "hello";
$message = "Dear $cusname,".$originalMessage;
$fromaddress = "[EMAIL PROTECTED]";
mail($to, $subject, $message, $fromaddress);
the EASIEST thing to do is create
VFP COM objects to do the dirty work and call them from your PHP pages.
There are other ways but not as reliable.
HTH,
=C=
*
* Cal Evans
* Techno-Mage
* http://www.calevans.com
*
- Original Message -
From: "Tony Alanis" <[EMAIL PROTECTED]
store $name on one line and $welcomemssg on a separate line. Then just
remember that all odd numbered liens are names and even numbered lines are
messages.
=C=
*
* Cal Evans
* Techno-Mage
* http://www.calevans.com
*
- Original Message -
From: "Jule Slootbeek" <[EMAIL P
Possible but a single table with all addresses and an addressType (SHIP_TO
or BILL_TO) linked back to the main order table will allow you to retrieve
both addresses with a single select:
select * from address where orderID=x
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
since you've not indicated that you've looked around and not found one, I
suggest starting your search at www.freshmeat.net.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: GWAD Mailinglist [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, D
yes but it's more of an HTML/JavaScript thing.
use INPUT Type='BUTTON' to put a second button on your form. Then use the
onClick method to assign an action to it. If you want it to submit your
form then call document.formName.submit();
=C=
*
* Cal Evans
* The Vir
I've created an 850 and a base class x12. It's not terribly hard. I did not
find much in the way of useful classes already built though.
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: Edward Peloke [mai
ould just
as easily use CURL to call a SOAP process somewhere if your X12 partner had
a brain. (mine does not, the company I was a consultant for in the medical
insurance industry did not either)
Anyhow, I'm happy to share what I know if you have questions.
HTH,
=C=
*
* Cal Evans
* Stay plugge
personally, I would ditch the Error class and put raise_error in Base.
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: Jordan Elver [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 3:52 PM
To: [EMAIL
page.
It's easier for me to find it that way.
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: Ezequiel Sapoznik [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 18, 2003 6:11 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Res
I keep the
windows help version open at all times) and familiarize yourself with the
language. You do not need to memorize each function' signature but it would
help if you read the description of each function. You'll be surprised what
you find in there.
=C=
*
* Cal Evans
* Stay plugge
me"
$_POST['mySelect'][2] == "Pick me"
HTH,
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: Gregory Chagnon [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 11:14 PM
To: [EMAIL PROTEC
whoops. Sorry, didn't read the question. Wrong answer. John gave the correct
answer.
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: Cal Evans [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 18, 2003 8:41
= "storeStuffHere[3]='Value3'";
Then, when the form is submitted use:
parse_str($_POST['storeStuffHere']);
This will create the array storeStuffHere with the 3 values.
HTH,
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
.php
if I have to pass a full query string then I urlencode() it first and
urldecode() it on the other side.
This survives sessions expiring.
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: -<[ Rene Brehmer ]>-
exactly how do you "load" an icon? What are you loading it into?
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: hei [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 3:18 PM
To: [EMAIL PROTECTED]
Sub
t just saves you from
yourself. (Personally, I wish it wouldn't. People have more trouble
*because* of the automatic conversions than they would if they had to do the
converting themselves.)
To keep from running into this simply do the conversions yourself before you
do comparisons.
intval("08
John.
> Actually, "08" is equal to 8 in PHP. PHP will convert the string to an
>integer and the two will compare as equal.
No they are not equal. Yes, PHP will do the conversion so that they are
equal. That does not refute the fact that logically '08' != 8.
> Someone already posted why the prob
results and explain them.
(In the above, the first should be true and the second should be false.)
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: Webapprentice [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29
it needs to
refresh itself. (I can offer some unhelpful advice like quit using RPMs and
compile from source...switch to gentoo linux instead of RedHat for a better
package manager...you know, stuff like that. But that's not helpful at the
moment!) :)
=C=
* Cal Evans
* Stay plugged into
ECTED]
Subject: Re: [PHP] Result in the same page
Cal--
I just posted this reply to your reply on php.general.
--John
From: [EMAIL PROTECTED] (John Hicks)
Newsgroups: php.general
Subject: Re: [PHP] Result in the same page
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
find / -iname php.ini
or create a page with
Untitled
Save it and then call it form your webserver. It'll tell you where the ini
is.
=C=
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com
-Original Message-
From: Kevin Paz [m
php=backend
alert boxes=front end
checkout JavaScript. You can use php to dynamically generate JavaScript.
=C=
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com
-Original Message-
From: Sunfire [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 2
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com
-Original Message-
From: Jonas Geiregat [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 3:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] general question ?
http://kemu.ath.cx/intranet/login.phps
are you preloading graphics using JavaScript?
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com
-Original Message-
From: Chris Hayes (SENSE) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP] page shown
using JavaScript you can use an and in the onClick call
a function that sets the form's target and then calls
document.formname.submit();
=C=
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com
-Original Message-
From: Greg [mailto:[EMAIL PROTECTED]
it's a bit
of a kludge. (IMHO, etc.)
=C=
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com
-Original Message-
From: Greg Luce [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Newbie Question
Can
did you bounce the service after uncommenting the line?
=C=
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com
-Original Message-
From: Anthony Ritter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 10:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP
take a look at the database abstraction layer ADODB at php.weblog.com Even
if you are like me and never use more than just MySQL, it makes like a lot
easier.
=C=
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com
-Original Message-
From: Hunter, Jess
1: yes you can.
2: You can use either print or echo. I use echo when I actually want
something output, most of my scripts don't output anything. If there is some
output of import, I use mail() to send it to myself.
3: Yes, I am.
* Cal Evans
* Stay Plugged Into Your Audience
*
box, it's ok.
PHP does not 'run as root'. The CLI will run as whomever is executing the
script.
My $.02 worth.
=C=
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com
-Original Message-
From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]
Sent
The only way to do that would be to open a connection to the SMTP server
directly and try and send the email. (Instead of using the mail function)
This way the mail server would give you an error code if it didn't work.
=C=
* Cal Evans
* Stay Plugged Into Your Audience
*
http://www.php.net/manual/en/function.ini-set.php
* Cal Evans
* http://www.christianperformer.com
* Stay plugged into your audience
* The measure of a programmer is not the number of lines of code he writes
but the number of lines he does not have to write.
*
- Original Message -
From
check www.freshmeat.net. There are several.
=C=
* Cal Evans
* http://www.christianperformer.com
* Stay plugged into your audience
* The measure of a programmer is not the number of lines of code he writes
but the number of lines he does not have to write.
*
- Original Message -
From
Mike,
I'm glad you vented. Now let me. I say none of this in anger and quite a lot
of it in amusement. Please don't take this the wrong way. (By saying that
I'm insuring that you WILL take it the wrong way!) :)
Why is it helpful to give a person the answer to a question that has been
answered be
have 3 select boxes bdMonth, bdDay, bdYear.
Then when processing the $_POST, simply contact them in the format you want.
$bdString = $_POST['bsMonth'].'/'.$_POST['bsDay'].'/'.$_POST['bsYear'];
HTH,
=C=
* Cal Evans
* http://www.christianper
in page to try
var_dump($_POST['email_recipients']);
=C=
* Cal Evans
* http://www.christianperformer.com
* Stay plugged into your audience
* The measure of a programmer is not the number of lines of code he writes
but the number of lines he does not have to write.
*
- Origin
Tell apache that .html files are to be served through php
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 11:00 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Banner Ad
t;isA('SYSADMIN)
// normal code goes here.
In the above example it is assumed that you have created a Person object to
deal with everything.
HTH,
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Pag [mailto:[EMAIL PROTECTED]]
Sent: Monday,
not yet (Zend engine 2.0 I believe has this) Currently the convention is to
name private functions _* (variables the same) This denotes to other coders
that you intended this to be a private function.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message
to the data in the table.
HTH,
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Beeman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 8:30 AM
To: php
Subject: [PHP] MySQL Current Row??
What function/array index should I use to determ
uldn't get in the habit of writing my arrays like this. It's confusing
to say the least.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Meltem Demirkus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 6:35 AM
To: [EMAI
d for you but in my 2 years of using PHP, you are the first
person I've seen ask for it. Therefore I don't think it qualifies as a
serious flaw.
IMHO, etc.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Rick Emery [mailto:[EMAIL P
store the user's preference in a database. Once they have logged in, use
their login or userID to retrieve it form the database and redirect to the
appropriate page.
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message-
From: Re
have you searched freshmeat.net? google.com? both of those can give you the
examples you are looking for.
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message-
From: Jay Fitzgerald [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 2
n
omit the http:// and the host name if you like.
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 12:40 PM
To: php-gen
Subject: [PHP] HTTP1.1
Kinda off topi
Have you tried:
$query = "UPDATE poll_options SET votes = votes + 1";
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message-
From: JJ Harrison [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 28, 2002 8:05 AM
To: [EMAIL PROTECTED]
Sub
Hi Mike,
Check out ADODB. It's a database abstraction layer for PHP that has
functions to do this. (php.weblogs.com) Otherwise it's kinda easy to do
this, here's some psuedo-code that shoudl get you going.
fields['departmentID']; ?>">fields['depa
.
Thanks for your cooperation,
=C=
p.s. I accomplish applicaiton level variables by storing them in a table
called application in my application's database. This way I can change them
on the fly and all my pages can see them. I have objects that read them in
on the pages that need them.
*
don't reinvent the wheel. (Unless you jsut REALLY want to) Try
www.nagios.org It has support for SMS.
(Be prepared to spend about 3-4 hours setting it up)
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message-
From: Duncan [mailto:[
Jeff,
Also, try php.weblogs.com ADODB if you absolutly MUST have all of your data
in an array.
I'll agree with Richard that it's not a great idea unless there is a
specific need. While loops for displaying the contents of many records are
much better. (IMHO, etc...)
=C=
*
*
I agree with Ed. Use sessions.
It's more secure that how you are doing it because theusername is not stored
in the page and retransmitted each page.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
size_of()
(insert obligatory RTFM comment here)
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 9:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] function for size of array
Is
only if user stupidity can be considered a virus.
=C=
- Original Message -
From: "Lazor, Ed" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 11:37 AM
Subject: RE: [PHP] don't want to receive but email please
> So is this a new virus?
>
> -Origi
As a general rule of thumb you should ALWAYS validate the information posted
as a form before sending it on to whatever backend you are using.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: William S. [mailto:[EMAIL PROTECTED]]
Sent: Saturday
because $row['plevel'] is NEVER == '0' It is probably == 0 though. (note
the missing quotes. ) :)
HTH,
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: JJ Harrison [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002
Have you done a var_dump on $row to make sure that plevel exists?
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: JJ Harrison [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] How come
++ is an incrementor.
$i=1;
$i++;
echo $i;
=C=
p.s. -- is a decrementor.
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Jay [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 13, 2002 8:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Newbie question
off the top of my head, I'd suggest :
if(intval($row['plevel']) == 0){
Grasping at straws here but you've moved beyond a simple question into a
debigging process. (Which doesn't work too well for email.)
Sorry I couldn't be of more help.
=C=
*
* Cal
task (database interaction) or an abstraction of a
physical object (Person, Invoice, Order) then I use object. The code in the
page mainly creates objects and manipulates them.
HTH,
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Martin Clifford
No.
No. PHP runs on the server. It knows nothing of the client.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Thomas "omega" Henning [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 5:33 AM
To: [EMAIL PROTECTED]
Sub
nly have 1 database but your data is kept separate. (Until MySQL
comes out with views, then it gets a lot easier.)
HTH,
=C=
* Cal Evans
* http://www.eicc.com
* We take care of your IT,
* So you can take care of your business.
*
* I think inside the sphere.
Steve Buehler wrote:
I am running PHP
What extensions and where can you get them?
Cal
http://www.calevans.com
p.s. love homesite use it for everything from HTML to Java to php.
-Original Message-
From: Wacks, David [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 10:59 AM
To: 'Egan'; [EMAIL PROTECTE
there's an implementation of PHP for IIS.
-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 4:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP simulator
Is there a PHP simulator for NT? One that can be used for testing and
development?
Todd
Put a web cam on it and we've got a winner! :)
Cal
-Original Message-
From: Monte Ohrt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 4:21 PM
To: [EMAIL PROTECTED]; Brandon Orther
Subject: Re: [PHP] How can I get a random number
You can blow some ping pong balls a
>
2: in the last line, you try to echo $name. $name is defined within the
function testPassVar() and goes out of scope when that function is done At
this point in your script, $name does not exist.
Hope this helps,
Cal
http://www.calevans.com
-Original Message-
From: Abe [mailto:[EMAI
$url, $keyValuePairs)
A simpler method is to pass in a single key and value and let the function
add them and return you the newly munged URL.
function testPassVar($url, $key, $value) {
//won't work if it's the first pair. need to test for that!
return $url."&".$key.&quo
I think you are looking for printf. Check the manual. it won't hold it, but
you can make it PRINT it. (Which, I'm asumming, is what you really want)
Cal
http://www.calevans.com
-Original Message-
From: JB [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 9:09 AM
Don't reinvent the wheel. It will take you longer to write it than it will
to learn to admin majordomo or any of 10 other programs like it.
IMHO,
Cal
-Original Message-
From: Jason Beebe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 7:49 PM
To: [EMAIL PROTECTED]; [
HAR! :)
cal
-Original Message-
From: Tim Zickus [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 6:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] mixing HTML and PHP code
> that's why I didn't implement one of those keyword things in binarycloud.
> ergh.
P
How does it deal with sessions? Or do use store sessions in the database?
Cal
-Original Message-
From: Joe Stump [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 11:22 AM
To: Rasmus Lerdorf
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] load balancing with php/apache?
> h
When you say "handled by us" do you mean you:
1) Write the sess_* files to a shared drive
2) Store them in the database
3) ignore them totally, who needs users anyhow?
4) some other option?
Cal
http://www.calevans.com
-Original Message-
From: jeremy brand [mailto:[EMAIL
ouple of ways that you could use JavaScript to force a refresh of a window
that it has a handle to, upon an event. (Like pressing the submit button in
a browser.)
Cal
http://www.calevans.com
-Original Message-
From: Hendry Sumilo [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 1:
I agree. You've piqued my curiosity. Can you go into details?
Cal
http://.calevans.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 10:19 PM
To: jeremy brand
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] load balancing wit
don' get it. If you want the contract then I
would go JSP. If you don't want' it/need it, walk away.
Cal
http://.calevans.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 9:35 PM
To: PHP list
Subject: [PHP] PHP
I'd do it with JavaScript. Dynamically composed JavaScript if need be. But
it seems to me that it would be easier to do this on the client side.
Cal
http://www.calevans.com
-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 2:33 PM
To
a poorly tuned Oracle database.
My $0.02,
Cal
http://www.calevans.com
-Original Message-
From: Alex Black [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 7:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP vs JSP
http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.ht
$a= intvalue(10/3)
echo($a)
Cal
http://www.calevans.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 12:53 PM
To: [EMAIL PROTECTED]
Subject: [PHP] simple division.. but how?
if you want to do
10 / 3
i want it to show 3 and
I see:
...
checking whether to include Pdflib 3.x support... /usr/local/lib
no
...
I can't seem to figure out how to make it say YES!
Any help would be greatly appreciated.
Cal
Cal
http://www.calevans.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
You sir (or madam), are a god among men!
Thanks for the assist.
Cal
http://www.calevans.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jani Taskinen
Sent: Monday, January 15, 2001 3:59 PM
To: Cal Evans
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP
try a blank page with
as the only line.
Does that work?
Cal
http://www.calevans.com
-Original Message-
From: Phil Scopes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP locking up
I have installed PHP 4.0 with Apache
try:
http://www.zend.com/manual/function.eval.php
Cal
http://www.calevans.com
-Original Message-
From: Paul Cohen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 6:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] String to Variable converstion
Hello all,
I am trying to build
I would try:
if (isset($fieldname) && empty($fieldname)){
// do something here with the variable
} else {
$fieldname="na";
} // if (isset($fieldname) && empty($fieldname))
Cal
http://www.calevans.com
-Original Message-
From: Jacky@lilst [mailto:[EMAIL
Yes, it can be done.
No it's not easy.
No, it's not advisable.
Mixing content like that is a recipe for disaster.
If you feel you absolutely must do it without creating dirs, consider
putting the content of the pages in a database.
Cal
http://www.calevans.com
-Origin
It's means that what's on the right is part of the object on the left.
i.e.
$myObject->myMethod();
fires the method myMethod() of the object $myObject.
echo $myObject->myAttribute;
displays the value of the attribute myAttribute of the object $myObject.
Clear as mu
$generic is an object. Somewhere you've got a line in your code that
instantiates it. (i.e. $generic = new ...)
Cal
http://www.calevans.com
-Original Message-
From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 1:18 PM
To: Cal Evans; PHP Mailing
mysql. Depending on
your database size, this may or may not work.
Cal
http://www.calevans.com
-Original Message-
From: Fang Li [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 3:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] how to rename a database
Does anyone know how to rename a dat
Guessing here:
Define can't take a variable. It has to have a constant.
define("RUSER", 1);
would compile but not give you the results you want. I'm not sure you can do
what you want.
have you tried:
define("RUSER", '$REMOTE_USER');
Cal
http://
Why is this good design?
If I create a user object, populate it, kill the connection to the database
(or return it to the pool) and cache the object then I can retrieve it any
time I want without having to hit the database.
Not arguing, just curious as to your perspective.
Cal
http
Select * from table limit 5;
http://www.calevans.com
-Original Message-
From: Kath [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 10, 2001 6:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP/MySQL Question
Having some problems with syntax.
If I wanted to SELECT only 5 instances of som
run it in a CRON job.
Cal
http://www.calevans.com
-Original Message-
From: McShen [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 10:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] reset in mysql?
hi
I have a database which tracks how many hits a website has sent me. I wanna
urldecode it first. Then explode it.
Cal
http://www.calevans.com
-Original Message-
From: Shawn Pritchard [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 16, 2001 10:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How do I get Variables out of a string?
Hello!
I have been bashing my head
Have you looked at www.webmin.com?
Cal
http://www.calevans.com
-Original Message-
From: John Huggins [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 16, 2001 10:16 AM
To: Jamie Jackson; [EMAIL PROTECTED]
Subject: RE: [PHP] Can you recommend an ISP with the following?
You mention a
Having moved a moderately sized website last year from ASP to PHP I can say
from experience that if you can re-write it, the move will go smoother and
you will have fewer lines of code. I ended up with about 1/2 as many lines
of code to maintain after the port was done.
=C=
*
* Cal Evans
It's not PHP's place to do this.
That being said, check out ADODB. It's a data abstraction layer for several
different databases that will give you this functionality.
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message---
1 - 100 of 164 matches
Mail list logo