Re: [PHP] More newbie help - mixing 2 different things into one database

2002-03-21 Thread Jason Sheets
- Original Message - From: Jason Sheets [EMAIL PROTECTED] To: Laurie Landry [EMAIL PROTECTED] Sent: Thursday, March 21, 2002 10:35 PM Subject: Re: [PHP] More newbie help - mixing 2 different things into one database Make sure your $option_block2 is in the variable scope of your

[PHP] Re: comparisons

2002-03-22 Thread Jason Sheets
Hi Warwick I'd suggest looking at the PHP manual, it is available at http://www.php.net. You can look for string functions in the manual. If you were looking for a case insensitive comparision you could use stristr, if you are looking for a case senstivie comparision you could use strstr.

[PHP] Re: Superglobals....

2002-03-23 Thread Jason Sheets
You might remind them that anything under PHP 4.1.2 has a security whole that can be exploited remotely, my web host refused to upgrade until they learned about the security implications of not doing so. Jason David [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: this mailing list

2002-03-23 Thread Jason Sheets
Quite a few, there are 3641 messages in the php-general archive for between 02-01-02 and 03-01-02 this month there are already 3147 messages. If you are concerned about transfer you could use a news client and connect to news.php.net, the news groups are interfaces to the mailing lists that way

Re: [PHP] forms and inputs

2002-03-24 Thread Jason Sheets
As the previous poster said you need to have around your value in your input tag Instead of input type=text name=fname_eng size='20' maxlength='18' value=Jason J you need to be using input type=text name=fname_eng size='20' maxlength='18' value=Jason J Otherwise the browser is only displaying

[PHP] Re: Creating forums in php

2002-03-25 Thread Jason Sheets
Why build one when someone else already has built something that will work? Take a look at www.hotscripts.com, http://php.resourceindex.com and www.zend.com they all have libraries of scripts for PHP. Jason Denis L. Menezes [EMAIL PROTECTED] wrote in message

[PHP] Re: Php.ini

2002-03-30 Thread Jason Sheets
Look at chapter 3 of the PHP manual, it covers specifying PHP configuration in your http.conf or .htaccess files, you can do this per virtual host, per directory or however else you want to do it. Jason Chris Kay [EMAIL PROTECTED] wrote in message

Re: [PHP] Recommendation for PHP Shopping Cart

2002-04-01 Thread Jason Sheets
look at www.hotscripts.com they are a pretty good resource of scripts. Jason - Original Message - From: jeremy spielmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 01, 2002 9:13 AM Subject: [PHP] Recommendation for PHP Shopping Cart I'm looking for an off the shelf

Re: [PHP] FTP

2002-04-04 Thread Jason Sheets
Hi Edward Look at ftp_set_option in the manual, you can access it online at http://www.php.net/manual/en/function.ftp-set-option.php. FTP_TIMEOUT_SEC sounds like it might do what you are looking for. Jason - Original Message - From: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] To:

Re: [PHP] Re: PHP 4.1.2 - does not work. !

2002-04-04 Thread Jason Sheets
Works fine for me, I run PHP 4.1.2 on FreeBSD 4.5 RELEASE and STABLE and Windows 2K and XP all with apache 1.3.x $_SESSION doesn't work on windows but thats already known about. Jason - Original Message - From: R'twick Niceorgaw [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

Re: [PHP] Cannot enter single quotation marks in fields

2002-04-13 Thread Jason Sheets
What happens when you try to enter them? What does the HTML source for your input field look like? Is ' being turned into \' ? Jason - Original Message - From: Denis L. Menezes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:05 PM Subject: [PHP] Cannot enter

Re: [PHP] Passing text info using $PHP_SELF

2002-12-15 Thread Jason Sheets
Rather than using forms to pass information to a script you should consider using sessions instead. In any case if you are going to use forms instead of appending the information to the form action use the input type=hidden field. input type=hidden name=action value=change This keeps your form

Re: [PHP] PGP/PHP

2002-12-16 Thread Jason Sheets
There is actually a gpg PHP module available that makes gpg easy functions available to PHP so you do not need to execute command line programs on plain text files. Remember if you write your data to a plain text file it will temporarily be vunerable to interception by anyone with read access to

Re: [PHP] recommendation needed for dedicated server hosting

2002-12-18 Thread Jason Sheets
For server colocation or dedicated leased servers I would recommend Hurricane Electric, they have an excellent backbone, excellent technical support and friendly sales staff. Their website is at http://www.he.net. For shared hosting I recommend pair networks ( http://www.pair.com ) or Fidelity

RE: [PHP] session life

2002-12-21 Thread Jason Sheets
On Sat, 2002-12-21 at 08:03, John W. Holmes wrote: I'm setting a session with session_set_cookie_params (time()+648); so the cookie should last 70 days+ but the data wasn't returned. from looking in the manual i see that session_cache_expire is used to set or print the current

Re: [PHP] Forms

2002-12-23 Thread Jason Sheets
php.ini can be in several different locations, the best way to identify its location is to ask PHP where it is at (I have seen it in /usr/local/etc, /etc, /usr/local/lib, /usr/local/conf, among others). Construct a php file with phpinfo() like: ?php phpinfo(); ? Then visit the page in

Re: [PHP] MySQL vs PostgreSQL

2002-12-24 Thread Jason Sheets
Both databases work well for what they are intended to do. Either database will have good basic performance, however PostgreSQL has had more advanced features and stability in the past some of which MySQL has worked on gaining. Last I heard there was still issues with complex operations and

Re: [PHP] exif functions

2002-12-24 Thread Jason Sheets
That is the exif_thumbnail() function line. I am pretty sure I am doing it right. Look @ http://kidz.homeip.net/pics/image.phps I'm trying to call it like this: http://kidz.homeip.net/pics/image.php?file=test.jpg Do you think that will work? Thanx for the help. -Dade --- Jason Sheets [EMAIL

Re: [PHP] Just need a link ;)

2002-12-27 Thread Jason Sheets
You might look at the PHP manual, also create a page that executes the phpinfo() function, this will a lot of the variables you may be looking for. Jason On Fri, 2002-12-27 at 10:27, Brian J. Celenza wrote: Hello! I'm looking for a link that contains a list/description of all the built in

Re: [PHP] php app frameworks?

2002-12-27 Thread Jason Sheets
If you go to www.hotscripts.com they have several PHP application frameworks listed. I've investigated PHPLIB, and horde (http://www.horde.org) but wound up creating my own framework because I have not yet found a well documented framework that does what I need it to do. Jason On Fri,

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Jason Sheets
You can also enable output buffering on your middle page, this will allow you to output data and set cookies, send headers, etc at any point in your script. You can enable output buffering globally with php.ini, with an .htaccess for specific directories or use the output buffering functions to

Re: [PHP] Need Help.

2003-01-01 Thread Jason Sheets
Your include path is not setup so that the web server can find the file you are trying to include, if the file is in a sub directory make sure you are properly including it include_once('include/main.php') not just include_once('main.php'). And make sure the file you are trying to include exists

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jason Sheets
Instead of doing a foreach to unset your session variables you can use session_unset(); which will unset all your session variables for you. Additionally if you are wanting to remove a cookie from a visitor's browser you should use setcookie, not unset $_COOKIE, $_COOKIE allows you to access the

Re: [PHP] mcrypt

2003-01-02 Thread Jason Sheets
Actually you should be able to get mcrypt working with PHP on Windows (mcrypt is not distributed with PHP because of the legal issues surrounding exporting encryption). If you visit the PHP manual page for mcrypt at http://www.php.net/manual/en/ref.mcrypt.php you will see the following under

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Jason Sheets
If you do that you might as well just turn on register globals, you should look at the $_REQUEST variable, it combines $_POST, $_GET and $_COOKIE into one array so you can just reference $_REQUEST['variable'] for example $_REQUEST['one']. Jason On Sat, 2003-01-04 at 11:50, Michael J. Pawlowsky

Re: [PHP] web reload

2003-01-05 Thread Jason Sheets
You could use a header() with Location: but why do you need to reload the page? If you already have your data in $form_value then the data is already available to you. If you are using a newer version of PHP ( 4.1) you can reference the information from the $_COOKIE array as well. You could do

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread Jason Sheets
Not to cause a flame war, but, MySQL and PostgreSQL are both excellent choices, MySQL tends to be a lighter less feature rich database while PostgreSQL tends to have more features, perform better under load, etc. You can read a lot about the two databases at google.com and also at postgresql.org.

Re: [PHP] MySQL field to maintain formatting

2003-01-06 Thread Jason Sheets
Assuming you are using a textarea/textarea to allow your users to input their text you need to either use the nl2br (converts new lines to br) or use pre/pre tags, following are short examples: print nl2br($data); or print 'pre'; print $data print '/pre'; You can find out more about the nl2br

Re: [PHP] unlink ($files);

2003-01-08 Thread Jason Sheets
That will usually work on Unix but will not work on Windows. Rather than executing an external program you can use PHP itself to do a recursive delete. There are examples at http://www.php.net/manual/en/function.rmdir.php if you read the user notes you will see several posts about doing this.

Re: [PHP] Re: How can I redirect to another php page

2003-01-09 Thread Jason Sheets
You should always use the exit after a redirect, the browser is not required to go to the new location. If you do not exit your script after you redirect and the browser does not go to the new location you risk the unintended continued execution of your script. Jason On Thu, 2003-01-09 at

Re: [PHP] Session Expiration?

2003-01-09 Thread Jason Sheets
First are you sure the data was not deleted? If the cookie is still set in your browser a new session file will be created with the same session id. I believe you adjust the session gc and the session max lifetime, additionally if you are concerned about someone bookmarking a sessionid or

Re: [PHP] PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Jason Sheets
Not exactly sure why your transactions aren't working but if your script already has an open connection to the database and you issue another call to pg_connect with the same connect string PHP will return the existing connection and should not create another connection to the database, that is

Re: [PHP] count characters

2003-01-12 Thread Jason Sheets
Try the following code, please note you may want to trim() the string as well if it is coming from a user. ?php $char = 'hello world'; $number_characters = strlen(str_replace(' ', '', $char')); ? Jason On Sun, 2003-01-12 at 10:32, [EMAIL PROTECTED] wrote: I want to count

Re: [PHP] php_network_getaddresses()

2003-01-12 Thread Jason Sheets
Include will evaluate the file as PHP code, that most likely is not what you want it to do. Take a look at file_get_contents(), manual page available at http://www.php.net/manual/en/function.file-get-contents. Jason phpSun, 2003-01-12 at 19:36, Stanislav Skrypnik wrote: Hi all, I have the

Re: [PHP] Re: Create unike variables for each record

2003-01-16 Thread Jason Sheets
Yes, the php manual is available at http://www.php.net, session information is available at http://www.php.net/session. Jason On Thu, 2003-01-16 at 20:58, Lars Espelid wrote: Is it possible to register an array as a session variable? If so I think it solves my problem. Thanks. Lars

Re: [PHP] please help

2003-01-19 Thread Jason Sheets
What version of PHP is running on the server, what version did you develop the script with? Do you know if register globals are on or off? You can get a lot of information about PHP by doing ?php phpinfo(); ? Do you receive any error messages indicating the file can not be opened for writing or

Re: [PHP] Check if directory has changed

2003-01-25 Thread Jason Sheets
Hi Carlos, I've written a similar script in the past, except mine was to backup files and then automatically restore them if they were accidentally deleted (I had 75 people that had to modify 1 excel document at least once a day). What I have done is write a script that gets a list of files

Re: [PHP] output of fread() is blank

2003-01-27 Thread Jason Sheets
Hello, The PHP manual page for filesize (http://www.php.net/manual/en/function.filesize.php) mentions that it will not work on remote files. fread will stop once n number of bytes are read or EOF is received so you could set this to the maximum file size (in bytes) that you want to download.

Re: [PHP] Advice on uploaded files

2003-01-29 Thread Jason Sheets
You can do either, many people have responded and given their thoughs on the matter. I personally avoid storing images in a database, the filesystem is better equipped IMO to handle files. On top of the overhead of storing the image in your database you will be creating additional database

Re: [PHP] Encryption using MMCrypt - whats the point?

2003-01-30 Thread Jason Sheets
Not a good idea, you might look at some form of public key encryption where you encrypt the credit card information with the public key and the merchant decrypts it with their private key that is not on the server. You generally do not want to store the information encrypted with mcrypt because

Re: [PHP] Encryption using MMCrypt - whats the point?

2003-01-30 Thread Jason Sheets
Using a PHP encoder or compiling a binary does not make it more secure than storing the IV and encryption key in plain text in a PHP script. The problem is the fact that the encryption cipher requires the same key for encryption and decryption, this is not a problem in many encryption cases but

Re: [PHP] Bug?

2003-01-31 Thread Jason Sheets
Hello Todd, It sounds like register globals are not enabled and your code relies on register globals being enabled, register globals now defaults to off. If you have a recent version of PHP (= 4.1) you should use the super globals, most likely you are looking for $_GET. You could change your

RE: [PHP] Redeclare formatdate

2003-02-01 Thread Jason Sheets
This is a good reason to use include_once and require_once. Jason On Sat, 2003-02-01 at 15:59, John W. Holmes wrote: I have this message coming when calling the page main.php Fatal error: Cannot redeclare formatdate() in /home/virtual/site239/fst/var/www/html/home/not_main.php on

RE: [PHP] Loading CSV data into MySQL

2003-02-01 Thread Jason Sheets
You could create a integer column with an autoincrement flag, then order the rows by this column, that should give you the data in the order it was inserted into the db. Depending on your database there are other ways to do it. Jason On Sat, 2003-02-01 at 18:07, John W. Holmes wrote: On Sat,

Re: [PHP] Barcodes...

2003-02-02 Thread Jason Sheets
You might take a look Pear's Image_Barcode, it uses GD so it should be able to make them in PNG. With PEAR::Image_Barcode class you can create a barcode represent given string. This class uses GD function because of this the generated graphic can be any of GD supported supported image types.

Re: [PHP] How can I display lastmodified for all my php-files?

2003-02-02 Thread Jason Sheets
Take a look at the getlastmod() function, an example of the usage would be: $last_mod = date (F d Y H:i:s., getlastmod()); Then you can print or operate on last_mod any way you want, if you don't want to operate on the date you can just print the return of date. This information is available in

Re: [PHP] how to write clean code.

2003-02-02 Thread Jason Sheets
One resource I've found valuable is the PHP Coding Standard at http://utvikler.start.no/code/php_coding_standard.html To quote the introduction: The PHP Coding Standard is with permission based on Todd Hoff's C++ Coding Standard. Rewritten for PHP by Fredrik Kristiansen / DB Medialab, Oslo

Re: [PHP] Bi-weekly pay period

2003-02-03 Thread Jason Sheets
This code will work for determining if the week is odd or even, it uses Monday for the first day in the week as noted on http://www.php.net/manual/en/function.date.php. ?php if ((date('W') % 2) == 0) { print 'week is even'; } else { print 'week is odd'; } ? Note I just scribbled

Re: [PHP] Re: Bi-weekly pay period

2003-02-03 Thread Jason Sheets
This code *should* do something similar to what Phillip suggested. It will figure out the correct Sunday based on whether the week is odd or not, then it will add the correct number of days to get to either next Saturday or the Saturday after next Saturday. ?php if ((date('W') % 2) == 0) { //

Re: [PHP] list files in a dictory and its subdirectories

2003-02-03 Thread Jason Sheets
An easy way would be to to convert your code to a function and use recursion with an is_dir conditional. Here is a quick example, there are also a few examples in the user notes at the PHP manual for opendir or readdir. function lsdir($dir) { if ($handle = opendir($dir)) {

Re: [PHP] downloading a file using headers

2003-07-30 Thread Jason Sheets
You could use an iframe or you could turn on output buffering, when output buffering is enabled you can send headers after normal output has been sent. Just do ob_start(); at the top of your script. Not the most elegant way of doing it but it would work and not require you to use an iframe.

Re: [PHP] Forking PHP Processes on Unix (PHP4)

2003-08-03 Thread Jason Sheets
PHP can fork on Unix, just not from a web environment. So you need to execute the command from the command line or maybe an exec. Take a look at: http://www.php.net/manual/en/ref.pcntl.php Jason Damien G wrote: Hi Readers, Heres what i'm trying to achieve: A script, that uses multiple

Re: [PHP] logging of mail() function?

2003-08-03 Thread Jason Sheets
This is something you would probably do with your e-mail server, not with PHP. You can log all of the emails sent by your scripts by writing a wrapper around mail though. Basically check your SMTP daemon's documentation whether it be sendmail, qmail or something else and look for auditing or

Re: [PHP] mysql_real_escape_string

2003-08-03 Thread Jason Sheets
dbc looks like a MySQL Connection Resource, a connection returned from mysql_connect. It looks like this function is using the mysql escape function to make sure the data is properly escaped for that particular database. If you use a function other than mysql_real_escape_string you can

Re: [PHP] grabbing variable from bottom to top

2003-08-03 Thread Jason Sheets
You can't get the intended value from a variable that hasn't been defined yet, obviously because you haven't given the variable a value. If you are trying to make something like a counter you may consider one of the following: 1. Insert the value into a database like MySQL or PostgreSQL, 2.

Re: [PHP] Functions in Safe Mode?

2003-08-04 Thread Jason Sheets
The problem is the owner of the script must be the owner of the file that you are accessing. If you fix your file ownership for your news directory or change your php script to be the same owner as the news directoryo you will be able to access the files. Look at the chown command,. you will

Re: [PHP] Re: CURL

2003-08-04 Thread Jason Sheets
In most cases you can make Curl submit the login form itself, in which case Curl would become logged in. You can use Curl to get both GET and POST requests, the comments in the PHP manual are pretty decent. Jason John Ryan wrote: i was more asking for the actual curl commands to do so, i

Re: [PHP] Re: Frequent Mode Switching

2003-08-10 Thread Jason Sheets
Kevin Stone wrote: I used to program that way. The logic and presentation portions of my scripts were combined into one or two monolithic files. That worked well for small projects. But as I got involved in larger projects and had to juggle many code files at once I found that I prefered to

Re: [PHP] Turck MMCache Feedback, Please

2003-08-15 Thread Jason Sheets
Hello Andrei, I've been using Turck MMCache for over 6 months now. I use it on several severs including FreeBSD (2), Windows (1) and Linux (3). I've been very happy with Turck MMCache and as of the last few releases it is actually faster than Zend's product though not by very much (granted

Re: [PHP] Sessions

2003-08-16 Thread Jason Sheets
Just a note, in most cases where you have your own private /tmp it is not the same /tmp PHP uses. You are in a chrooted or jailed environment with a virtual /tmp where usually Apache runs outside this restricted environment , the biggest reason being running a seperate set of Apache processes

Re: [PHP] mod_php issues with security or stablility?

2003-08-17 Thread Jason Sheets
mod_php is the recommended installation for Apache. Thousands of people use mod_php with Apache. When I switched to mod_php from CGI I saw a significant performance increase, also you can not use things like Turck MMCache in CGI mode. In short not that I'm aware of, you might google for it

Re: [PHP] How to open a save-as dialog and then redirect after donwload?

2003-08-19 Thread Jason Sheets
Use PHP's file functions to read the file and output it to the browser, sending the attachment header so it opens the save as dialog. After you finish outputing the file unlink() the file. Another way to do this is to store the files outside your www root, then authorize the user to access

Re: [PHP] HELP! I'm Desperate...

2003-08-19 Thread Jason Sheets
Why not go to a cybercafe every few days or once a week and check on the project? You can also go to Kinkos or your local library, most of them have internet enabled pcs. Jason Michael A Smith wrote: Hi, I'm going off to school and won't have computer access for like 9 months... :-\ .. and

Re: [PHP] Re: naughty words / filter

2003-08-22 Thread Jason Sheets
Try using str_ireplace, it is str_replace but is case insensitive. str_replace and str_ireplace both can take arrays as parameters for the needle, replacement value. The string functions tend to be much faster than regular expressions, in any case you don't need the foreach.. Jason Chris

Re: [PHP] user-defined superglobals?

2003-08-23 Thread Jason Sheets
Someone wrote a php module that did this around 6 to 9 months ago. It was easy to install but you needed access to php.ini. Try using extract with the option to use references so you don't create a copy of the variable just a pointer to it. Jason Matthias Nothhaft wrote: Sorry this all is

Re: [PHP] In need of a script

2003-08-26 Thread Jason Sheets
One thing to be aware of, Location: /newpage.php will probably work with most browsers (I know it works with IE, Mozilla and Opera) but the spec requires an absolute path to the file you are redirecting to including protocol, server, path and file. As Wouter demonstrated you should always

Re: [PHP] password systems

2003-09-03 Thread Jason Sheets
Take a look at pwgen, it is a command line utility that makes it easy to generate random passwords with a user specified length, it can generate random words that are easier to remember or truly random secure passwords with non alpha numeric characters in it. It is available in the FreeBSD

Re: [PHP] Restart Apache with PHP???

2003-09-03 Thread Jason Sheets
More safely maybe, but even that solution could be exploited somewhat easily. The script that writes the file would be better off as a CGI than executed through the Apache module, this would allow you to restrict write access to the directory where the file that triggers the restart is stored

Re: [PHP] register_globals

2003-09-03 Thread Jason Sheets
Rather than turning on register globals system wide I'd use .htaccess to enable register globals for the specific sites or applications that require them. Because the super globals have been introduced the problem with register globals and application security may be more prounounced for

Re: [PHP] Gripe

2003-09-03 Thread Jason Sheets
This isn't really a problem with PHP, you will encounter it with many other languages how is the parser supposed to know you haven't closed a brace until it reaches the end of the file? It doesn't match using indentation like humans do. Indenting code and code syntax highlighting make it very

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Jason Sheets
I wouldn't want to see a limit placed on recursion depth, IMHO it is the responsibility of the programmer to limit recursion not the language itself otherwise the language is limiting the programmer. Another possiblity is hitting the execution time limit, sounds like you are using IE with

Re: [PHP] Question about Error Redirect (URL ShortCuts)

2003-09-04 Thread Jason Sheets
Hi ccj, GET data is passed in the URL, POST data is not so loss of the information would be expected. It sounds like you should use sessions, it is a better way of passing data between pages. Take a look at http://www.php.net/manual/en/ref.session.php Jason ccj wrote: Hi all Based on

Re: [PHP] Encrypt/Serialize Source Code for Sale

2003-09-07 Thread Jason Sheets
I wrote a web based front end to the free Turck MMCache PHP optimizer/encoder, a link is on the main Turck page near the bottom or you can go to http://phpcoder.shadonet.com. Turck was actually beating Zend in performance on the benchmark I ran as of a few releases ago. Jason Charles Kline

Re: [PHP] Remove vars from memory?

2003-09-07 Thread Jason Sheets
I would recommend installing Turck MMCache as well and you will see immediate benefit for almost all PHP applications (assuming you are running mod_php not as cgi), you should get a 2 to 10x performance increase in many cases. MMCache is open source and is available free of charge at

Re: [PHP] Re: Mail() question

2003-09-09 Thread Jason Sheets
You can also use ini_set or .htaccess to increase the max execution time for the PHP script. I have some reports that used to take 5 or 6 minutes to run and this worked well, note though that IE has a timeout where it will close the connection if the page has not finished loading within n

Re: [PHP] Encrypt/Serialize Source Code for Sale

2003-09-09 Thread Jason Sheets
Take a look at Turck MMCache and Zend Encoder, both will require your user to install a free Loader. Turck MMCache is free, Zend Encoder is not, either will make your applications run faster. You should workout good licensing deals with your clients because with enough motivation and time

Re: [PHP] Fatal error: Call to undefined function: mysql_connect()

2003-09-12 Thread Jason Sheets
Are you using the bundled MySQL libraries under Unix/Linux? What version of PHP are you running with what operating system? If MySQL compiled as a module that must be loaded? Jason Naintara Jain wrote: I get this error Fatal error: Call to undefined function: mysql_connect() in one

Re: [PHP] Session stealing, ..

2003-09-12 Thread Jason Sheets
I wrote a custom session handler that encrypts the session before it is stored in /tmp that way even if someone has access to the session files they are useless. It stores the randomly generated encryption key on the user's client base64_encoded, which can be intercepted as well all know but

Re: [PHP] How are variables called in current php?

2003-09-14 Thread Jason Sheets
Looks like that code depends on register globals being enabled which have been off for some time. You can either turn register globals on in php.ini (not recommended) or with an .htaccess file (better than using php.ini not as good as changing the code if that is possible). Information about

Re: [PHP] IP adress problem

2003-09-16 Thread Jason Sheets
Try using global $HTTP_SERVER_VARS at the top of your function or using the $_SERVER super global which is automatically global. Jason Webmaster wrote: Hi, why doesn't this work? ## IP FUNCTIONS ## function assignClientIP() { if (getenv('HTTP_X_FORWARDED_FOR') == '') {

Re: [PHP] output to Excel

2003-09-16 Thread Jason Sheets
PEAR has an Excel Spreadsheet Writer class, view it at: http://pear.php.net/package/Spreadsheet_Excel_Writer Jason Payne wrote: Jackson Miller wrote: Is there a way to output PHP to MS Excel format? -Jac One you can do a dump with mysqladmin save the file as myfile.csv , excel can read

Re: [PHP] globals on globals off (help

2003-09-16 Thread Jason Sheets
You can enable them on a per directory bases with .htaccess, take a look at http://www.php.net/manual/en/configuration.php. I recommend using the .htaccess method rather than globally turning on register globals. Jason Frank Tudor wrote: This is more for a linux group post but I know someone

Re: [PHP] precompile php scripts

2003-09-18 Thread Jason Sheets
Hello, take a look at http://www.turcksoft.com/en/e_mmc.htm. Basically there is a 2 to 10x performance increase generally. I wrote a web based front end to Turck MMCache to make encoding scripts easier, its available at http://phpcoder.shadonet.com If your scripts are database bound you wont

Re: [PHP] Whats wrong with my code?

2003-09-20 Thread Jason Sheets
Sounds like you might have an open { somewhere, PHP can't tell that you have a problem until it reaches the end of the file. Jason Burhan Khalid wrote: Stevie D Peele wrote: Can someone spot what Is wrong with my code? [ trim ] It says Line 195 which is the ? Would it matter I don't have

Re: [PHP] PHP Editor - which to use?

2003-09-22 Thread Jason Sheets
PHP eclipse is also nice, you need eclipse from http://www.eclipse.org and then you install the PHP Eclipse module http://phpeclipse.sourceforge.net. Very easy to install, I am a big fan of Komodo, I also like Vim, Kate and Eclipse. I tried Zend Studio 1 and 2 but it didn't live up to the

Re: [PHP] $_SERVER['UNIQUE_ID'] question

2003-09-23 Thread Jason Sheets
Rather than using this number I'd suggest generating your own, use mt_rand or uniqid to generate a unique series of numbers and then use md5 or sha1 to convert them to a hash (I've generated 128 character session identifiers using a variety of these techniques). You may also convert it to hex

Re: [PHP] Full view of active sessions

2003-09-23 Thread Jason Sheets
I've used this technique quiet effectively in the past. I played around with some timeouts to try to prevent the second user from logging in but because of the nature of HTTP it is very hard to tell when someone has logged out when they don't click the logout button and you wind up

Re: [PHP] How can I auto upload a file to the server?

2003-09-23 Thread Jason Sheets
You might look at SCP using the PuTTY SCP or another SSH client to securely upload the file. You could automate it in a batch file and make a short-cut to the batch file. Doing this over the web is not a good method like John said. If you use SCP you can setup an SSH key so that you are not

Re: [PHP] Accellerators and Encryptors: Taking Scripts to the Next Level

2003-09-24 Thread Jason Sheets
Search the archives for Turck and MMcache, yes they work, the degree differs depending on how much the database is used but you will see a performance increase. Turck is open source and very good, I wrote a web based encoder front end to it http://phpcoder.shadonet.com or you can use the

Re: [PHP] best method to resize images

2003-09-26 Thread Jason Sheets
PEAR has a class for image manipluation, http://pear.php.net. Also there was an excellent class on phpclasses.org that allows you to easily crop, resize, shrink, etc, etc, I can't remember its name but I used it for a while. Dave [Hawk-Systems] wrote: have a situation where clients will be

Re: [PHP] Urgent Help

2003-09-26 Thread Jason Sheets
Hello Ho, If you are using a printer that is postscript enabled (like HP LaserJet's) it is easy. Simply convert whatever you want to print to a postscript file (there are several utilities on freshmeat.net they do this) and then using PHP open a socket to the JetDirect card and send the data.

Re: [PHP] [resource] memory size

2003-09-27 Thread Jason Sheets
Yes, http://www.php.net/manual/en/function.memory-get-usage.php Jason Decapode Azur wrote: Hi, is it possible to get, from a php script, the memory size it takes ? Is there documentations explaining how to manage resources in php ? thanks -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] is this possible?

2003-09-27 Thread Jason Sheets
It sounds to me like you are having them update their information on a central admin control panel for their site. There are a couple problems with your proposed method, first the .php file by default will get parsed by their server before it is sent to you so you will not be able to include

Re: [PHP] IIS Ports

2003-09-27 Thread Jason Sheets
Install ZoneAlarm, and configure your web server to listen to IP 127.0.0.1. If you aren't using ASP and you are using PHP you might consider installing Apache for Windows. If your brother is attempting to exploit you from your LAN set the LAN trust level in Zone Alarm lower so that it is the

Re: [PHP] apache logs reset at midnight

2003-09-27 Thread Jason Sheets
If you are running Linux/Unix check /etc/newsyslog.conf as well, this is a program run from cron that rotates the systems and other daemon log files. Jon Kriek wrote: Rob is aspsoletly correct; this has to be a rotation called from crontab. Jon Kriek http://phpfreaks.com Robert

Re: [PHP] chill out

2003-04-04 Thread Jason Sheets
You aren't required to be subscribed to post to the list, so if you are not subscribed you will not see the FAQ or the discussion about how to post properly. You could make it be sent in the confirmation email when someone first posts to the email address but then you are making the mail

Re: [PHP] any package for lost and found

2003-04-06 Thread Jason Sheets
Take a look at the Classifieds section on www.hotscripts.com/PHP Jason SayOrange.com wrote: I am working on a project that shall have a section for 'Lost and Found' people lists with photographs. Does anyone knows of any package or code that could be reused here. Thanks in advance. -- PHP

Re: [PHP] PHPSESSID Length?

2003-06-29 Thread Jason Sheets
Hi Henrik, Take a look at session_id, you can use it to get or set the session id. Using some of my random generation functions I juse 72 to 96 character session ids for my more secure PHP applications. Remember if you want it to remain secure you need to pass it through SSL, longer keys do

Re: [PHP] Close Connection to Browser

2003-06-29 Thread Jason Sheets
Take a look at register_shutdown_function, it sounds like it might do what you want just be aware that you obviously can't display output once the connection is closed because no one is listening . void register_shutdown_function ( callback function) Registers the function named by function to

Re: [PHP] 2values on form, help in catching as one.

2003-07-01 Thread Jason Sheets
You could do it a couple different ways, if you just want to combine the values the easiest way is: $v_template = $_REQUEST['TemplateOne'] . $_REQUEST['TemplateTwo']; If you want a space between the two values expand on this idea using: $v_template = $_REQUEST['TemplateOne'] . ' ' .

  1   2   3   >