RE: [PHP] basic php question...

2008-11-04 Thread Wolf
Boyd wrote: -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 2:30 PM To: php-general@lists.php.net Subject: Re: [PHP] basic php question... Richard Heyes [EMAIL PROTECTED] wrote: users who browse without Javascript

RE: [PHP] basic php question...

2008-11-04 Thread Ashley Sheridan
On Tue, 2008-11-04 at 16:15 -0500, Wolf wrote: Boyd wrote: -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 2:30 PM To: php-general@lists.php.net Subject: Re: [PHP] basic php question... Richard Heyes [EMAIL

Re: [PHP] basic php question...

2008-11-04 Thread Lupus Michaelis
Richard Heyes a écrit : users who browse without Javascript enabled, Heretics! No, paranoid :D -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] basic php question...

2008-11-04 Thread Yeti
Do disability browsers support JavaScript? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] basic php question...

2008-11-04 Thread Larry Garfield
On Wednesday 05 November 2008 1:20:34 am Yeti wrote: Do disability browsers support JavaScript? This is not a PHP question, basic or otherwise. However, the answer to your question is some do, some don't to varying degrees, just to keep life interesting. Search engines, however, do not. So

[PHP] question about google maps

2008-11-01 Thread Sudhakar
hi how do i go about displaying an address which appears on google maps for a business on a web page. what are the steps. if some one knows about this please let me know. thanks

Re: [PHP] question about google maps

2008-11-01 Thread Ashley Sheridan
On Sun, 2008-11-02 at 13:43 +1300, Sudhakar wrote: hi how do i go about displaying an address which appears on google maps for a business on a web page. what are the steps. if some one knows about this please let me know. thanks Have you actually tried looking at Google's API for

RE: [PHP] question about using sql server with php

