Re: [PHP] Is it possible to have the parameters fo a function be exited HTML?

2001-06-22 Thread Phillip Bow
Its probably just as fast for you to test it out using what you have written here as it is for someone to give you the answer. And in answer to your question no this script will not run properly. -- phill ""Jason Lustig"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

Re: [PHP] passing arrays

2001-06-22 Thread Phillip Bow
You could use sessions, but it may be overkill for what you are trying to do. -- phill ""Jason Jacobs"" <[EMAIL PROTECTED]> wrote in message 001201c0fb50$6f895300$7feb1e18@superman">news:001201c0fb50$6f895300$7feb1e18@superman... Hi all. I'm trying to pass an array to another page, and I'm not h

Re: [PHP] Which is more expensive: concatenation or embedding?

2001-06-22 Thread Phillip Bow
What about: echo "This is a string and my variablke $x is ".$x."\n"; I think your first would be faster, but on such a miniscule level as to be irrelevant. -- phill > There are two ways to get your variables into a string -- concatenation with > single-quoted strings, or embedding in evaluated d

Re: [PHP] Why is this not working

2001-05-17 Thread Phillip Bow
What permissions do you need to execute htpasswd? -- phill ""YoBro"" <[EMAIL PROTECTED]> wrote in message 9e1h4j$8k5$[EMAIL PROTECTED]">news:9e1h4j$8k5$[EMAIL PROTECTED]... > That didn't seem to work. > I am beginning to pull my hair out now. > > ""Tolga "thorr" Orhon"" <[EMAIL PROTECTED]> wrote

Re: [PHP] PHP Pros/Cons, Case Examples, PHP vs Servlets

2001-05-17 Thread Phillip Bow
Well from my experience development time with PHP is generally much faster than Java development time. Definately something most people would want to factor in. YMMV --phill ""Scott A Winkle"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Im currentl

[PHP] PrimalScript Users

2001-05-16 Thread Phillip Bow
For anyone using PrimalScript as their IDE I have put together an updated php.sense file with mostly all(theoretically) the PHP functions available as of PHP 4.04pl1(the sense files are what allow the autocompletion of functions, and shows the param list). I have seen a lot of complaints about pr

Re: [PHP] phpjobs.com

2001-05-14 Thread Phillip Bow
http://jobsearch.monster.com/jobsearch.asp?cy=US&brd=1&lid=&fn=6&fn=660&fn=5 54&q=php Good luck in your search. -- phill "Jack Dempsey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > anyone know what the deal with it is? i'm trying to find some work for > the

Re: [PHP] simple database extraction problem :(

2001-05-03 Thread Phillip Bow
Clue = "Nested Loops" -- phill "Sandeep Hundal" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi all! > > just a quick thing. i've got loads of info in mysql, which i extract > and then use a "while ($r = mysql_fetch_array($result)) {" to output > the result.

Re: [PHP] Returning Lowest Number Not In Array

2001-05-03 Thread Phillip Bow
rsort($array); $nextNum = $array[0] + 1; You may have to include the numerical flag, but I don't think so. -- phill "Mike Potter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all: > I'm hoping someone can help me out with this array problem. I'm > try

Re: [PHP] Random number generation...

2001-05-02 Thread Phillip Bow
Its supposedly faster and generates a "more" random number than rand() so I don't see why not to use it. -- phill "Jon Haworth" <[EMAIL PROTECTED]> wrote in message 67DF9B67CEFAD4119E4200D0B720FA3F13B733@BOOTROS">news:67DF9B67CEFAD4119E4200D0B720FA3F13B733@BOOTROS... > The manual also says: > m

Re: [PHP] can someone debug this vote.php script for me?

2001-04-30 Thread Phillip Bow
Its just a warning error. You can get rid of it by defining the variable, or just change your error settings to not report warnings. -- phill ""Joe Truong"" <[EMAIL PROTECTED]> wrote in message 9ce21h$s1n$[EMAIL PROTECTED]">news:9ce21h$s1n$[EMAIL PROTECTED]... > can some one debug this script fo

Re: [PHP] Newbie question about Classes

2001-04-24 Thread Phillip Bow
and VB is a POOP language :) (pseudo-Object oriented programming) -- phill > PHP isn't Java; it's not an OO language. > PHP isn't...um...FORTAN; it's not a purely PP language. > > > The world if formed from the void, > like utensils from a block of wood. > The Master knows the utensils, > yet

Re: [PHP] Newbie question about Classes

2001-04-24 Thread Phillip Bow
http://phpbuilder.com/columns/rod19990601.php3 This is almost a religious debate in itself, but some brief info anyway. ""SED"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have now been 3-4 months writing PHP-codes and read the PHP manual > throu

Re: [PHP] Countdown in PHP

2001-04-24 Thread Phillip Bow
Its easy enough to display a time and have it count down each time someone views the page(get a timestamp and hardcode it in, then grab a current timestamp when someone hits the page and compare the two), but if you want a constant countdown updating constantly then it has to be client side. The

Re: [PHP] newbie question: duplicate emails

