Re: [PHP] Session variables and words with spaces

2006-05-31 Thread Brad Bonkoski
FallsNiagra Falls/option (View source is a powerful tool!) -Brad -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 2:28 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session variables and words with spaces Perhaps you should load up your

Re: [PHP] weird characters problem

2006-05-26 Thread Brad Bonkoski
Angelo Zanetti wrote: Jochem Maas wrote: Angelo Zanetti wrote: Hi all. I have a situation where people enter values into a textfield can include the following: 1 ! 2 @ 3 # 4 $ 5 % 6 ^ 7 8 * 9 ( 10 ) 11 ; 12 : 13 14 ' 15 ? 16 - 17 _ 18 now once the move to another page and then

[PHP] Escaping quotes for DB Entry

2006-05-26 Thread Brad Bonkoski
? It seems that addslashes gets a lot of flack, but is there any other/better way? -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Escaping quotes for DB Entry

2006-05-26 Thread Brad Bonkoski
Jochem Maas wrote: Brad Bonkoski wrote: All... A lot has been said recently about the dangers of the family of magic_quotes... I understand the dangers. The question is, for those of us using a database that does not have a *real_escape_string function...Oracle for example. What

Re: [PHP] Escaping quotes for DB Entry

2006-05-26 Thread Brad Bonkoski
Jochem Maas wrote: Brad Bonkoski wrote: Jochem Maas wrote: ... Understood what the esacpe character needs to be...the question is the best way to get it there? Currently I have: magic_quotes_sybase = On this adds single quotes automatically - addslashes (unless Im mistaken

Re: [PHP] anti SQL injection method in php manual.

2006-05-26 Thread Brad Bonkoski
it would be the same as say: $user = quote_smart($_POST['username']); $pass = quote_smart($_POST['pasword']); $query = select * from users where user=$user and password=$pass; Your query would not use the quote_smart() function, as well as be wrong it those values were strings -Brad -- PHP

Re: [PHP] storing single and double quote in MySQL

2006-05-24 Thread Brad Bonkoski
in your php.ini file what is the value of: magic_quotes_gpc? (hint: should be off, if it is on, then you are add slashes twice...) -Brad [EMAIL PROTECTED] wrote: ok. I just made one test and if you can then explain something to me: I entered in form (textarea) afan's crazy web and stored in db

Re: [PHP] getting subdirectory

2006-05-23 Thread Brad Bonkoski
Perhaps check out some of these http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server -Brad Dallas Cahker wrote: how do I get the subdirectory that a page is being pulled from. say I have three sites running the same script and I need to determine which site

Re: [PHP] storing single and double quote in MySQL

2006-05-22 Thread Brad Bonkoski
Looks good to me, just make sure you use: http://www.php.net/manual/en/function.stripslashes.php if you have to dump that information back to the users. (you might want to check out: addslashes() to add the slashes before your DB insert, just to keep those things under your command) -Brad

Re: [PHP] storing single and double quote in MySQL

2006-05-22 Thread Brad Bonkoski
Richard Lynch wrote: On Mon, May 22, 2006 11:37 am, Brad Bonkoski wrote: http://www.php.net/manual/en/function.stripslashes.php if you have to dump that information back to the users. If you are using http://php.net/stripslashes on data coming out of your database, you

Re: [PHP] Handling Large Check Box Data

2006-05-17 Thread Brad Bonkoski
, will certainly cut down on development/debugging. 2). Performance...don't know if it is faster for PHP to parse through a comma separated list or parse through a larger DB record set. I guess if this is really important to you, you might want to attempt both ways to see on performance. -Brad

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-12 Thread Brad Bonkoski
In Exploder 7 beta 2 I actually get an access denied error... but works in firefox. Mike wrote: I am not seeing a blank page here. Porpoise wrote: tedd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try this: http://xn--ovg.com/ajax_page1 Please understand: a) It's a

Re: [PHP] Back arrow button

