[PHP] PHP versus .Net?

2002-07-18 Thread jsegovia

I think I've convinced my potential client that PHP will do the job at least
as well if not better than Java, but being a Microsoft shop, they want us to
consider a .Net solution.

Can anyone with familiarity with both PHP and .Net comment on relative
strengths and weaknesses?

Is .Net still too immature a platform for large interactive web sites with
heavy database IO?  How will time to implement and performance compare between
the two?

Any other considerations?

Thanks very much in advance.

Jesse

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Development Tools

2002-07-10 Thread jsegovia

For those of you using HomeSite, is it worthwhile for me to install it if I
already have DreamWeaver 4 on my PC?  Someone said HomeSite is basically
DreamWeaver without the UI interface so I'm wondering if it's possible to use
DreamWeaver the same way I would Homesite.

Jesse

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP vs. Java

2002-07-09 Thread jsegovia

I'm being asked you evaluate a fairly complex web project using the MS SQL
Server 2000 back-end.  A large application will be built, involving lots of
technical and financial information from multiple sources and types of sources
input daily, weekly, monthly, etc.  Reports will also be run daily, weekly,
monthly, etc., against this data.  All the data including input, views and
reports has to work well with a standard web browser client, although some of
the reports will be emailed to clients who use Blackberry PDAs.

I'd rather take more time with the specifics before committing to a single
technology but the client is asking which technology we'd propose before they
award the job.

At this point I'm leaning towards PHP as the solution (although to CIOs, I'm
sure 'Java' is still a sexier word than 'PHP'), but I'd like to ask for
general opinions on the value of PHP vs. Java (specifically Apache Struts-type
J2EE applications) for this kind of web-enabled application.

Thanks very much in advance.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Passing a Variable to PHP Via the URL

2002-06-11 Thread jsegovia

My understanding is that when passing a querystring to PHP via the URL with the GET 
method, PHP will automatically create a variable with the name and value from the 
querystring.  I'm trying to do this and it's not working.

Here's my code from an online tutorial (angle braces replaced with curlies):

printf({a href=\%s?id=%s\}%s %s{/a}{br}\n, $PHP_SELF, $myrow[id], 
$myrow[first], $myrow[last]);

Everything here works - I've already loaded the $myrow with the appropriate data and 
so this printf builds a URL with a valid '?id=' querystring.

But when I click on the URL, the variable is not created.  I've tried renaming the 
variable, querying $HTTP_GET_VARS to see what's coming in, and looking at all 
available online documentation, but nothing helpful.  There doesn't seem to be 
anything in php.ini I need to set to enable this functionality.

Can anyone help?  Thanks very much in advance.

Jesse

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Different Problem [Re: Passing a Variable to PHP Via the URL]

2002-06-11 Thread jsegovia

I found out that in fact PHP is creating a variable with the name and value I'm 
passing through a URL from the querystring.  But it's still not working as planned.

The url server/test.php?id=1 creates the following results in my code:

printf(Variables:  %s\nbr, $HTTP_GET_VARS[id]);

This line works - there IS a variable named 'id' in my page and it has the correct 
value, 1.

if ($id) {}

This fails.  If I test 'id' instead of '$id' then it works but my page doesn't seem to 
equate 'id=1' with the presence of $id.

$result = mysql_query(SELECT * FROM employees WHERE id=$id,$db);

This doesn't work - again it seems $id isn't being treated properly.  I get this error:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

If I hardwire my page with the line '$id=1;' before the if statement and the query 
everything works.

So why isn't the variable from my URL being treated properly?

Jesse

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Different Problem [Re: Passing a Variable to PHP Via the URL]

2002-06-11 Thread jsegovia

Sorry - I solved my own problem.  I had to set register_globals = On in php.ini.  The 
ini file says this is not the best practice for security reasons so maybe I'll turn it 
off after doing these test scripts.

Jesse

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] 405 Method Not Allowed with Post Request on PWS

2002-06-11 Thread jsegovia

I'm running PHP 4.2.1 and PWS on my Windows98 system and I think I'm configured 
correctly, but the first time I tried to submit a Post request I got a '405 Method Not 
Allowed' error (full error at the bottom of this email).

I've searched and found lots of similar posts but so far nothing that solves my 
problem. Can anyone help? 

Thanks in advance.

Jesse

HTTP Error 405
405 Method Not Allowed

The method specified in the Request Line is not allowed for the resource identified by 
the request. Please ensure that you have the proper MIME type set up for the resource 
you are requesting.

Please contact the server's administrator if this problem persists.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Different Problem [Re: Passing a Variable to PHP Via the URL]

2002-06-11 Thread jsegovia

Jason Soza [EMAIL PROTECTED] wrote:

 Rather than just setting globals on in php.ini, try this:

Thanks a lot.  Your and Philip Olson's responses have got me thinking in the direction 
of better security and code.

I am going to turn register_globals off and rewrite the code.

Now if only I can get my POST requests working with Personal Web Server.  8-(

Jesse

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php