2001-04-23 Thread Phillip Bow
Whenever you are positive its nto your code then check it again. That being said are there any SMTP logs you can check? Have you monitored the exact data being sent to the SMTP server(maybe set up a dummy socket that repeats back the data sent to it then have your program try to connect to that)

Re: [PHP] Looping through variables

2001-04-23 Thread Phillip Bow
All of the POST variables will be stored in the HTTP_POST_VARS array which you can loop through once rather than manually doing each seperate variable. -- phill ""Ashley M. Kirchner"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have a bunch of varia

Re: [PHP] killing a session

2001-04-19 Thread Phillip Bow
Check out http://php.net/manual/en/function.session-destroy.php -- phill ""Ellis Heckman"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This does seem to work well. Thanks a lot. > > unlink(session_save_path().'/sess_'.$PHPSESSID); > setcookie('PHPSESSID',''

Re: [PHP] submit form values to new site after validation

2001-04-19 Thread Phillip Bow
Using the POST method will prevent the credit card data from being included in the url. I would still be careful about sending data like this via a POST to a form handler on an entirely different site. It would be better if there was some sort of secure socket to transfer the data through. -- ph

Re: [PHP] SOMEONE SHOOT ME!!!

2001-04-17 Thread Phillip Bow
Godd has spoken :) Sorry couldn't resist. -- phill ""Godd"" <[EMAIL PROTECTED]> wrote in message 9biala$c59$[EMAIL PROTECTED]">news:9biala$c59$[EMAIL PROTECTED]... > Be very careful what you ask for > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] True Appreciation

2001-04-17 Thread Phillip Bow
Uh oh. Thats gonna go to my head. -- phill ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9bf94i$90r$[EMAIL PROTECTED]">news:9bf94i$90r$[EMAIL PROTECTED]... > Many THANKS! > > I find this newsgroup to be one of the *best* I've come across! Responses > are quick, usually detailed and al

Re: [PHP] Want a Good Book for Ref on PHP

2001-04-16 Thread Phillip Bow
I started with the Professional PHP Programming book. It covers all of the info a beginner would need in good detail. I haven't taken a look at the Beginner's book, but I would suggest getting the Professional one as it provides everything you need to get started, and then jumps right into the n

Re: [PHP] Newbie MySQL Table Work

2001-04-12 Thread Phillip Bow
Check out mysql_query. It will allow you to execute any query that you would normally do via the command line interface to MySQL. -- phill ""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message 000301c0c373$a3522960$b01012d1@null">news:000301c0c373$a3522960$b01012d1@null... Alright I finally g

Re: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread Phillip Bow
Hi, I don't mean to bash, but these sort of answers don't give me a lot of faith in the service you are starting. At the very least I expect my service provider to provide competent answers to questions, and to know the basics of security. > >no no - its an OC3+ web server.must be an ov

Re: [PHP] Commercial sites that use PHP

2001-04-10 Thread Phillip Bow
Well since nobody else has chimed in(barring the fact it may be in one of the already recommended lists) sourceforge is made with php, and is a pretty noteworthy site. -- phill "Phil Labonte" <[EMAIL PROTECTED]> wrote in message 1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE">news:1B5C7FA9D60DD511

Re: [PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread Phillip Bow
Geez Plutarck where are all the GTK functions? :) Just kidding this is great and I am gonna snarf a copy to use locally. -- phill ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9ajqk2$ll4$[EMAIL PROTECTED]">news:9ajqk2$ll4$[EMAIL PROTECTED]... > First of all I use Edit Plus, which uses a list

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Phillip Bow
Aww shoot. How am I supposed to win now? :) -- phill "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Done. Anything from mail.thecasino.com and thecasino.com is now blocked. > > -Rasmus -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] HTTP Upload Problem

2001-04-02 Thread Phillip Bow
I suspect there is a limit on the MAX_FILE_SIZE. You might want to check the RFC, but I suspect you should set the value to be 2gb or less(I think that is the limit). -- phill "Yev" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > OK, here's my problem > I wrot

Re: [PHP] PHP Editor for Linux

2001-03-30 Thread Phillip Bow
Read back a couple of days and you'll probably see multiple answers to this question. -- phill ""Martin Cabrera Diaubalick"" <[EMAIL PROTECTED]> wrote in message 005b01c0b92c$8bd3ff80$[EMAIL PROTECTED]">news:005b01c0b92c$8bd3ff80$[EMAIL PROTECTED]... > VIM? No thanks :-) > > :wq > > > - Origi

Re: [PHP] Daemon with a PHP file

2001-03-21 Thread Phillip Bow
Unless you have the php executable associated with the .php3 extension(not the web server association mind you) then you would need to pass the file as a command line argument to the executable. 0 8 * * * "/usr/local/bin/php /home/users/sebas/citas.php3" Depending on the location of the php exec

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Phillip Bow
When I first started playing with PHP I had been using SSI's. I tried to find a way that I could get a file that contained SSI's and php to be parsed, but I haven't seen it done. In Apache it seems like it would be as easy as adding a handler that parses shtml files as php files, but that causes