2006-05-12 Thread Brad Bonkoski
Not really a PHP question... But, since it is Friday ;-) As our friend Google: http://www.google.com/search?hl=enq=Javascript+disable+back+button HTH -Brad Sugrue, Sean wrote: Does anyone know how to launch a new page with having the back arrow button grayed out? Sean -- PHP General

Re: [PHP] PHP URL query

2006-05-10 Thread Brad Bonkoski
?php $var = $_GET['var']; echo( Welcome to our Web site, $var! ); ? -B IraqiGeek wrote: Hi all, I'm somewhat new to php, though I have played a bit with the language. I'm currently learning the language, and I'm having a problem passing variables through URL query. Here is what I have: A

Re: [PHP] Echo a value from an arrays position

2006-05-04 Thread Brad Bonkoski
'); $count = 0; foreach( $colors as $k = $v) { $count++; if( $count == 2 ) echo \$colors[$k] = $v.\n; } ? -Brad Jay Blanchard wrote: [snip] Is there any way to call for an element value in an array by the position? Like

Re: [PHP] can't work out the syntax error

2006-05-04 Thread Brad Bonkoski
\ A HREF=\javascript:open_window('.$_SERVER['PHP_SELF'].?action=view_recorduserid=$userid');\View/A ---^---^ concatenate the $_SERVER variable to the string... HTH -Brad What is the problem with it? R. -- PHP

Re: [PHP] Echo a value from an arrays position

2006-05-04 Thread Brad Bonkoski
I get nothing do you get something different? Jay Blanchard wrote: [snip] $colors = array('white'='#ff','black'='#00','blue'='#ff'); [/snip] What happens when you echo $colors[1]? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Echo a value from an arrays position

2006-05-04 Thread Brad Bonkoski
Nope... dead air. Of course getting an indexed value into an associative array seems a bit odd to me... maybe Jonas could shed some light on why he would go this route... Jay Blanchard wrote: [snip] I get nothing do you get something different? [/snip] Not even 'array'? -- PHP

Re: [PHP] Searching and getting values out of array maps

2006-05-03 Thread Brad Bonkoski
Here's a stab... $colors = array(red=#ff,gree=#00ff00,blue=#ff); echo $colors[blue]; should output #ff HTH -Brad Jonas Rosling wrote: Hi all, I'm kind of new with PHP. I work alot with another language called Lasso, reminds kind of PHP but not the same. I trying to search after

Re: [PHP] array_push in array maps

2006-05-03 Thread Brad Bonkoski
I don't believe you 'push' to an associative array like this, but if you want to add black for example...just do: $colors['black'] = '#ff'; -Brad Jonas Rosling wrote: Need solve another case regarding array maps. Is it possible to insert more values like with array_push in arrays

Re: [PHP] array_push in array maps

2006-05-03 Thread Brad Bonkoski
or white ;-) Stut wrote: Brad Bonkoski wrote: $colors['black'] = '#ff'; Black? Are you sure? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array_push in array maps

2006-05-03 Thread Brad Bonkoski
What kind of values are stored in $row[2] and $row[5]? You might need to keep the single quotes $test['$row[2]'] = $row[5]; -Brad Jonas Rosling wrote: There's allways mutch to learn. :-) I'm very happy for all help I can get. I ran into another problem when trying to insert a value. I

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Brad Bonkoski
no POST variables are actually passed to the report page, so refreshing it will just present the same data... -Brad Jeff wrote: Is there a way to prevent a re-posting of the form data when a user pushes the refresh button on the browser? I have a page that has a form to enter credit's

Re: [PHP] chop x amount of characters from the begining of a string

2006-05-02 Thread Brad Bonkoski
Perhaps this will work.. http://www.php.net/manual/en/function.substr.php Ross wrote: I have a word say 'example' I want to chop of two or 3 chacters from the front to leave 'ample' or 'mple'. Is there a php function to do this? Ross -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] how to get the absolute path of an included file?

2006-04-27 Thread Brad Bonkoski
Bing Du wrote: Hello, Here are the two scripts. The result is 'var is' rather than 'var is foo'. My suspect is I did not set the file path right in 'include'. So in file2.php, how should I get the actual absolute path it really gets for file1.php? Is it stored in some environment

