Re: [PHP] Running Scripts from the Command Line in Linux

2006-06-08 Thread Brad Bonkoski
$ php script.php OOzy Pal wrote: How can I run a .php script from the command in Linux? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Control GET data

2006-06-06 Thread Brad Bonkoski
lementbyId("lastname").value; val2 = document.getelemntById("first_name").value var url ="somepage.php?name="+val2+"_"+val1; window.location = url; } again...if you have a form, use the post variables! -Brad|| Steffen Mazanek wrote: Hello, I

Re: [PHP] If value is odd or not

2006-06-02 Thread Brad Bonkoski
if ($value % 2 == 0 ) echo "Value is even"; else echo "Value is odd"; Jonas Rosling wrote: Hi all, is there any easy why to check if a value is odd or not? Thanks // Jonas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session variables and words with spaces

2006-05-31 Thread Brad Bonkoski
Beauford wrote: Thanks - Done that though. It shows the way it should be. Example: Niagara Falls which of course is wrong and explains perfectly why you are getting the results you are getting... it *should* display: Niagra Falls (View source is a powerful tool!) -Brad

Re: [PHP] ob_flush() problems

2006-05-31 Thread Brad Bonkoski
second, but it shows all the text when the for stops... any ideea? i tried all the examples from php.net, all the examples on the net, bot no succes. cheers, PHP is a server side scripting language, so the information would not be sent to the browser( aka client) until the server side script h

Re: [PHP] Session variables and words with spaces

2006-05-31 Thread Brad Bonkoski
Perhaps you should load up your initial form and then use the "view source" option in your browser as this will probably give you insight into your problems... -Brad Beauford wrote: Hi, I have a form in which a drop down field is populated from a MySQL database. I am also usin

Re: [PHP] is there a faster "file" command?

2006-05-31 Thread Brad Bonkoski
ile, and when it is done, your page can display at that point in time. Fairly common usage for AJAX, so there should be some good tutorials out there which google will help you find. -brad Thank you in advance, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

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

2006-05-26 Thread Brad Bonkoski
unction into the string. so 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, a

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] 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 is the

[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] 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

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" we

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 is

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 are

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] 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.

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=en&q=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 Gen

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 r

Re: [PHP] PHP URL query

2006-05-10 Thread Brad Bonkoski
-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 simple HTML file that contains: Hi, this is a test! and a php

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] 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: http://www.ph

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

2006-05-04 Thread Brad Bonkoski
HREF=\"javascript:open_window('".$_SERVER['PHP_SELF']."?action=view_record&userid=$userid');\">View ---^---^ concatenate the $_SERVER variable to the string... HTH -Brad What is the problem with it? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-05-04 Thread Brad Bonkoski
#x27;=>'#00','blue'=>'#ff'); $count = 0; foreach( $colors as $k => $v) { $count++; if( $count == 2 ) echo "\$colors[$k] => $v.\n"; } ?> -Brad Jay Blanchard wrote:

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

2006-05-03 Thread Brad Bonkoski
ch case 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

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

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
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 value

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 wor

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 variable

[PHP] Validating XML

2006-04-21 Thread Brad Bonkoski
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 i

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 bar..

Re: [PHP] Session_id within URL

2006-04-11 Thread Brad Bonkoski
session_start(); $s = SID; //get Session ID echo "Page"; 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 veriables within the form.

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

2006-04-11 Thread Brad Bonkoski
get a member variable within a class you need to define a function to do so. -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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: Par

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

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 n

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 p

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] 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 T_ENCAPSED_AND_WHITESPAC

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] 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 to

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 comman

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

[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 (Y) into a string, so the DB is only hit once, but the page still takes a

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 C

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: http

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] problem using mysql_connect function under windows XP

2006-04-05 Thread Brad Bonkoski
on_dir = "F:\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: and see what the output tells you about mysql...might shed some light

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

2006-04-05 Thread Brad Bonkoski
Create a page like this: 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 work :-( On 4/5/06, J

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] 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 with the

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

2006-02-02 Thread Brad Kowalczyk
ode will run 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

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Brad Glonka
ache.org/docs/1.3/mod/mod_rewrite.html > > > > Ah, both those links are useless for what he wants to do. > > Brad, Make a script called script.php containing the following line: > > > > And then access http://yourserver.com/script.php/some/path/info and > you'll

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] > Re

[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] Re: [Off] How much time should this take?

2005-09-16 Thread Brad Dameron
een following this and I can say for a fact this could be done in 6 hours or less. And guarantee a secure 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 Damero

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

2005-07-11 Thread Brad Pauly
hout changing the products 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
iece 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
think most languages and platforms are going to have thier own set of security concerns. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-06-30 Thread Brad Pauly
of the servers. I don't think that is a very efficient use of resources. 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
spect of expansion or server 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 sc

[PHP] Question about HTTP 301 permanent redirects

2005-06-27 Thread Dr. Brad Lustick
P 301 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 &

Re: [PHP] PHP vs. ColdFusion

2005-06-27 Thread Brad Pauly
t as fun to work with. My biggest problem with CF is probably that I have to use it on Windows and, well, I really don't like that. ;) You mention being in a Windows environment so maybe you don't have a choice with that aspect. 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

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:

[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

[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

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

2005-01-10 Thread Brad Pauly
p' for inclusion > (include_path='.:/www/php') in Unknown on line 0 > > 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 a

Re: [PHP] Comparison Operator

2005-01-10 Thread Brad Pauly
nverted to an integer when compared with an integer. See 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

[PHP] Error in foreach?

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

[PHP] layers

2004-12-21 Thread Brad Ciszewski
er construction. Please check back soon!!");   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] Re: Current Member Check

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

[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 unsubscr

Re: [PHP] user password managment

2004-12-10 Thread Brad Ciszewski
i have changed the script around a bit, now it actually shows something, but it doesnt alternate. $thisRow = "0"; $query = mysql_query("SELECT * FROM security_images ORDER BY ID DESC", $conn); while($gt=mysql_fetch_array($query)){ extract($gt); if($thisRow % 2 == "0"){ $backgroundColor = "#CC

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 h

[PHP] alternating table entry colors

2004-12-10 Thread Brad Ciszewski
FROM security_images ORDER BY ID DESC"); while($gt=mysql_fetch_array($query)){ if($thisRow mode 2 == 0){ $backgroundColor = "#CC"; }else{ $backgroundColor = "#FF"; } extract($gt); echo ?> +=+=+ SCRIPT ABOVE +=+=+ thanx in

[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 &quo

[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

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 PROTECT

Re: [PHP] Remember me function

2004-12-03 Thread Brad Brevet
e on the site. What 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 Sessi

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 ("Cook

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 200

[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: http://www.php.net/unsub.p

[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'

[PHP] and statement

2004-11-28 Thread Brad Ciszewski
is there an 'and' statement for mysql, when you are doing multiple "where"s? 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] 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 somethin

[PHP] Re: Newbie question

2004-11-28 Thread Brad Ciszewski
try, 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 are much more advanced than me

[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] 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] 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

[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] Is Perl faster than PHP?

2004-11-16 Thread Brad Pauly
an the other. Both languages can be used to write fast, 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

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

2004-11-10 Thread Brad Pauly
ion? I would do the validation inside the function. This avoids 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 Mailin

[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 tighten

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.

<    1   2   3   4   5   6   7   8   >