2008-10-27 Thread bruce
. have fun! -Original Message- From: Sudhakar [mailto:[EMAIL PROTECTED] Sent: Sunday, October 26, 2008 8:49 PM To: php-general@lists.php.net Subject: [PHP] question about using sql server with php i have a question about how to use sql database with php instead of using my sql database when

Re: [PHP] question about using sql server with php

2008-10-27 Thread Robbert van Andel
, October 26, 2008 8:49 PM To: php-general@lists.php.net Subject: [PHP] question about using sql server with php i have a question about how to use sql database with php instead of using my sql database when i use my sql database the php code to connect to the my sql database is = $conn

Re: [PHP] question about using sql server with php

2008-10-27 Thread Ashley Sheridan
! -Original Message- From: Sudhakar [mailto:[EMAIL PROTECTED] Sent: Sunday, October 26, 2008 8:49 PM To: php-general@lists.php.net Subject: [PHP] question about using sql server with php i have a question about how to use sql database with php instead of using my sql database

Re: [PHP] question about using sql server with php

2008-10-27 Thread Chris
Robbert van Andel wrote: You also need to make sure that your server has the mysql drivers installed. A linux server does not come with this support natively. He's not using mysql, he's using sql server. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List

Re: [PHP] question about using sql server with php

2008-10-27 Thread Robbert van Andel
on the net, as well as in the php.net website. have fun! -Original Message- From: Sudhakar [mailto:[EMAIL PROTECTED] Sent: Sunday, October 26, 2008 8:49 PM To: php-general@lists.php.net Subject: [PHP] question about using sql server with php i have

Re: [PHP] question about using sql server with php

2008-10-27 Thread Robbert van Andel
Sorry, that was a typo. I meant MSSQL. On Mon, Oct 27, 2008 at 2:12 PM, Chris [EMAIL PROTECTED] wrote: Robbert van Andel wrote: You also need to make sure that your server has the mysql drivers installed. A linux server does not come with this support natively. He's not using mysql,

[PHP] question about using sql server with php

2008-10-26 Thread Sudhakar
i have a question about how to use sql database with php instead of using my sql database when i use my sql database the php code to connect to the my sql database is = $conn = mysql_connect($hostname, $user, $password); if(!$conn) { echo Unable to connect to Database; } else {

Re: [PHP] question about using sql server with php

2008-10-26 Thread Chris
if i have to connect to a sql databse instead of my sql database as some companies use sql database, how can i change the php code to connect, run a query and close connection to the sql database. apart from changing the code to connect to sql database is there something else i need to do.

[PHP] Question about __destruct()

2008-10-21 Thread Dan Joseph
Hi, I want to make sure I completely understand __destruct() and when its hit... Understand that it will run if all references to a particular object are removed, but is that also true when a page ends its execution? Example, I call a database class. It constructs, connects, then my page pulls

Re: [PHP] Question about date()

2008-10-07 Thread Richard Heyes
I am trying real hard to write clean code... Print it out and stick it in the washing machine... :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Question about date()

2008-10-07 Thread Stut
On 7 Oct 2008, at 12:48, Jason Pruim wrote: On Oct 7, 2008, at 7:41 AM, Stut wrote: On 7 Oct 2008, at 12:38, Jason Pruim wrote: I am trying to track down an error and can't seem to figure it out... Here is the error out of my log: [Tue Oct 7 07:31:43 2008] [error] PHP Warning: date()

Re: [PHP] Question about date()

2008-10-07 Thread Stut
On 7 Oct 2008, at 12:38, Jason Pruim wrote: I am trying to track down an error and can't seem to figure it out... Here is the error out of my log: [Tue Oct 7 07:31:43 2008] [error] PHP Warning: date() expects parameter 2 to be long, string given in /Volumes/RAIDer/webserver/

Re: [PHP] Question about date()

2008-10-07 Thread tedd
At 1:08 PM +0100 10/7/08, Stut wrote: On 7 Oct 2008, at 12:48, Jason Pruim wrote: Thanks for the quick response... You were right... I did a var_dump both on $row['timein'] and $row['timeout'] and the error was because of the way that I update the records. for time in, I insert a new record,

Re: [PHP] Question about date()

2008-10-07 Thread Jason Pruim
On Oct 7, 2008, at 7:41 AM, Stut wrote: On 7 Oct 2008, at 12:38, Jason Pruim wrote: I am trying to track down an error and can't seem to figure it out... Here is the error out of my log: [Tue Oct 7 07:31:43 2008] [error] PHP Warning: date() expects parameter 2 to be long, string given

[PHP] Question about date()

2008-10-07 Thread Jason Pruim
Good morning all! I am trying to track down an error and can't seem to figure it out... Here is the error out of my log: [Tue Oct 7 07:31:43 2008] [error] PHP Warning: date() expects parameter 2 to be long, string given in /Volumes/RAIDer/webserver/ Documents/dev/stimecard/timecard.php

Re: [PHP] Question about date()

2008-10-07 Thread Jason Pruim
On Oct 7, 2008, at 7:49 AM, Richard Heyes wrote: I am trying real hard to write clean code... Print it out and stick it in the washing machine... :-) The way I used to write code I'd have to soak it in bleach for a week before having a chance of it coming out clean! :P -- Jason Pruim

Re: [PHP] Question about date()

2008-10-07 Thread Ashley Sheridan
On Tue, 2008-10-07 at 07:54 -0400, Jason Pruim wrote: On Oct 7, 2008, at 7:49 AM, Richard Heyes wrote: I am trying real hard to write clean code... Print it out and stick it in the washing machine... :-) The way I used to write code I'd have to soak it in bleach for a week before

Re: [PHP] Question about date()

2008-10-07 Thread Richard Heyes
Luckily for me it all still worked afterwards! The pen drive or the code? :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about date()

2008-10-07 Thread Ashley Sheridan
On Tue, 2008-10-07 at 19:47 +0100, Richard Heyes wrote: Luckily for me it all still worked afterwards! The pen drive or the code? :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph Both! Ash www.ashleysheridan.co.uk -- PHP

Re: [PHP] question about EOF

2008-09-30 Thread Jochem Maas
LKSunny schreef: Hello, i want on inner EOF do something, calculate and call function ? can not ? if yes, how to ? no you can't, store the results of calculation and function calls in variables and use them in the HEREDOC statement. a HEREDOC declaration is just a string declaration like

Re: [PHP] question about EOF

2008-09-30 Thread tedd
At 12:48 PM +0800 9/30/08, LKSunny wrote: Hello, i want on inner EOF do something, calculate and call function ? can not ? if yes, how to ? ? echo EOF some text can i calculate on inner EOF ? 10*100 display 1000 ? can i add function on inner EOF ? date('Y') display 2008 ? any more text.

[PHP] question about EOF

2008-09-29 Thread LKSunny
Hello, i want on inner EOF do something, calculate and call function ? can not ? if yes, how to ? ? echo EOF some text can i calculate on inner EOF ? 10*100 display 1000 ? can i add function on inner EOF ? date('Y') display 2008 ? any more text. EOF; //i want output is /* some text can

[PHP] Question regarding OO

2008-07-11 Thread Yeti
?php /* I have a question here regarding object orientation in PHP and any other language. Let's start with some hypothetical code: */ // --- 1st CLASS class ParkingLot { var size; // size in sq feet var max_number_of_cars; // how many cars there is space for function __construct($size,

Re: [PHP] Question regarding OO

2008-07-11 Thread Robert Cummings
On Fri, 2008-07-11 at 18:03 +0200, Yeti wrote: ?php /* I have a question here regarding object orientation in PHP and any other language. Let's start with some hypothetical code: */ // --- 1st CLASS class ParkingLot { var size; // size in sq feet var max_number_of_cars;

Re: [PHP] Question regarding OO

2008-07-11 Thread Ted Wood
Object-oriented programming, with it's class and object approach, is meant to model real life more closely than functional programming. In, a parking space is physically inside a parking lot, but a parking space is not a subclass of a parking lot. It's not a variation or mini parking

Re: [PHP] Question regarding OO

2008-07-11 Thread Ted Wood
Corrected code example: (too early in the morning to think) ?php class ParkingLot { var $size; var $num_spaces; var $spaces = array(); } class ParkingSpace { var $ps_ID; var $occupied_by; var $st_time; } ? In the above class definition, simply populate the $spaces array

Re: [PHP] Question regarding OO

2008-07-11 Thread Eric Butera
On Fri, Jul 11, 2008 at 12:03 PM, Yeti [EMAIL PROTECTED] wrote: ?php /* I have a question here regarding object orientation in PHP and any other language. Let's start with some hypothetical code: */ // --- 1st CLASS class ParkingLot { var size; // size in sq feet var

Fwd: [PHP] Question regarding OO

2008-07-11 Thread Eric Butera
-- Forwarded message -- From: Yeti [EMAIL PROTECTED] Date: Fri, Jul 11, 2008 at 2:08 PM Subject: Re: [PHP] Question regarding OO To: Eric Butera [EMAIL PROTECTED] I understand my error in thinking now. Apple can't extend Tree. Oak, Evergreen or Willow extend Tree. I thank you

RE: [PHP] Question regarding OO

2008-07-11 Thread Jay Blanchard
[snip] I understand my error in thinking now. Apple can't extend Tree. Oak, Evergreen or Willow extend Tree. I thank you all for helping me to understand. [/snip] By jove, I think he's got it! Parking space could be a member variable of parking lot, that would make sense. -- PHP General

RE: [PHP] Question regarding OO

2008-07-11 Thread Boyd, Todd M.
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2008 1:51 PM To: Eric Butera; php php Subject: RE: [PHP] Question regarding OO [snip] I understand my error in thinking now. Apple can't extend Tree. Oak, Evergreen or Willow extend Tree

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-08 Thread VamVan
Hey, Dude you could use it this way input type='checkbox' name='something' value='1' input type='checkbox' name='something' value='2' input type='checkbox' name='something' value='3' Once u submit it, do a small server side validation if(isset($_POST['something'] || $_POST['something']) != ){

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-08 Thread VamVan
sorry it needs to be a array for checkbox for the example below. So you could use is_empty() instead. something like that. input type='checkbox' name='something[]' value='1' input type='checkbox' name='something[]' value='2' input type='checkbox' name='something[]' value='3' On Tue, Jul 8,

[PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Jason Pruim
Hi everyone! So it's been a nice long weekend, I come in to work and try and mess with a project that I'm working on to get some new features added. All was going well until I realized that now my application is breaking... Here's the details... PHP 5.2 MySQL 5.2 I store the info in the

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Per Jessen
Jason Pruim wrote: The problem I'm running into though, is when a value has not changed it doesn't get $_POSTed back Are you certain about that? I'm pretty certain _all_ values are posted back, regardless of whether they've changed or not. Otherwise, how would you ever get a hidden value

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Wolf
Jason Pruim [EMAIL PROTECTED] wrote: Hi everyone! So it's been a nice long weekend, I come in to work and try and mess with a project that I'm working on to get some new features added. All was going well until I realized that now my application is breaking... Here's the

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Dan Shirah
The problem I'm running into though, is when a value has not changed it doesn't get $_POSTed back and my update script erases the info in the database... I'm trying to avoid using $_GET since it can be quite a few variables. Is there anyway I can do it without comparing the original field

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Jason Pruim
On Jul 7, 2008, at 3:36 PM, Wolf wrote: Jason Pruim [EMAIL PROTECTED] wrote: Hi everyone! So it's been a nice long weekend, I come in to work and try and mess with a project that I'm working on to get some new features added. All was going well until I realized that now my application

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Shawn McKenzie
Jason Pruim wrote: MAIN PAGE: ?PHP echo $row['Tab']; //what do you get? if($row['Tab'] == done){ $Tchecked1 = CHECKED; $Tchecked2 = NULL; }else{ $Tchecked1 = NULL; $Tchecked2 = CHECKED; } echo fieldsetTabBR input type=radio name=rdoTab value=done $Tchecked1Done BR input

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread tedd
At 3:25 PM -0400 7/7/08, Jason Pruim wrote: Hi everyone! So it's been a nice long weekend, I come in to work and try and mess with a project that I'm working on to get some new features added. All was going well until I realized that now my application is breaking... Here's the details...

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread mike
please oh please also run that through filter_input() before throwing a $_POST directly into the db query ;p On 7/7/08, Shawn McKenzie [EMAIL PROTECTED] wrote: Jason Pruim wrote: MAIN PAGE: ?PHP echo $row['Tab']; //what do you get? if($row['Tab'] == done){ $Tchecked1 =

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread mike
doh - and mysql_escape_string or equivalent. On 7/7/08, mike [EMAIL PROTECTED] wrote: please oh please also run that through filter_input() before throwing a $_POST directly into the db query ;p On 7/7/08, Shawn McKenzie [EMAIL PROTECTED] wrote: Jason Pruim wrote: MAIN PAGE:

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Wolf
Oh, and make sure you bottom post too so you actually follow everything! ;) mike [EMAIL PROTECTED] wrote: doh - and mysql_escape_string or equivalent. On 7/7/08, mike [EMAIL PROTECTED] wrote: please oh please also run that through filter_input() before throwing a $_POST

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Chris
Here is a VERY simplified test :) MAIN PAGE: ?PHP if($row['Tab'] == done){ $Tchecked1 = CHECKED; $Tchecked2 = NULL; }else{ $Tchecked1 = NULL; $Tchecked2 = CHECKED; } echo fieldsetTabBR input type=radio name=rdoTab value=done $Tchecked1Done BR input type=radio

[PHP] question about the week's data read and show

2008-06-16 Thread EVEL_LIU
Dears, Here is my question: I am write a project manage system. Now I need to echo one week’s data and send to html show. Any one got a good idea or codes? My code has some issues about the loop function. Could you help me check or give me some suggestion? The show item like this:

RES: [PHP] question, about mysql query

2008-06-03 Thread Thiago Pojda
:[EMAIL PROTECTED] Enviada em: segunda-feira, 2 de junho de 2008 22:20 Para: php-general@lists.php.net Assunto: [PHP] question, about mysql query two table, tablea and tableb tablea uid, col1, col2, col3 1,xx, xx, xx 2,xx, xx, xx 3,xx, xx, xx tableb id, uid, col1, firstdata 1, 1, xx, 1 2

Re: [PHP] question, about mysql query

2008-06-03 Thread Daniel Brown
This isn't a PHP question at all. It's a MySQL question. However, answers are below, with forwards to the appropriate lists for archiving purposes. On Mon, Jun 2, 2008 at 9:19 PM, LKSunny [EMAIL PROTECTED] wrote: two table, tablea and tableb tablea uid, col1, col2, col3 1,xx, xx, xx

Re: [PHP] question, about mysql query

2008-06-03 Thread Wolf
LKSunny [EMAIL PROTECTED] wrote: two table, tablea and tableb tablea uid, col1, col2, col3 1,xx, xx, xx 2,xx, xx, xx 3,xx, xx, xx tableb id, uid, col1, firstdata 1, 1, xx, 1 2, 2, xx, 0 3, 2, xx, 0 4, 1, xx, 0 i want query tablea, and join tableb, uid is

[PHP] question about session variables

2008-06-02 Thread Sudhakar
i have a registration page called register.php if the data entered is validated correctly i call a file called thankyou.php or else validate.php presently a user after seeing the url website.com/thankyou.php if they enter the url directly in the browser as website.com/thankyou.php they can

Re: [PHP] question about session variables

2008-06-02 Thread Ted Wood
How are you calling thankyou.php? 1. are you -redirecting- the user to that file? --or-- 2. are you -including- that file into register.php upon a successful submission? The method you're using determines how you best secure thankyou.php from direct access. If you're redirecting, then

[PHP] question, about mysql query

2008-06-02 Thread LKSunny
two table, tablea and tableb tablea uid, col1, col2, col3 1,xx, xx, xx 2,xx, xx, xx 3,xx, xx, xx tableb id, uid, col1, firstdata 1, 1, xx, 1 2, 2, xx, 0 3, 2, xx, 0 4, 1, xx, 0 i want query tablea, and join tableb, uid is associate, ok LEFT JOIN `tableb` b ON a.uid = b.uid, and than

Re: [PHP] question about validation and sql injection

2008-05-16 Thread Iv Ray
Hej Sudhakar, what a long e-mail ;) ! I would suggest you use e-mail address as user name. There are many good reasons why to do so, I will give you some, if you wish. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] question about validation and sql injection