[PHP] Validating XML

2006-04-21 Thread Brad Bonkoski
the validate the XML schema? I am working with an XML document and a DTD file which is separate, do the files have to share a name with a different extension, or does the DTD somehow have to be embedded? TIA -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-20 Thread Brad Bonkoski
Maybe it is just me, but I think these types of discussions/debates concerning opposing view points on the direction of web programming is as imperative to the general PHP community (i.e. this list) as the dangers of register globals and magic quotes etc At least more relevant then the

Re: [PHP] PHP with Oracle

2006-04-19 Thread Brad Bonkoski
Assuming the PHP web page is available, anyone else having problems connecting to php.net? -B Jay Blanchard wrote: [snip] is there a ready script that handle entering user name and password for authentication by extracting the Data from Oracle10g DB without showing the URL in the address

Re: [PHP] how to assign a value to a variable inside a class

2006-04-11 Thread Brad Bonkoski
. -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session_id within URL

2006-04-11 Thread Brad Bonkoski
session_start(); $s = SID; //get Session ID echo a href=\page.php?$s\Page/a; Mostly for passing the session as a GET variable to another page, like for anything from authentication tokens to form data etc... Of course for form data it would probably be better to encapsulate the session

Re: [PHP] how to assign a value to a variable inside a class

2006-04-10 Thread Brad Bonkoski
How about this: class foo { var $name; function setName($value) { $this-name = $value; } } -B Merlin wrote: Hi there, I would like to assign a value inside a class like this: var $db_username = $old_name; Unfortunatelly this does not work and I do get following error:

Re: [PHP] microtime questions

2006-04-08 Thread Brad Bonkoski
tedd wrote: -B At 12:51 PM -0400 4/7/06, Brad Bonkoski wrote: How is the CPU not in question? Does this script run on air? I did not say that. I said that it was not MY CPU that was involved and it isn't. Who cares, it is irrelavent who's CPU it is runing on. It may not be YOUR

Re: [PHP] Handling Large Select Boxes

2006-04-08 Thread Brad Bonkoski
guess this is what happens when people get a ton of data before they properly planned to get that much data -Brad Brad Ciszewski wrote: Perhaps try implementing some AJAX on the page. Therefore, once the page has loaded, the select tag is populated with different options, without actually

[PHP] Handling Large Select Boxes

2006-04-07 Thread Brad Bonkoski
Hello, I have a form for user interaction and part of it is a select box with a large number of options from a database ~12K options. Currently I have a function which queries the DB to get fresh data and loads the HTML (option value=XY/option) into a string, so the DB is only hit once, but

Re: [PHP] Handling Large Select Boxes

2006-04-07 Thread Brad Bonkoski
Good point... Maybe the gods of usability can kick the user's in the butt to get them to clean up the data! Previously they used a free text field, which is why the problem is as bad as it is currently All the data has to be available, so the only other option I can think of is to select

Re: [PHP] microtime questions

2006-04-07 Thread Brad Bonkoski
Interesting... as for your first question... Know that PHP/Apache does not have free reign to your CPU, so the times could be different based on the scheduling going on in the OS kernel. As for the second one... No idea why you would get a negative number, I just copied and ran from the

Re: [PHP] Completing forms offline with PHP/MySQL

2006-04-07 Thread Brad Bonkoski
If your users are using Windows, then something like http://www.hypervisual.com/winbinder/ might be good on the user side, as you can bundle the PHP binary and everything else needed into one executable (with some work of course) And then they can create a file formatted to your specifications

Re: [PHP] microtime questions