Re: [PHP] A NETWORK MARKETER?

2001-03-21 Thread Phillip Bow
Geez, where can I buy stock? This is gonna be HUGE! ;-) -- phill <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > ATTENTION: ANY SERIOUS NETWORK MARKETER > TAKE A LOOK AT THE FOLLOWING OPPORTUNITY I CAME ACROSS!! > IF YOU PLUG INTO THEIR PROVEN SYSTEM, TH

Re: [PHP] Comparing two dates.. Which is the older one?

2001-03-20 Thread Phillip Bow
If I were doing this for simplicity's sake I would alter this to be: $timestamp = mktime(); $date_output = date("Y-m-d H:i A", $timestamp); Then store the $timestamp in the (pseudo)database. Any operations I need to compare times will be done on the $timestamp data rather than the $date

Re: [PHP] Comparing two dates.. Which is the older one?

2001-03-20 Thread Phillip Bow
Depending on what sort of timestamp you are getting you should be able to just do: if ($loggtime > $oldLoggtime) then... With just a straight unix timestamp(via mktime();) this would work fine. -- phill ""Richard"" <[EMAIL PROTECTED]> wrote in message 998o75$aol$[EMAIL PROTECTED]">news:998o75$ao

Re: [PHP] files with html extension

2001-03-20 Thread Phillip Bow
Personally I recommend people don't do this unless their web server is going to serve only(or mostly) php pages, and very few straight html pages. It will save you time mucking around on the server, but the increase in overhead isn't really worth it. IMHO of course. -- phill -- PHP General Ma

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-20 Thread Phillip Bow
Always assume people will attempt the most inane things... -- phill ""Stephan Ahonen"" <[EMAIL PROTECTED]> wrote in message 9969kn$eho$[EMAIL PROTECTED]">news:9969kn$eho$[EMAIL PROTECTED]... > > Oh in addition this won't work accurately if $time is greater than about 2 > > billion(2147483648 I be

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Phillip Bow
I thought about that when I first started, but then went looking to see if using "\" would return the value without the decimal part. Not good when you start confusing VB and PHP and it makes you mess up your code. -- phill > This way you don't risk rounding up on your first cast to int and bein

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Phillip Bow
Oh in addition this won't work accurately if $time is greater than about 2 billion(2147483648 I believe). -- phill ""Phillip Bow"" <[EMAIL PROTECTED]> wrote in message 9961qg$ma4$[EMAIL PROTECTED]">news:9961qg$ma4$[EMAIL PROTECTED]... > function ph

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Phillip Bow
function philtime($time){ $hours = (int) ($time / 3600); $min = (int) (($time % 3600) / 60 ); return ("$hours:$min"); } Should be 3600 since: 60sec = 1min 60min = 1hour 60 * 60 = 3600sec/hour -- phill > How about something like this: > > $secs = number of seconds; > $hours = intval

Re: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread Phillip Bow
Sounds like your mappings in you Web Server aren't setup correctly. Which webserver are you using? -- phill ""Virtual Evil"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > thanks a lot for the feedback, but I must confess it didn't work. > I tried to create a

Re: [PHP] mysql.sock

2001-02-26 Thread Phillip Bow
The problem I had with this in the past is that I didn't have permission to write to the dir mysql.sock was supposed to be in so when Mysql tried to start it would fail. -- phill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [PHP] Ok, this might make more sense

2001-02-22 Thread Phillip Bow
You could have the page output options to a formatted plain text file. Sample Format { bold = 0; italic = 1; } and then when the page loads it reads in the options from that file and alters the page accordingly. For extra credit use a database rather than a plain text file, but if you haven't do

Re: [PHP] Regex problems.....

2001-02-22 Thread Phillip Bow
You should either do this with ereg, or strtolower and not a combination of the two, and in all actuality strtolower is specifically desinged to do this very easily so I would go with it. "; $contents = strtolower($contents); ?> Should do what you want. -- phill "Ian LeBlanc" <[EMAIL PROTECTED

Re: [PHP] books

2001-02-22 Thread Phillip Bow
Personally I started with the Wrox Professional PHP Programming guide and still use it today(its sittin in front of me). I see they have one out now for php4 which is around $60 which I am probably going to order just to keep up to date. They cover the basics and then go into some more specific

Re: [PHP] Win32 extensions --- complete confusion

2001-02-15 Thread Phillip Bow
Prior to PHP 4.04 there were two dll's(php_mssql65.dll, and php_mssql7.dll I believe), but as of 4.04 there is only one which is php_mssql.dll. If you are using 4.04 then I assume thats your problem. Otherwise I would suspect you are trying to set the path where the extension declarations are ra

Re: [PHP] mcrypt!

2001-02-14 Thread Phillip Bow
The latest version should be at: ftp://argeas.cs-net.gr/pub/unix/mcrypt/win32/ -- phill > Kevin Connolly wrote: > > Does anyone know where I might get the mcrypt dll for windows nt or > > win 98?? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F