Re: [PHP] Permissions on server

2003-07-08 Thread Brad Pauly
whichever user apache is running as (this is the User directive in your httpd.conf file). Then you can restrict the permissions on that directory. You could probably make it 600 if you want. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] qry not running??

2003-07-07 Thread Brad Pauly
be? WHERE cat_id = '$cat_name' I don't know what $cat_name is, but since you have a cat_name column, I am wondering if you are comparing two different things. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL problem

2003-07-07 Thread Brad Pauly
s. You are using an assignment operator where you should be using a comparison operator. Try using == (or ===): if ($_SERVER['QUERY_STRING'] == "") { disp_cat(); } http://us4.php.net/manual/en/language.operators.assignment.php http://us4.php.net/manual/en/language.operators.compa

Re: [PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-03 Thread Brad Pauly
that is bundled with RH9. That was fixed by 'upgrading' to an older version. Other than that it has been fine. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-03 Thread Brad Pauly
so you can probably just tell configure where apxs is. --with-apxs=/path/to/apache/bin/apxs http://www.php.net/manual/en/install.apache.php Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sending a PDF page

2003-07-03 Thread Brad Pauly
ob_end_clean(); } http://us2.php.net/manual/en/ref.outcontrol.php Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how do i work with an "object"

2003-07-03 Thread Brad Pauly
the manual, but essentially something like this: $header = imap_header($foo, $bar); print $header->date; http://us4.php.net/manual/en/function.imap-headerinfo.php Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Now what's wrong with this?

2003-06-21 Thread Brad Pauly
On Sat, 2003-06-21 at 16:59, Kyle Babich wrote: > $entry = fread($entryGet, filesize("postEntries/{$entriesIndex}"); //67, line /w > parse error Missing a ')' Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to get rid of \' and \" ?

2003-06-21 Thread Brad Pauly
code(). Is there a function to strip escape charechters? I think you want stripslashes(). http://us4.php.net/manual/en/function.stripslashes.php Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] timing out exec statements

2003-06-16 Thread Brad Dameron
Wouldn't this be best done inside your perl script? That way you can have it retry a few times then if it hard fails return to the PHP script. Brad - Original Message - From: "Dave [Hawk-Systems]" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]>

Re: [PHP] Server-initiated HTTP requests

2003-06-16 Thread Brad Dameron
http://www.domain.com";); ?> Brad - Original Message - From: "Sander" <[EMAIL PROTECTED]> > I'm using php to have several servers communicate between eachother. I > want to do the following: > Server A sends a request to server B. Server B stores

Re: [PHP] Re: PHP help/example for booking program

2003-06-16 Thread Brad Dameron
Try here: http://www.hotscripts.com/PHP/Scripts_and_Programs/ or here: http://php.resourceindex.com/ Enjoy, Brad - Original Message - From: "Giuliano" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 7:42 AM Subject: [PHP] Re: PHP he

Re: [PHP] Good PHP Books

2003-06-16 Thread Brad Dameron
this helps, Brad - Original Message - From: "Mark McCulligh" <[EMAIL PROTECTED]> > Hi Other PHP Users, > > I have been asked to teach an introduction course on PHP/MySQL at my local > College. > > I am looking for a good beginner book for the course. Lik

Re: [PHP] new window

2003-06-06 Thread Brad Bonkoski
How about: echo "Link"; Well, I guess that is really HTML, but with the idea that PHP is server side only you would need a client side method of opening windows. So, HTML, Javascript, pick your method.... -Brad Adriaan Nel wrote: > Hi all, > > How do I open a new window f

[PHP] php and Perl

2003-03-27 Thread Brad Wright
soon find a bit more about perl itself elsewhere from this list. Can i indeed use php to 'call' a perl script/function/app whatever its called? Cheers, Brad Nel vino la verità, nella birra la forza, nell'acqua i bacilli -

[PHP] Recommended package for online editing of HTML files

2003-03-18 Thread Brad Hubbard
Can anyone recommend a package suitable for editing HTML files on a remote server through a PHP interface? Basically, an online HTML editor. Cheers in advance, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using PHP to get a word count of a MSword doc

2003-03-18 Thread Brad Wright
Thanks Erik, looking now :) Cheers, Brad Nel vino la verità, nella birra la forza, nell'acqua i bacilli -- In wine there is truth, in beer there is strength, in water there are bacteria > From: Erik Price