2006-04-07 Thread Brad Bonkoski
How is the CPU not in question? Does this script run on air? It may not be YOUR CPU, but it is still a CPU bound by the sceduling algorithm of the Operating System, so the time differentials are too be expected. -B tedd wrote: At 12:24 PM -0400 4/7/06, Brad Bonkoski wrote: Interesting

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Brad Bonkoski
why do you have single quotes around year? -B Tom Chubb wrote: I'm working on an insert record page with a multiple file upload script of which I understand the fundamentals. However, on submission I am getting the following error: Parse error: syntax error, unexpected

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Brad Bonkoski
thanks for the clarification, I guess the other solution would be to avoid using names with special meaning for column names... -B Ray Hauge wrote: On Friday 07 April 2006 12:53, Joe Henry wrote: On Friday 07 April 2006 1:37 pm, Tom Chubb wrote: $insertSQL = INSERT INTO cars (model,

Re: [PHP] Handling Large Select Boxes

2006-04-07 Thread Brad Ciszewski
Perhaps try implementing some AJAX on the page. Therefore, once the page has loaded, the select tag is populated with different options, without actually lagging the page. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I have a form for user interaction and part

Re: [PHP] Php Script Stumped!

2006-04-06 Thread Brad Bonkoski
1. Look at this: http://javascript.internet.com/forms/form-focus.html 2. See Below 3. Take a look at this function: http://www.php.net/manual/en/function.date.php -B marvin hunkin wrote: Hi. doing this script for an assignment, and got it basically working. the only problems are: 1.

Re: [PHP] ?=? style

2006-04-06 Thread Brad Bonkoski
short_open_tag Dallas Cahker wrote: What is that called and where in the php.ini file do I enable it? Sorry if this is a stupid question but since I dont know what its called it makes it difficult to google it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Oracle stored procedures

2006-04-06 Thread Brad Bonkoski
I am using PHP with Oracle, but not executing stored procedures. I assume you are already validating the contents of the $addr variable before you bind it? Otherwise, no real ideas here... -B Jay Blanchard wrote: [snip] I have a stored procedure in Oracle; p_BILL_TO_ADDRESS1 IN

Re: [PHP] Magic quotes good or Bad?

2006-04-05 Thread Brad Bonkoski
limitations, but can also be helpful. So it really depends on the wielder of the tool if it should be used or not. -Brad Angelo Zanetti wrote: Hi guys. I've just read an article that gives a good explanation about escaping single quote characters with slashes, the author then says

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Brad Bonkoski
Create a page like this: ?php phpinfo(); ? and see what the output tells you about mysql...might shed some light on it. -B Alain Roger wrote: i've seen that non of extension are activated...neither mysql.dll nor mysqli.dll after uncommenting them and restarting Apache, it still does not

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Brad Bonkoski
:\WebServer\PHP511\ext 4. i restarted apache 5. phpinfo still provide no info regarding MySQL what should i do ? On 4/5/06, Brad Bonkoski [EMAIL PROTECTED] wrote: Create a page like this: ?php phpinfo(); ? and see what the output tells you about mysql...might shed some light on it. -B

Re: [PHP] Re: [PHP-INSTALL] php4 vs. php5

2006-02-03 Thread Brad Kowalczyk
Jochem Maas wrote: Brad Kowalczyk wrote: Grae Wolfe - PHP wrote: Hey there... I am setting up a new test server for one of my clients to use, and I am curious if there is a reason to go with php4.xx over php5.xx, or the other way around. I would think that I would want to go

[PHP] Re: [PHP-INSTALL] php4 vs. php5

2006-02-02 Thread Brad Kowalczyk
as expected on php5 (but not the the other way around) and the benefits of php5 are many. Cheers, Brad Kowalczyk www.ibiscode.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Virtual Directory Support

2005-11-15 Thread Brad Glonka
Real simple question How do I change this from disabled to enabled. Thanks Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Brad Glonka
I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ On 11/15/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Real

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Brad Glonka
arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ [/snip] http://us2.php.net/dir http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html Ah, both those links are useless for what he wants to do. Brad, Make a script

Re: [PHP] Re: [Off] How much time should this take?

2005-09-16 Thread Brad Dameron
server. How do I know? Because I build these configurations almost daily. If you get stuck with init scripts there's something wrong. Maybe you should man chkconfig. Brad Dameron Senior Systems Administrator SeaTab Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Two websites need to share part of one database, suggestions please

2005-07-11 Thread Brad Pauly
table. The same could be applied to the other tables. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object Oriented PHP (5)

2005-07-01 Thread Brad Pauly
piece of the application should be implemented. It was a good exercise in understanding where my opinions came from. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Brad Pauly
migration. I'm wondering if you could expand on this some. How does not running in a J2EE environment limit PHPs ability to expand? In my opinion this is not the case, but I'm always open to being convinced otherwise. I'm also curious what you mean by small scale. - Brad -- PHP General Mailing List

Re: Re[2]: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Brad Pauly
. Of course it doesn't have to be done that way. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Brad Pauly
concerns. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP vs. ColdFusion

2005-06-27 Thread Brad Pauly
. If management can see that you are stoked to use PHP that might help your cause. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question about HTTP 301 permanent redirects

2005-06-27 Thread Dr. Brad Lustick
REDIRECT TO: http://www.nimblepedic.com/services.php/body_tools Please only answer if you know exactly how to do so. The advise is very crucial to me. Thanks very much in advance Dr. Brad -- Dr. Brad R. Lustick/CEO Ergonomic Supervisor Back Be Nimble--Your One-Stop Back Shop Nimble-Pedic

[PHP] Variable Passing

2005-04-08 Thread Brad Brevet
, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable Passing

2005-04-08 Thread Brad Brevet
This seems to be what I was looking for, but I am curious, will the / be included in the variable? Will I have to do a stripslashes() command on it? Brad Hans Juergen von Lengerke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Brad Brevet: Hi, I am curious how to pass a variable

[PHP] Re: [PHP-DEV] PHP Extensions Pass-By-Reference

2005-02-25 Thread Brad House
look at http://cvs.php.net/co.php/php-src/ext/mcve/mcve.c?r=1.28.2.2 the m_completeauthorizations function. -Brad Chris Cranford wrote: I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to pass variables by reference to my function without enabling call-time pass by reference

[PHP] Server Uptime

2005-02-07 Thread Brad Ciszewski
What is the function, or how do you make a script that displays the server's uptime? Thanks, Brad Ciszewski www.BradTechnologies.com Web Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error in foreach?

2005-01-10 Thread Brad Brening
! Any ideas? Thanks; Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Comparison Operator

2005-01-10 Thread Brad Pauly
this link for more info. http://us3.php.net/manual/en/language.operators.comparison.php Try using === instead. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Brad Pauly
Any ideas? It's a permissions problem. Both of those files are owned by the root user and I would guess that apache is not running as root (and it shouldn't be!). Find out who apache is running as (commonly www or nobody) and give that user access to those files. Brad -- PHP General Mailing

