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

2003-06-21 Thread Brad Pauly
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] 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] 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. Like most people I learned PHP from php.net

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 help/example for booking program

Re: [PHP] Server-initiated HTTP requests

2003-06-16 Thread Brad Dameron
? header(Location: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 some information about

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] Sent: Monday, June 16, 2003 11:55 AM Subject

Re: [PHP] new window

2003-06-06 Thread Brad Bonkoski
How about: echo a href='something.php' TARGET='_blank'Link/a; 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

[PHP] php and Perl

2003-03-27 Thread Brad Wright
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 -- In wine

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

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 i bacilli

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

[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

[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 unsubscribe, visit

[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

[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] php/mySQL time comparison

2003-03-14 Thread Brad Wright
. 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 verità, nella birra la forza, nell'acqua i bacilli

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'acqua i bacilli

Re: [PHP] Crypting Passwords for storage.

2003-03-13 Thread Brad Bonkoski
. This is 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 string vs the plane

[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

[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] 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). ?php print gethostbyname( 'www.msn.com' ); ? What gives? Brad -- PHP General Mailing List (http://www.php.net

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

RE: [PHP] Zend Encoder

2003-02-25 Thread Brad Young
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 absolutely 100% protected. Brad

Re: [PHP] general question ?

2003-02-24 Thread Brad Bonkoski
-Brad Jonas Geiregat wrote: http://kemu.ath.cx/intranet/login.phps when I press submit everything is OK it works like I want it to work but I'm not happy with the result I see in my url window I see this http://localhost/intranet/login.php?user=kemupasswd=testsubmit=login I don't like

Re: [PHP] ayuda mysql

2003-02-21 Thread Brad Pauly
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

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

Re: [PHP] Help with authentication 'design'

2003-02-18 Thread Brad Pauly
and check it on each request. User-Agent and Accept-Language might be good choices. Here are some others to choose from: http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.3 HTH, 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

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

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

[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

[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

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

Re: [PHP] Sessions or Cookies?

2003-01-18 Thread Brad Pauly
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] Number Sign in String Variables

2003-01-18 Thread Brad Pauly
() 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

[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_to_cart.php%3Fitem_num%3DSTT32700

Re: [PHP] All Request to the same script

2003-01-15 Thread Brad Pauly
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 it that way. http://httpd.apache.org/docs/mod/mod_rewrite.html#InternalAPI - Brad -- PHP General Mailing List (http://www.php.net

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: img src=file.gif use: img src='c:\project\htmls\file.gif' Is something like that possible? Otherwise at the very least you should use: img src='htmls\file.gif' HTH -Brad Ryan wrote: Hello all, I'm have a PHP

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 actions and I'd

Re: [PHP] key pairs

2002-12-17 Thread Brad Bonkoski
that 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 for how to parse the data

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 previously running

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] SSL, PHP, MySQL

2002-12-13 Thread Brad Bonkoski
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 it that way? I

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 what this '%d' refers

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] 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] PHP/MySQL Interaction

2002-12-12 Thread Brad Bonkoski
/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 is probably off-topic

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 =

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] 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 sending this to both lists as I'm not sure where

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 tomorrow will be 06/12/02

Re: [PHP] Hiding Errors

2002-12-05 Thread Brad Pauly
. 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
thoughts on if something like this is doable? obviously in raw HTML it looks like: select name=1option value=/option 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

RE: [PHP] php5 features?

2002-12-03 Thread Brad Young
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 Mailing List (http://www.php.net/) To unsubscribe

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 PHP and MySQL

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 Brad -- PHP

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

[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

RE: [PHP] zend studio (erro)

2002-11-11 Thread Brad Young
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;yahoo.com] Sent: Monday

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

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.output = amp; On Sat, 9 Nov 2002

[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 ?php $filedest = /home/$directory; if (copy($clientfile,$filedest/$clientfile_name)) header(Location:

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 related but close

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 // my Home // my Wish List: ( Get me

[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 PhpMyAdmin for my project

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

2002-10-15 Thread Brad Bonkoski
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_errorerr_value=$error); } // else continue as normal HTH -Brad Peter Houchin wrote: i have tried

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 has been going well

RE: [PHP] php mail()

2002-10-14 Thread Brad Dameron
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 TSCNet Inc

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] 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 id. Very simple

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 error message

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

Re: [PHP] upgrade problems

2002-10-12 Thread Brad Bonkoski
available in the global 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. /quote Brad Bonkoski wrote: This should be a FAQ! I

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 that option on, restarted

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 using

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 hash is an excellent

[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

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: Hello All, I have a script

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] Setting date fields in mysql queries

2002-10-03 Thread Brad Harriger
it to the screen and it looks fine, but the query still doesn't work. Any suggestions? Thanks in advance, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Setting date fields in mysql queries

2002-10-02 Thread Brad Harriger
, 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 Mailing List (http://www.php.net

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 path to the server root? has

Re: [PHP] Freeze a MySQL field?

2002-10-01 Thread Brad Bonkoski
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 to do with PHP and no. ---John Holmes... -- PHP General Mailing

Re: [PHP] php question

2002-10-01 Thread Brad Bonkoski
://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 say that PHP is essentially just C++ code wrapped in PHP blocks which

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 are in /home/groups/p/pr

[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, visit

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.net/) To unsubscribe, visit

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/index.cfm?ref=7029 -- PHP General

Re: [PHP] Re: inputbox?

2002-10-01 Thread Brad Bonkoski
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, Jeff Bluemel ([EMAIL PROTECTED]) wrote

[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

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 version of php and apache

[PHP] Re: Displaying full array contents

2002-09-27 Thread Brad Harriger
OK. Now I have something I can work with. Thanks everyone. Brad Brad Harriger wrote: I'm trying to write a function that will display the full contents of an array. If one of the keys contains a value that is an array, the full array (all indices) should be shown. As an example

Re: [PHP] Assigning data to fields

2002-09-27 Thread Brad Bonkoski
I think this should be a good reference for you: http://www.php.net/manual/en/function.mysql-fetch-array.php HTH -Brad Ken wrote: I am kind of new to PHP. I know how to use a select statement and a query to get data out of a table in MySQL, but how do I assign those fields to variables? I

[PHP] Displaying full array contents

2002-09-26 Thread Brad Harriger
than that. Any suggestions? Thanks in advance, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Displaying full array contents

2002-09-26 Thread Brad Harriger
Debbie, Yes. I could use recursion, but what's really hanging me up is keeping track of how deep into an array I am. It should be fairly simple, but I seem to be having a brain freeze. Brad Debbie_dyer wrote: You could use recursion example:- function printArray($arr

Re: [PHP] Encrypted MySQL passwords

2002-09-26 Thread Brad Bonkoski
it is the same every time it is like doing string compares on the same encrypted value so it authenticates, of course this is also the vulnerability of md5. I suppose that with cracking software and time, someone could get it, but it also might be better then sending it in the clear. -Brad Adam Voigt

Re: [PHP] Editor

2002-09-21 Thread Brad Bonkoski
I like textpad, because it will write files in a Unix friendly way, i.e. none of that annoying ^M at the end of lines! :-) Bryan McLemore wrote: Hi guys, just wondering if anyone could recomend a good editor that is based on windows. Thanks, Bryan -- PHP General Mailing List

Re: [PHP] fopen()

2002-09-19 Thread Brad Bonkoski
I would say that is the best way, or if you have other information there, write to abother directory that is owned by apache -Brad Donahue Ben wrote: I have a php script that tries to write files in a particular directory. When the script writes files the ownership is apache. The problem

<    1   2   3   4   5   6   7   8   >