Re: [PHP] Using PHP to get a word count of a MSword doc

2003-03-18 Thread Brad Wright
Erik, thanks, are you able to pint me to some good reference sources on tokenizer's... i have never come across them before I have been scouring the web, and am coming up a decided blank. :) Cheers, Brad Nel vino la verità, nella birra la forza, nell'acqua

Re: [PHP] Using PHP to get a word count of a MSword doc

2003-03-18 Thread Brad Wright
Thanks for the reply Rene, Any change of a code sample of how u did this?? Im not at all experienced in Java. Thanks again for replying Cheers, Brad Nel vino la verità, nella birra la forza, nell'acqua i bacilli

[PHP] Working with dates

2003-03-17 Thread Brad Harriger
I have two variables, $StartDate and &EndDate that contain values read from MySQL Date fields. How can I determine if a value entered by the user is between the two dates? I'm using PHP 4.0.6. Thanks in advance, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Using PHP to get a word count of a MSword doc

2003-03-16 Thread Brad Wright
Hi all, I have a mySQL DB that stores word documents (as a BLOB). I am trying to find a way of doing a word count on the documents using PHP. Can anyone help?? Thanks in advance, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Non systems-wide auto_prepend_file

2003-03-16 Thread Brad Hubbard
Is there any way anyone can think of to set up auto_prepend_file/auto_append_file so that they only affect one virtual domain on an Apache webserver (not system wide)? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php/mySQL time comparison

2003-03-14 Thread Brad Wright
Thanks people, thank you very very much. the missing quotes were the problem. Can't beleive I kept missing that, everytime I re-read the code. Sorted now, and I've still got some hair!! You people are legends!!! Cheers, Brad Nel vino la verità, nella birra la forza, nell'

[PHP] php/mySQL time comparison

2003-03-14 Thread Brad Wright
s wrong"); to query the mysql DB. But it doesnt work. Is there a glaring error in my syntax? Can anyone help with this as its driving me nuts Hope someone can help, thanks in advance, brad Cheers, Brad Nel vino la veri

Re: [PHP] Crypting Passwords for storage.

2003-03-13 Thread Brad Bonkoski
all done on server side though, so perhaps you should utilize SSL to send them over the internet. HTH -Brad "Philip J. Newman" wrote: > I have a user admin for a site, how ever passwords are stored in plane text. > Is there away to crypt and then read the crypt when verifying that

[PHP] Re: string validating

2003-03-12 Thread Brad Esclavon
trim($a_string); // removes all newline, carriage returns, and formating $in_str_var_name=str_replace("search_for", "replace_with", $in_str_var_name); replaces any strings or chars also- check out php.net documentation on string-- many other useful functions for string manipulation -- PHP

[PHP] string validation functions

2003-03-12 Thread Brad Esclavon
trim($a_string); // removes all newline, carriage returns, and formating $in_str_var_name=str_replace("search_for", "replace_with", $in_str_var_name); replaces any strings or chars also- check out php.net documentation on string-- many other useful functions for string manipulation -- PHP G

[PHP] Bizarre gethostbyname() problem

2003-03-07 Thread Brad Hubbard
If I run the following code from the command line ("php -q socktest.php") it works fine. If I try to run it through a browser gethostbyname fails (prints unchanged host name). What gives? Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

RE: [PHP] what are the planned features of php 5?[Scanned]

2003-02-26 Thread Brad Young
You can also view the recorded on-line seminars that Zeev gave, which go into even more detail. http://www.zend.com/iseminar.php The Future of PHP and the Zend Engine 2 The Future of PHP and the Zend Engine 2 - Part 2 Examples and tutorials Brad >-Original Message- &g

RE: [PHP] Zend Encoder

2003-02-25 Thread Brad Young
ould be like looking at a .EXE file in Windows, but even more convoluted.) Needless to say, even this minor capability has never and will never be developed or utilized by Zend. 3. Zend Encoder is the most secure way to deliver php code. That said, no protection scheme is absolut

Re: [PHP] general question ?

2003-02-24 Thread Brad Bonkoski
How about changing your post method to 'post' instead of 'get'? Right now it looks like you do not declare the method at all so it defaults to get. " method=post> And then of course you will have to us the $_POST['user'] instead of $_GET['user&

Re: [PHP] ayuda mysql