[PHP] layers

2004-12-21 Thread Brad Ciszewski
/layout.jpgnbsp;/td /tr /table /div /body /html Code Ends Here Any help will be greatly appreciated!! Sincerely, Brad Ciszewski www.BradTechnologies.com Web Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Current Member Check

2004-12-19 Thread Brad Ciszewski
= $_POST[email]; $checkEmail = mysql_query(SELECT * FROM memberInformation WHERE email = '$email'); Thanks in advance!! Brad Ciszewski www.BradTechnologies.com Web Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Current Member Check

2004-12-19 Thread Brad Ciszewski
i appologize i forgot to add the rest: if($checkEmail != 0){ echo(centerfont color=\#99\The email address has already been registerd with an account./font/center); include(../includes/footer.php); exit; } Thanx! Brad Ciszewski www.BradTechnologies.com Web Services Brad Ciszewski [EMAIL

Re: [PHP] ISP snippet

2004-12-10 Thread Brad Ciszewski
i need the script which will do this all automaticly.. i know there is a feature to get the server which the user is from. Danny Brow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 2004-12-09 at 18:17 -0600, Brad Ciszewski wrote: i need help to figure out the isp

Re: [PHP] user password managment

2004-12-10 Thread Brad Ciszewski
} $thisRow++ -Brad Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anybody have any tips or links for creating a system for managing user's passwords. I want to make it so that when a user is created, an email is sent with a link that allows them to set their password

[PHP] alternating table entry colors

2004-12-10 Thread Brad Ciszewski
?PHP echo($insertdate); ?/td td?PHP echo($referenceid); ?/td td?PHP echo($hiddentext); ?/td /tr ?PHP $thisRow++ } ? +=+=+ SCRIPT ABOVE +=+=+ thanx in advance! - Brad www.BradTechnologies.com - Web Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] ISP snippet