2008-05-16 Thread Boyd, Todd M.
-Original Message- From: Sudhakar [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2008 5:26 PM To: php-general@lists.php.net Subject: [PHP] question about validation and sql injection A) validating username in php as part of a registration form a user fills there desired username

[PHP] question about validation and sql injection

2008-05-15 Thread Sudhakar
A) validating username in php as part of a registration form a user fills there desired username and this is stored in a mysql. there are certain conditions for the username. a) the username should only begin either letters or numbers, and Underscore character example = user123, 123user,

Re: [PHP] question about validation and sql injection

2008-05-15 Thread Dmitri
your validation looks good enough to me. If you only allow alphanumerical chars, then your should not be worried about sql injection also use addslashes($username) before you insert into database and you should be fine. Usually addslashes is enough to prevent this, but the validation that you

Re: [PHP] question about validation and sql injection

2008-05-15 Thread Chris
Dmitri wrote: your validation looks good enough to me. If you only allow alphanumerical chars, then your should not be worried about sql injection also use addslashes($username) before you insert into database and you should be fine. Usually addslashes is enough to prevent this, but the

[PHP] Question about setting up FTP Upload and using the FTP suite...

2008-05-14 Thread Mike McGonagle
Hello all, I am just trying to see if I can connect up with my internal FTP server from our website. The server is accessible from the outside world, as we can log in using a client, etc. I am not really sure how to troubleshoot this, but below is the script that I have. I found it on the net (and

Re: [PHP] Question on PHP 6 and static calls to instance methods.

2008-05-04 Thread Nathan Nobbe
On 5/3/08, Adam Richardson [EMAIL PROTECTED] wrote: I have a quick question on what's coming in PHP 6. I've incorporated use of the ability to call instance methods through static calls, allowing for me to mimic multiple inheritance without having to make edits to classes that are already

[PHP] Question on PHP 6 and static calls to instance methods.

2008-05-03 Thread Adam Richardson
I have a quick question on what's coming in PHP 6. I've incorporated use of the ability to call instance methods through static calls, allowing for me to mimic multiple inheritance without having to make edits to classes that are already working because of the behavior of '$this' when

[PHP] Question on PHP 6 and static calls to instance methods.

2008-05-03 Thread Adam Richardson
I've incorporated use of the ability to call instance methods through static calls, allowing for me to mimic multiple inheritance without having to make edits to classes that are already working because of the behavior of '$this' when instance methods are called statically. As stated on in

Re: [PHP] Question on PHP 6 and static calls to instance methods.

2008-05-03 Thread Robert Cummings
You would have better luck posing this question to the internals list: [EMAIL PROTECTED] Cheers, Rob. On Sat, 2008-05-03 at 17:32 -0400, Adam Richardson wrote: I've incorporated use of the ability to call instance methods through static calls, allowing for me to mimic multiple

[PHP] Question regarding fopen

2008-04-29 Thread Joep Roebroek
Hi, I'm having a strange problem with fopen For clearence, here is the phpinfo page: http://www.grondengoed.nl/phpinfo.php I will shortly explain the problem I'm having: $imagenamesmall = $foldersystem . '/' . $id . $imgstr . '-s' . $i . '.jpg'; echo $imagenamesmall; // For

Re: [PHP] Question regarding fopen

2008-04-29 Thread James
Hi, I'm having a strange problem with fopen For clearence, here is the phpinfo page: http://www.grondengoed.nl/phpinfo.php I will shortly explain the problem I'm having: $imagenamesmall = $foldersystem . '/' . $id . $imgstr . '-s' . $i . '.jpg'; echo $imagenamesmall; //

[PHP] Question About PHP Includes

2008-04-03 Thread jwynacht
Hi, I help maintain a Movable Type install for a non-profit organization. Things have worked well with the site but the other day the home page went blank and the rest of the pages lost all of their formatting. I've done some debugging and it seems that some include statements are no longer

Re: [PHP] Question About PHP Includes

2008-04-03 Thread Daniel Brown
On Thu, Apr 3, 2008 at 11:22 AM, jwynacht [EMAIL PROTECTED] wrote: Hi, I help maintain a Movable Type install for a non-profit organization. Things have worked well with the site but the other day the home page went blank and the rest of the pages lost all of their formatting. I've done

Re: [PHP] Question About PHP Includes

2008-04-03 Thread Daniel Brown
On Thu, Apr 3, 2008 at 11:42 AM, Jon Wynacht [EMAIL PROTECTED] wrote: Hi Dan, I just tried that and didn't see any errors on the screen or in my log file. I'm really quite stumped and am wondering if my ISP made some changes on their end? Thanks, Jon Please keep all replies

Re: [PHP] Question About PHP Includes

2008-04-03 Thread Jon Wynacht
Whoopssorry abut the reply ;-( Thanks for the advice...I'll start making the changes in the path. Cheers, Jon On Apr 3, 2008, at 8:56 AM, Daniel Brown wrote: On Thu, Apr 3, 2008 at 11:42 AM, Jon Wynacht [EMAIL PROTECTED] wrote: Hi Dan, I just tried that and didn't see any errors on

[PHP] question about select tag in php

2008-03-31 Thread Sudhakar
i have two select tags as part of a registration form, city1 city2 where city1 has a list of regions and similar for city2 there are different regions for city1 and city2 so instead of all the regions appearing one after the other i would like to create a blank option followed by the next set of

RE: [PHP] question about select tag in php

2008-03-31 Thread admin
Code wise your form options are too bulky and you need to look at slimming that down like below. Not that my example is prefect but easier to control the option enviroment. echo select name='city1'; for($d=1; $d=2; $d++) { if($city1 == region$d){ echo option selected

Re: [PHP] question about linux editor

2008-03-25 Thread Daniel Brown
On Mon, Mar 24, 2008 at 10:28 PM, Sudhakar [EMAIL PROTECTED] wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details i would

RE: [PHP] question about linux editor

2008-03-25 Thread Jay Blanchard
[snip] i need to connect to the linux server using an editor. can anyone suggest [/snip] I use Putty to connect and then call all sorts of command line editors. I may have Putty windows open to many servers at once. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] question about linux editor

2008-03-25 Thread Wolf
Sudhakar [EMAIL PROTECTED] wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details i would need to connect to the server.

Re: [PHP] question about linux editor

2008-03-25 Thread Ray Hauge
Sudhakar wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details i would need to connect to the server. please advice. thanks.

[PHP] question about linux editor

2008-03-24 Thread Sudhakar
i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details i would need to connect to the server. please advice. thanks.

Re: [PHP] question about linux editor

2008-03-24 Thread Casey
On Mon, Mar 24, 2008 at 7:28 PM, Sudhakar [EMAIL PROTECTED] wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details i would

Re: [PHP] question about linux editor

2008-03-24 Thread Mark Weaver
Casey wrote: On Mon, Mar 24, 2008 at 7:28 PM, Sudhakar [EMAIL PROTECTED] wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details

Re: [PHP] question about linux editor

2008-03-24 Thread Casey
On Mon, Mar 24, 2008 at 8:09 PM, Mark Weaver [EMAIL PROTECTED] wrote: Casey wrote: On Mon, Mar 24, 2008 at 7:28 PM, Sudhakar [EMAIL PROTECTED] wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server.

Re: [PHP] question about customized error

2008-03-21 Thread M. Sokolewicz
Jim Lucas wrote: Sudhakar wrote: if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would like to display a customized page

Re: [PHP] question about customized error

2008-03-21 Thread Daniel Brown
On Thu, Mar 20, 2008 at 6:54 PM, Sudhakar [EMAIL PROTECTED] wrote: if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would

[PHP] question about customized error

2008-03-20 Thread Sudhakar
if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would like to display a customized page which will still have the same look and

Re: [PHP] question about customized error

2008-03-20 Thread Jim Lucas
Sudhakar wrote: if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would like to display a customized page which will still have

Re: [PHP] question about php with sql database

2008-03-19 Thread Chris
Sudhakar wrote: instead of using mysql database which is conventionally used as database with php, if sql server database is used with php are there any major differences to keep in mind. In syntax or what? Yes there are differences between the two as far as sql syntax goes. 1. are the

Re: [PHP] question about php with sql database

2008-03-19 Thread Brady Mitchell
On Mar 18, 2008, at 1008PM, Sudhakar wrote: 1. are the connection statements ex = $conn = mysql_connect($hostname, $user, $dbpassword); etc does these remain the same or are they different. http://php.net/mssql 2. unlike in mysql with phpmyadmin which is browser based to access databases

Re: [PHP] question about php with sql database

2008-03-19 Thread Daniel Brown
Again, another question better-asked on the PHP-DB list, so it's being CC'd there. Responses in-line On Wed, Mar 19, 2008 at 1:08 AM, Sudhakar [EMAIL PROTECTED] wrote: instead of using mysql database which is conventionally used as database with php, if sql server database is used

[PHP] question about direct access to url

2008-03-18 Thread Sudhakar
hi my question is about displaying a friendly message when someone directly types a url in the browser. example i have one file called form.php which processes the information entered in the form and lets say the next page is thankyou.php?firstname=david by seeing the url if someone types

Re: [PHP] question about direct access to url

2008-03-18 Thread Stut
On 18 Mar 2008, at 12:46, Sudhakar wrote: my question is about displaying a friendly message when someone directly types a url in the browser. example i have one file called form.php which processes the information entered in the form and lets say the next page is thankyou.php?firstname=david

[PHP] question about php with sql database

2008-03-18 Thread Sudhakar
instead of using mysql database which is conventionally used as database with php, if sql server database is used with php are there any major differences to keep in mind. 1. are the connection statements ex = $conn = mysql_connect($hostname, $user, $dbpassword); etc does these remain the same or

Re: [PHP] Question about user management...

2008-03-12 Thread tedd
At 10:20 PM -0700 3/10/08, Mike wrote: Wait, what? You are defining user role ids as MD5 hashes of UUIDs created from random numbers that change on every request? Am I missing something or is this completely insane advice? Mike: What you're missing is that it doesn't matter. Each session

Re: [PHP] Question about user management...

2008-03-11 Thread Per Jessen
Eric Butera wrote: Read up on ACL's. Apart from Zend which you've mentiond below, is there anything in/for PHP that will help implement ACLs for a PHP application? http://en.wikipedia.org/wiki/Access_control_list http://framework.zend.com/manual/en/zend.acl.html Does anyone use the

Re: [PHP] Question about user management...

2008-03-11 Thread Eric Butera
On Tue, Mar 11, 2008 at 3:21 AM, Per Jessen [EMAIL PROTECTED] wrote: Eric Butera wrote: Read up on ACL's. Apart from Zend which you've mentiond below, is there anything in/for PHP that will help implement ACLs for a PHP application?

Re: [PHP] Question about user management...

2008-03-11 Thread Philip Thompson
On Mar 11, 2008, at 12:20 AM, Mike wrote: Wait, what? You are defining user role ids as MD5 hashes of UUIDs created from random numbers that change on every request? Am I missing something or is this completely insane advice? I'm probably wrong on this, but I think the point is that it

Re: [PHP] Question about user management...

2008-03-11 Thread Jason Pruim
On Mar 11, 2008, at 10:42 AM, Philip Thompson wrote: On Mar 11, 2008, at 12:20 AM, Mike wrote: Wait, what? You are defining user role ids as MD5 hashes of UUIDs created from random numbers that change on every request? Am I missing something or is this completely insane advice? I'm

Re: [PHP] Question about user management...

2008-03-11 Thread Daniel Brown
On Tue, Mar 11, 2008 at 10:42 AM, Philip Thompson [EMAIL PROTECTED] wrote: I do understand the security aspect though. It's like a password that changes quite frequently - it would be, for all intensive purposes, impossible to guess. Very similar, yes. You've got the idea. Oh, I

[PHP] Question about user management...

2008-03-10 Thread Jason Pruim
Hi Everyone, Happy Monday to all of you! I am trying to think through a user management issue for a application I am working on. What I want to do, is be able to provide a multi user environment (All accessing the same page, but depending on company name they get different data) and be

<    1   2   3   4   5   6   7   8   9   10   >