2003-02-21 Thread Brad Pauly
d argument is not a valid MySQL-Link resource in >/../messengerphp/cabesera.php on line 88 Creo que su problema es el '/' al fin de 'misito.cl/'. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] application security

2003-02-18 Thread Brad Pauly
/articles/web_app_security.php If you have any comments on it I would like to hear them. And a quick thanks to Chris Shiflett for his input. Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with authentication 'design'

2003-02-18 Thread Brad Pauly
x27;s session. One possible way of doing this would be to create a sort of fingerprint (like an md5 hash) of the client based on the HTTP headers that the client sends. Then store the fingerprint in a session variable and check it on each request. User-Agent and Accept-Language might be good choic

RE: [PHP] PHP 5

2003-02-18 Thread Brad Young
Your best bet is to view the recorded on-line seminars that Zeev Suraski gave on this subject. Go to: http://www.zend.com/iseminar.php View these ones: The Future of PHP and the Zend Engine 2 The Future of PHP and the Zend Engine 2 - Part 2 Examples and tutorials Brad

[PHP] LDAP authentication to NDS

2003-02-17 Thread Brad Harriger
Is there any way to find out what privileges a user has to an NDS object throught LDAP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP error messages

2003-02-15 Thread Brad Esclavon
I am getting this error message when i use file() to convert a text document to an array. Warning: file("http://www.something.com/the_filename.txt";) - Error 0 in /nfs/cust/directory_structure/index.php on line 21 I have looked on google and on php.net/docs for information on this problem (error

[PHP] passing a query string to a popup window problems

2003-02-11 Thread Brad Esclavon
I am trying to pass 2 variable values(username and userpassword) to a popup window to display those values when a button is clicked. When the window pops up, the variable names aren't displayed because they havent been passed. Here is the code: onclick="window.open('http://www.bluedorado.com/bdnfo

[PHP] Thanks problem solved

2003-02-05 Thread Brad Esclavon
once removed from same directory as the login page, the secured page was secure -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Redirecting errors

2003-02-05 Thread Brad Esclavon
I have written a script that validates a username/pwd input and if usr/pwd is correct, includes the protected page, or if usr/pwd is wrong, input page reloads the form onto itself with a form submit. all of the code is correct, except that the secured page is viewable from the internet if i explic

Re: [PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Brad Pauly
> Hi! Is there a way to do the decryption of the encrypted data with the use > of md5()?? Nope. md5 is a one way function. http://www.faqs.org/faqs/cryptography-faq/part07/ Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[Fwd: Re: [PHP] Number Sign in String Variables]

2003-01-18 Thread Brad Pauly
Oops... -Forwarded Message- From: Brad Pauly <[EMAIL PROTECTED]> To: Joab Stieglitz <[EMAIL PROTECTED]> Subject: Re: [PHP] Number Sign in String Variables Date: 18 Jan 2003 16:40:40 -0700 > OK. I urlencoded the URL and now the URL passes correctly... > > add_t

Re: [PHP] Number Sign in String Variables

2003-01-18 Thread Brad Pauly
y suggestions to get around this? You could use urlencode() and urldecode(). http://www.php.net/manual/en/function.urlencode.php http://www.php.net/manual/en/function.urldecode.php Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions or Cookies?

2003-01-18 Thread Brad Pauly
a client, a session identifier will be passed via URL variable unless session.use_only_cookies is enabled in php.ini. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include question

2003-01-15 Thread Brad Bonkoski
It would probably be best to include the absolute path to the images. so instead of: use: Is something like that possible? Otherwise at the very least you should use: HTH -Brad Ryan wrote: > Hello all, > > I'm have a PHP script that works in a folder.. for the sake of clarity we&

Re: [PHP] All Request to the same script

2003-01-15 Thread Brad Pauly
_rewrite module can be very powerful in doing > things like you propose. Yes. I use mod_rewrite to do this. If you have access to httpd.conf, that is the best place to put rules. You can also put rules in .htaccess if that is your only option, however, you take a performance hit for doing i

Re: [PHP] Automated Php Page

2002-12-18 Thread Brad Bonkoski
with fwrite() and some of your HTML formatting. Is there anything else specific? If So, post it. Good Luck -Brad [EMAIL PROTECTED] wrote: > Still a php newbie here > > I am creating a website set on an intranet server. I have to create two pages > that consists of the following

Re: [PHP] key pairs

2002-12-17 Thread Brad Bonkoski
the Bill to and Ship to are the same, which you would key off of and if so, assign the same Unique Address ID to both fields in the master table. Many ways to do this, but those are my thoughts -Brad "1LT John W. Holmes" wrote: > > >Hopefully the other solution worked f

Re: [PHP] printf %d

2002-12-13 Thread Brad Bonkoski
Read: http://www.php.net/manual/en/function.printf.php (On of the user contrib notes has an example) Or pick up a copy of "The C Programming Language" by Kernighan and Ritchie for a more complete description. -Brad William Martell wrote: > Hello All. > > Can anyone tell me wh

Re: [PHP] SSL, PHP, & MySQL

2002-12-13 Thread Brad Bonkoski
experience with it. do a search on some MYSQL mailing lists for some insight. Or ask on the PHP-DB mailing list and you may be able to target a better qualified audience. -Brad Joshua Minnie wrote: > What about utilizing an encrypted text file then. Would there be anything > wrong with doing

Re: [PHP] SSL, PHP, & MySQL

2002-12-13 Thread Brad Bonkoski
I think you may need to read: http://www.php.net/manual/en/function.mysql-connect.php It appears that the SSL client flag for connecting to MYSQL is not available until 4.3.0, but you can pick up the 4.3.0RC3 version now, and test it out! I _think_ this is what you are looking for. HTH -Brad

Re: [PHP] Newer version of PHP causing code incompatibilities

2002-12-13 Thread Brad Bonkoski
Check out the php.ini configuration file, or read about it at the website. I do believe there is an option there where you can declare what your script delimeter is. Most notable an option called "Short open tag" HTH -Brad Paul Keenan wrote: > All of our pages which were previous

Re: [PHP] PHP/MySQL Interaction

2002-12-12 Thread Brad Bonkoski
apter/manual_Introduction.html#ANSI_diff_Sub-selects This may help you out in potentially re-writting your query? possibly: select images.* from images LEFT JOIN categories on images.id = categories.id where categories.cat = 3 AND catdgories.cat != 5 HTH -Brad David Freeman wrote: > Hi All > > This i

Re: [PHP] Re: Nigerian oil scams

2002-12-12 Thread Brad Bonkoski
Of course Identity theft is another issue Classic email scam to get people's bank account numbers. I think I have seen such on this mailing list about 2-3 times over the past couple of months. Jason Wong wrote: > On Friday 13 December 2002 06:58, Russ Taylor wrote: > > Got to love people who

Re: [PHP] MySQL error

2002-12-12 Thread Brad Bonkoski
Well, are you getting a valied response from the database? Perhaps it would be nice to add some error handling into your code... i.e.: $mysql_result = mysql_query($query, $mysql_link) or die("Invalid query: $query"); or echo out mysql_error(); GWAD Mailinglist wrote: > Hi, > > I have following

Re: [PHP] validate querystring

2002-12-11 Thread Brad Bulger
you could try doing $realfilename = realpath($fname); if (strpos($realfilename, $the_valid_path_to_my_file_directory) !== 0) { // bad file name, like /etc/passwd } elseif (is_dir($realfilename)) { // bad user looking at directory } On Thu, 12 Dec 2002, Dara Dowd wrote: > Hello,

Re: [PHP] Using fopen() to open a php file with variables.

2002-12-11 Thread Brad Bulger
if you have URL wrappers enabled, do $fp = fopen("http://path/to/your/file/$calendar_file";, 'r'); On Wed, 11 Dec 2002, Jay (PHP List) wrote: > Okay, I need to retrieve the output of a php file with variables being > passed to it. Example: > > $calendar_file = "make_calendar.php3?month=$month&

Re: [PHP] Forms

2002-12-10 Thread Brad Bonkoski
Have you tried echoing out the value on the resulting page, i.e. the page that parses the form? echo $_POST['name']; What does that give you? I don't see anything that really jumps out at me with your code. -Brad "Beauford.2002" wrote: > Hi, > > I'm sen

Re: [PHP] Good eve

2002-12-06 Thread Brad Bonkoski
Check out: http://www.php.net/manual/en/function.mktime.php HTH -Brad "Miguel Brás" wrote: > I have a table with several field, one of them has a date insertion on the > d/m/y format. > I would like to return only the data for the present day (today will be date > 05/12/02

Re: [PHP] Hiding Errors

2002-12-05 Thread Brad Pauly
errors however you like. http://www.php.net/manual/en/function.set-error-handler.php HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Post Variables

2002-12-04 Thread Brad Bonkoski
x27;t work. Any thoughts on if something like this is doable? obviously in raw HTML it looks like: ?? because I can do: echo $_POST['1'] and get the correct value, but I would like it to get the value of $i? Thoughts? Thanks -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php5 features?

2002-12-03 Thread Brad Young
>php5. >I'm particularly interested in what's gonna be added >or changed to php in regards to >its OOP capabilities. __ Brad Young Director, Product Marketing [EMAIL PROTECTED] www.zend.com Zend - The PHP Company -- PHP General Mai

Re: [PHP] MySQL Error

2002-12-01 Thread Brad Bonkoski
with a different user? http://www.mysql.com/documentation/mysql/bychapter/manual_MySQL_Database_Administration.html#Adding_users HTH -Brad Stephen wrote: > Hello, > > I just recently switched to IIS from Apache since IIS came with Windows XP > and I just love Microsoft. I installed P

Re: [PHP] Php Search Engine

2002-11-25 Thread Brad Pauly
On Mon, 2002-11-25 at 08:31, [EMAIL PROTECTED] wrote: > I am in need of a search engine. I'd rather do one in PhP. Is there one > available that I can see or at least get the code for? This article might help. http://www.onlamp.com/pub/a/php/2002/10/24/simplesearchengine.html Bra

[PHP] _POST incorrect output...

2002-11-13 Thread Brad Apps
Hey Again, I am doing the output from a _POST array and it seems to replace all spaces and '.'s in the file names with '_'. so a file name brads doc.htm outputs as brads_doc_htm. Any suggestions, PLEASE. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] fsockopen() to ssl port gets protocol error

2002-11-12 Thread Brad Bulger
i'm doing a POST to an https server using fsockopen(). after doing the writes, i do fread($fp, 4096) until feof($fp) returns true. this seems to work fine, except that i get an SSL protocol error on the last read. can anybody with a better understanding of this give me an idea why that's happenin

RE: [PHP] zend studio (erro)

2002-11-11 Thread Brad Young
e function mssql_connect() is not a core php function, so the local debugger doesn't recognize it. All you have to do is use the server debugger, where you have all the php extension modules actually installed. Brad >-Original Message- >From: dark rotter [mailto:darkrotter@;yah

Re: [PHP] re: W3C and PHP

2002-11-09 Thread Brad Thomas
Alternatively, you could set php.ini to use the semi-colon (;) to seperate arguments. HTH Brad "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:Pine.LNX.4.44.0211082246320.2586-10@;www.lerdorf.com... > and in your php.ini file add: > > arg_separator.outpu

[PHP] Looping through formfields...

2002-11-09 Thread Brad Apps
Hey Guys, Can anyone please point me to any URLs or give me some code which will loop through form fields and delete the particular file which is passed from the form. The user will click a checkbox next to each file needed deleting and we must perform a unlink() to each file. Thanks. -- PHP

[PHP] php header function...

2002-11-08 Thread Brad Apps
Hey, Got a problem using the header function on a file upload page to redirect the user back to a web page. Here's the code: #!/usr/bin/php -q http://www.webfusion.net.au...";); else print("Error"); Any ideas on how i would get this to work. The error which shows is Warning:

Re: [PHP] Firewall Question

2002-11-05 Thread Brad Bonkoski
I would say, it depends on your configuration. See if you can get this info from you configuration file, if not, fire up the server and run 'netstat -pna | more' and see if that tells you what port you are trying to use. HTH -Brad Stephen wrote: > This isn't exactly PHP

Re: [PHP] Looking for an open source PHP editor on linux

2002-10-25 Thread Brad Pauly
I think Glimmer is pretty good. http://glimmer.sourceforge.net/ Brad On Fri, 2002-10-25 at 07:49, Maxim Maletsky wrote: > > VIM :) > > > > -- > Maxim Maletsky > [EMAIL PROTECTED] > > > www.PHPBeginner.com // PHP for Beginners > www.maxim.cx

[PHP] Alt tags in rollover buttons

2002-10-17 Thread Brad Harriger
Is there any way to create ALT tags in secondary nav bars with rollover images? (NOF 7) Thanks in advance, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PhpMyAdmin Help Needed

2002-10-16 Thread Brad Bonkoski
sounds like an apache config problem to me, if it is not even getting there... perhaps you should check the httpd.conf file to look into the UserDir settings to make sure the path is a web accessible path. -Brad Pushpinder Singh Garcha wrote: > Hi > > I am wanting to use PhpMyAdm

Re: [PHP] passing mysql_error() out put to a different page?

2002-10-15 Thread Brad Bonkoski
what I _believe_ die() looks at /* or at least this is what the manual says the function returns on a query error */ { $error = mysql_error(); Header("Location: logerror.php?op=insert_error&err_value=$error"); } // else continue as normal HTH -Brad Peter Houchin wrote:

Re: [PHP] passing mysql_error() out put to a different page?

2002-10-14 Thread Brad Bonkoski
variable to another page? ...spark any additional ideas?? -Brad Peter Houchin wrote: > howdy, > > I have a page that I want to control the errors etc for a site, now what I > want is to perform a query on one page but if there's an error it opens a > different page with the

Re: [PHP] Pass vars in URL

2002-10-14 Thread Brad Bonkoski
probably register globals is turned off in php.ini for the new PHP version instead of: echo $id; -try- echo $_SERVER['id']; -Brad Gary wrote: > There is not real code to catch it. It is passed to a hidden field in a > form, echoing the id number and then a query based on

RE: [PHP] php mail()

2002-10-14 Thread Brad Dameron
This is being done. And no that is not how sendmail works unfortunately. --- Brad Dameron Network Account Executive TSCNet Inc. www.tscnet.com

RE: [PHP] php mail()

2002-10-14 Thread Brad Dameron
now how to correct it so that it sends the bounces to the person sending it? This is on a virtual host machine with hundreds of domains. Thank you, --- Brad Dameron Network Account Executive

Re: [PHP] Pass vars in URL

2002-10-14 Thread Brad Bonkoski
How about a code snippet of how you are retrieving the variable? -Brad Gary wrote: > Hello, > My host has upgraded to 4.2 but still uses the old ini setting. I am > trying to rewrite my scripts so when the day comes for my host to make > the change I will be ready. Everything ha

Re: [PHP] Re: upgrade problems

2002-10-12 Thread Brad Bonkoski
will have more control over what your variables are set to. Just some food for thought... -Brad abw wrote: > Thanks Brad! Dead on! > > Unfortunately, after the upgrade, the old php.ini was not saved, so I > couldn't compare what the former employee changed in there. I turned

Re: [PHP] upgrade problems

2002-10-12 Thread Brad Bonkoski
scope. For example, to get DOCUMENT_ROOT you'll use $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from the URL http://www.example.com/test.php?id=3 instead of $id, or $_ENV['HOME'] instead of $HOME. Brad Bonkoski wrote: > This should

Re: [PHP] An small SQL problem

2002-10-12 Thread Brad Bulger
what database are you using? because the answer is different, depending. on postgres, for example, which supports subselects, you can do select * from TableA where FieldA1 not in (select FieldB2 from TableB) with mysql, there are no subselects, so you'd have to do something like select TableA

Re: [PHP] upgrade problems

2002-10-11 Thread Brad Bonkoski
This should be a FAQ! I would say it would point to register globals being turned off in php.ini for the newer versions of php. check this pages for more information: http://www.php.net/manual/en/security.registerglobals.php -Brad abw wrote: > This week we upgraded our solaris 8 server us

Re: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Brad Bonkoski
ro so. So, it's more important to protect the actual SOURCE then the information stored in the source. Of course this is a debate that coudl go on forever, when does hardware encryption rule all? -Brad "SHEETS,JASON (HP-Boise,ex1)" wrote: > Storing passwords in MD5 or another ha

[PHP] ZE2 nested classes question

2002-10-08 Thread Brad Bulger
Question about a change coming in PHP 5 / ZendEngine2 : I'm not clear on exactly why you would want to nest class definitions, especially if the proposed change to namespace handling goes away - i.e. you still have to do $this->otherclassfunc() inside a class function, instead of just otherclassf

RE: [PHP] Chat with php

2002-10-07 Thread Brad Dameron
Another way is to use javascript with PHP to pull the database every so many seconds. I have seen this in I think it was PHPChat. Been a long time however. --- Brad Dameron Network Account Executive TSCNet Inc

Re: [PHP] MAIL taking 60 seconds to send... (too long)

2002-10-07 Thread Brad Pauly
Maybe your /etc/hosts file. What does you maillog say? # tail /var/log/maillog Brad On Mon, 2002-10-07 at 10:52, @ Edwin wrote: > Hello, > > Perhaps, a DNS setting problem? > > - E > > On Tuesday, October 08, 2002 1:25 AM > Negretti, John (CCI-San Diego) wrote: &

Re: [PHP] Setting date fields in mysql queries

2002-10-03 Thread Brad Harriger
ted date read from a text field on a form on >> the previous page. When I run the query using mysql_query, it returns >> TRUE each time, but the field is not updated. The only explanation I >> can think of is that there is something wrong with the date value. >> I

[PHP] Setting date fields in mysql queries

2002-10-02 Thread Brad Harriger
TRUE each time, but the field is not updated. The only explanation I can think of is that there is something wrong with the date value. I've echoed it to the screen and it looks fine, but the query still doesn't work. Any suggestions? Thanks in advance, Brad -- PHP General Ma

Re: [PHP] Re: inputbox?

2002-10-01 Thread Brad Bonkoski
ut, I know there are code repositories sitting out there in cyber-space that will have at least something to start off of. -Brad Justin French wrote: > I don't understand. Twice. > > Tell us what you need, slowly and clearly. > > Justin French > > on 02/10/02 10:35 AM, Je

Re: [PHP] PHP version

2002-10-01 Thread Brad Bonkoski
Sorry... I think: http://www.php.net/manual/en/function.phpversion.php will be more inline with what you want... -Brad Alex Shi wrote: > Is there any way to report PHP version? > > -- > --- > TrafficBuilder Network: > http://www.bestadv.net/

Re: [PHP] PHP version

2002-10-01 Thread Brad Bonkoski
perhaps glean it from the SERVER_SOFTWARE variable? -Brad Alex Shi wrote: > Is there any way to report PHP version? > > -- > --- > TrafficBuilder Network: > http://www.bestadv.net/index.cfm?ref=7029 > > -- > PHP General Mailing List (http://www

[PHP] PHP5

2002-10-01 Thread Brad Bonkoski
Hello... Don't know if this has been discussed but I saw a book on PHP5 listed on Amazon, saying that PHP5 would be released in the fall of 2002? Was wondering if there has been any information posted about this? -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] document_root

2002-10-01 Thread Brad Bonkoski
I think: string getcwd ( void) would do the trick. (dirname() requires that you know the path of a file and want to extract just the directory path) -Brad "John W. Holmes" wrote: > OK. My bad. That's why I see DOCUMENT_ROOT on sourceforge is /var/www/, > while my scripts

Re: [PHP] php question

2002-10-01 Thread Brad Bonkoski
here: http://www.php.net/manual/en/faq.general.php#faq.general.what -Brad "John W. Holmes" wrote: > > I am trying to understand in deatil exactly what PHP is, I know that > it is > > a > > scripting markup type language, but. > > > > Is it correct to

Re: [PHP] Freeze a MySQL field?

2002-10-01 Thread Brad Bonkoski
se with another user and grant the "web user" only select permissions on it. -Brad "John W. Holmes" wrote: > > Hi, is it possible to make a certain field in a table or row, so that > the > > content is uneditable after insertion? > > What does this have t

Re: [PHP] document_root

2002-10-01 Thread Brad Bonkoski
document_root is the root path to the webserver. Check out: http://www.php.net/manual/en/function.getcwd.php HTH -Brad Tony Crockford wrote: > Hi > > what exactly does document_root do? > > Does it give to path to the file from the server root? > > or does it give the pa

Re: [PHP] vulnerabilities??

2002-09-30 Thread Brad Bonkoski
Is there such a thing of a software package with no vulnerabilities and/or bugs?? (Windows perhaps :-) The advantage to apache/php is the ability to quickly address those problems once found. -Brad Steve Keller wrote: > At 9/30/2002 06:17 PM, you wrote: > > >Is there any versio

[PHP] PHP Session register variable not always restored with contents

2002-09-30 Thread Brad Hanson
I have been trying to save a variable using PHP sessions. What I find is that while most of the time the variable content is restored and available on the subsequent pages, however there are times that the variable seems to be there but the contents are not. If I hit the browser refresh a couple

<    1   2   3   4   5   6   7   8   >