2004-12-09 Thread Brad Ciszewski
i need help to figure out the isp of a user. can anyone help me with this? -Brad www.BradTechnologies.com 99.9% Uptime 24/7 Support Packages as low as 3.50 p/month! www.BradTechnologies.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Forms In PHP

2004-12-09 Thread Brad Ciszewski
besure to have the to emails have only a , inbetween them. Example: $to = [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]; etc Hope that helps :) -Brad www.BradTechnologies.com 99.9% Uptime 24/7 Support Packages as low as 3.50 p/month cPanel/PHP/mySQL www.BradTechnologies.com Wil

[PHP] Remember me function

2004-12-03 Thread Brad Brevet
Hey all, I have a log-in all set up on my site using PHP Sessions but I want to add the Remember Me function, but I don't know what to set in the cookie to make it that way. Please help. :) Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Remember me function

2004-12-03 Thread Brad Brevet
Is this the all I would need to do to set a cookie with a username stored for 30 days? Sorry I am new at this. setcookie (Cookie Name, $username, time()+60*60*24*30); Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 3 Dec 2004 07:38:47 -0800, Brad Brevet [EMAIL

Re: [PHP] Remember me function

2004-12-03 Thread Brad Brevet
Nevermind, I figured it all out, thanks for the info. Brad Brevet [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is this the all I would need to do to set a cookie with a username stored for 30 days? Sorry I am new at this. setcookie (Cookie Name, $username, time()+60*60*24*30

Re: [PHP] Remember me function

2004-12-03 Thread Brad Brevet
else should I be worried about as far as security is concerned with Sessions and Cookies? Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Brad Brevet wrote: Hey all, I have a log-in all set up on my site using PHP Sessions but I want to add the Remember Me function

Re: [PHP] Remember me function

2004-12-03 Thread Brad Brevet
Well, is what my plan is, is to create a session on log-in along with a stored cookie, so that once the browser is closed the session is removed and only the cookie remains for the 30-day time period. Brad Brian Dunning [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When I use

[PHP] buffer

2004-11-28 Thread Brad Ciszewski
is there a code you can put at the top of the your php files so that the imgs etc. load as the are put on to your computer, and it doesnt wait for the whole site to be downloaded until it is loaded to the user? *turning off the buffer basicly* Brad Ciszewski www.BradTechnologies.com 99.9% Uptime

[PHP] Re: Newbie question

2004-11-28 Thread Brad Ciszewski
try, ?PHP header(Location: Page_here); ? www.BradTechnologies.com 99.9% Uptime 24/7 FREE Support Plans starting at $3.50 per month www.BradTechnologies.com Pascal Platteeuw [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello everyone, Here is a newbie question for you guys who

[PHP] exclude - mysql query

2004-11-28 Thread Brad Ciszewski
i have several tables with data, and they all have a server column. there are a few tables which i need to exclude a particular server from that table. i am currently running an array to extract the data, and was wondering if i could either use PHP code or a mysql-query exclude function or

[PHP] and statement

2004-11-28 Thread Brad Ciszewski
is there an 'and' statement for mysql, when you are doing multiple wheres? www.BradTechnologies.com 99.9% Uptime 24/7 FREE Support Plans starting at $3.50 per month www.BradTechnologies.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: and statement

2004-11-28 Thread Brad Ciszewski
err i mean ... an 'or' statement sry www.BradTechnologies.com 99.9% Uptime 24/7 FREE Support Plans starting at $3.50 per month www.BradTechnologies.com Brad Ciszewski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there an 'and' statement for mysql, when you are doing multiple

[PHP] rounding down

2004-11-26 Thread Brad Ciszewski
hi everyone, i am looking for a snipplet to round down a number. i was wondering if you could put a negative number in the round() statement to do this, i want it to round down even if its at something.9, as long as its not a whole number, if needs to be rounded down. can anyone help me?

Re: [PHP] Read PDF files with Php

2004-11-26 Thread Brad Ciszewski
i am not sure if this uses PDFlib but, this is a wonderful script which helps create a PDF file. http://sourceforge.net/projects/pdf-php/ - Original Message - From: Jacob Friis [EMAIL PROTECTED] To: Christopher Way [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 26, 2004

[PHP] proxy - detect

2004-11-26 Thread Brad Ciszewski
does anyone know the function to get the IP address before the proxy-IP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is Perl faster than PHP?

2004-11-16 Thread Brad Pauly
, high traffic sites. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A simple question

2004-11-13 Thread Brad Bonkoski
Read this.. http://www.php.net/release_4_1_0.php (Especially the part about global variables...) - Original Message - From: Chuck PUP Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 13, 2004 9:02 PM Subject: [PHP] A simple question Hey, I have just upgrade my box

Re: [PHP] should basic data validation go outside a function or inside?

2004-11-10 Thread Brad Pauly
repeating the validation everywhere the function is called. It also makes the function more self-contained. It expects a certain input and complains, or returns false, if it doesn't get it. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SNMP causing Apache to leave ports open?

2004-10-29 Thread Brad Stockdale
. Thanks, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] User Screen Resolution

2004-10-27 Thread Brad Bonkoski
There has been talk in the past about making a phpscript that would run on the client, but then there are all the problems with browser integration, and universal support. I say this is a good niche for javascript, so make use of it if you need it just like you don't use a hammer to

Re: [PHP] PHP 5.02 and Fedora Core 2 Installation question

2004-10-15 Thread Brad Pauly
this. Dovecot is the default IMAP server on FC2. I haven't had time to try it yet, but here is a link I found about compiling PHP with dovecot: http://www.dovecot.org/list/dovecot/2004-July/004282.html I should have a chance to try later today and will let you know if I have any luck. Brad -- PHP

Re: [PHP] PHP 5.02 and Fedora Core 2 Installation question

2004-10-15 Thread Brad Pauly
On Fri, 15 Oct 2004 10:49:27 -0600, Brad Pauly [EMAIL PROTECTED] wrote: I am also trying to do this. Dovecot is the default IMAP server on FC2. I haven't had time to try it yet, but here is a link I found about compiling PHP with dovecot: http://www.dovecot.org/list/dovecot/2004-July

Re: [PHP] set multiple variables

2004-10-01 Thread Brad Pauly
the best recommended way for doing that? One way would be to create an array of ips and look for it in that array: $ips = array('127.0.0.1','192.168.1.50'); if (in_array($REMOTE_ADDR, $ips)) { // do stuff } - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: PDF from PHP generated HTML, possible?

2004-09-23 Thread Brad Pauly
URL before any of your queries are executed. http://server/html/hash-of-your-variables.html Or, for the pdf version. http://server/pdf/hash-of-your-variables.pdf - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PDF from PHP generated HTML, possible?

2004-09-23 Thread Brad Pauly
On Thu, 23 Sep 2004 22:39:06 +0100, Graham Cossey [EMAIL PROTECTED] wrote: Brad: When you say a hash of the query string do you mean passing the variable part of the URL thru mhash to obtain a hash/key/digest or whatever you wish to call it? If so, do you recommend any particular hash, ie MD5

Re: [PHP] accessing querystring values

2004-09-21 Thread Brad Pauly
and $_COOKIE. You might want to do this method if your script could be accessed via a GET or POST. http://us4.php.net/manual/en/reserved.variables.php#reserved.variables.request - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with header-dispotition in IE

2004-09-20 Thread Brad Pauly
it ignores the content-type header. You might want to try adding space char after the filename, I've heard it works. Apparently IE sometimes makes multiple requests for a URI and this can cause problems with large PDF files. http://support.microsoft.com/default.aspx?scid=kb;en-us;293792 - Brad

<    1   2   3   4   5   6   7   8   >