Re: [PHP] PHP confirmation window

2002-11-30 Thread Jason Sheets
If you are wanting to do it on the client side you will need to do it in javascript, not in PHP. If you just want to make a confirmation screen in PHP you just present an intermediate screen between the requested action and completing that action. An example would be: 1. Administrator clicks del

Re: [PHP] Redirect opening in a new window

2002-11-30 Thread Jason Sheets
Look at javascript, you could use javascript to both open a new window and set the location or you could use javascript to open the new window to a PHP script that uses header() to forward the user. Be aware that some users disable javascript completely or just disable new windows to avoid popups

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. This keeps your form action clean and it also allows you to clea

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 t

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 Ho

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 prin

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: Then visit the page in your browser, now look for:

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 tab

Re: [PHP] exif functions

2002-12-24 Thread Jason Sheets
e.php?file=test.jpg > > Do you think that will work? > Thanx for the help. > > -Dade > --- Jason Sheets <[EMAIL PROTECTED]> wrote: > > Do you get any error messages? Are you sure the > > pictures have > > thumbnails on them? Please elaborate on your > &g

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, 2002-12-27

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 en

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 i

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 v

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 Requi

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 wr

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 to allow your users to input their text you need to either use the nl2br (converts new lines to ) or use tags, following are short examples: print nl2br($data); or print ''; print $data print ''; You can find out more about the nl2br function at http://www.php.net/man

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

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 18:30,

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 storing

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 pro

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. Jason On Sun, 2003-01-12 at 10:32, [EMAIL PROTECTED] wrote: > I want to count characters without space "character". > $char="hello world" > so the result should be 10. > Can anybody help

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 pr

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

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 Do you receive any error messages indicating the file can not be opened for writing or does it silently

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 from

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

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 traffi

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 in

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 in

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 co

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

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

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 i

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 2000-2

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. Note I just scribbled this down so you may need to adapt it but I ran it through a quick test and it worked. Jason On Mon, 2

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. On Mon, 2003-02-03 at 18:15, Philip H

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

2003-02-04 Thread Jason Sheets
Hi Nick, PHP's execution commands like exec will execute the program as the user your web server is running as (generally someone like nobody or www), in order to get it to execute as someone else the program needs to be setuid. Running programs as Root setuid is generally considered dangerous an

Re: [PHP] Printing

2003-02-04 Thread Jason Sheets
If you have setup your printer with lpr then you can send print jobs with PHP via lpr (using command line execution) to the printer. You should be able to use other print systems that offer command line printing as well. Look at the PHP process execution functions for actually executing the print

Re: [PHP] php problem

2003-02-04 Thread Jason Sheets
Hi Aaron, I noticed several things, first you are fetching your database row into $rows but you are referencing the data in $row, and second you do not have a $ in front of your $row variable name, in order to get the contents of a variable you must use $variable. I've included modified code to d

Re: [PHP] Execute at a defined time

2003-02-05 Thread Jason Sheets
Hi Miguel, You can use cron to execute the CGI or CLI version of PHP against your PHP script, for example /usr/local/bin/php example.php, simply create a cron entry that will execute at the desired time. If you need information on the crontab format do a man crontab or search google for cron help

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Jason Sheets
You need only libmcrypt, mcrypt is a command line program that is intended to replace the Unix crypt program. To build the mcrypt binary you need mhash and libmcrypt, for PHP unless you want mhash you need only libmcrypt. Jason On Wed, 2003-02-05 at 07:07, Jean-Christian Imbeault wrote: > Can an

Re: [PHP] FW: Printing

2003-02-05 Thread Jason Sheets
As long as your print system supports it any printer should work. The question should be is a LaserJet 3150 a good choice for what you need to print. Jason On Wed, 2003-02-05 at 16:03, Chris Kay wrote: > > Anyone know if a LaserJet 3150 would be a good choice to print remotely? > > -Origina

Re: [PHP] emulate full post wth redirect

2003-02-05 Thread Jason Sheets
Take a look at curl. http://www.php.net/curl Jason On Wed, 2003-02-05 at 18:10, Shawn McKenzie wrote: > Wow, has it really been a year. No replies??? Any ideas??? Anyone??? > > Thanks! > Shawn > > "Bobby Patel" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]

Re: [PHP] upgrade issues

2003-02-06 Thread Jason Sheets
It looks like your code is using register globals which are turned off by default in PHP 4.2 and greater. You can either modify your code to use the PHP super globals or turn register globals back on (you can do this in php.ini or via an httpd.conf/.htaccess). Jason On Thu, 2003-02-06 at 08:12, B

Re: [PHP] Stupid question, sorry...

2003-02-06 Thread Jason Sheets
Because PHP performs evaluation on the contents of double quotes and does not evaluate the contents of single quotes. This is covered in the PHP manual in the Variables section at http://www.php.net/manual/en/language.variables.php. Jason On Thu, 2003-02-06 at 08:27, Chris Boget wrote: > Why is

Re: [PHP] Permenant Page Generation

2003-02-08 Thread Jason Sheets
Hello msmecca, I would suggest reading the PHP tutorials and then taking a look at the PHP manual. If you want to save and display the same page you can use output buffering to capture the html output of your script. If you are just starting with PHP I would recommend reading tutorials or gettin

Re: [PHP] any windows php developers out here?

2003-02-08 Thread Jason Sheets
You can install PHP + Apache 1.3 on Windows pretty easily. There are instructions in the manual at http://www.php.net/manual and there are also pre-constructed installers that other people make (try www.hotscripts.com/PHP under applications). If you just need to get apache 1.3 installed on redhat

Re: [PHP] PHP Script Encryption!!!!

2003-02-10 Thread Jason Sheets
Hello Pankaj, With PHP you use libmcrypt and the PHP mcrypt functions to do encryption. Basically you need to install libmcrypt (you do not need mcrypt, just libmcrypt) and then add --with-mcrypt=/path/to/install (this is usually /usr/local) to your PHP configuration line. You can check to see i

Re: [PHP] PGP and PHP together???

2003-02-12 Thread Jason Sheets
There is a PHP extension named GPGext for PHP, it uses the gnupg made easy library to make gpg functions available to PHP without executing external programs. It is available at: http://www.sourceforge.net/projects/gpgext/ Jason On Wed, 2003-02-12 at 20:34, David T-G wrote: > Mike -- > > ...and

Re: [PHP] calculating kilobytes

2003-02-15 Thread Jason Sheets
I tend to stay away from executing shell commands when it is not necessary. I've written a script for you that will do what I think you want it to do. It will go n levels deep and get the file size in KB of each file, then it will return that. You can tell the script to ignore certain files (by

Re: [PHP] An "escape special characters" problem

2003-02-15 Thread Jason Sheets
You're problem is that you are enclosing your value for your $algen"; which will solve your single quote problem. You could also addslashes on your value and then stripslashes when you want to operate on it, example '' . $algen . '">'; Jason On Sat, 2003-02-15 at 11:58, Robert E. Harvey, M.D. wro

Re: [PHP] How do I set UID and GID to files.

2003-02-16 Thread Jason Sheets
Use the chown function, chown is documented at http://www.php.net/manual/en/function.chown.php Jason On Sat, 2003-02-15 at 21:00, David Duong wrote: > See topic. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General

Re: [PHP] RSA implementation

2003-02-17 Thread Jason Sheets
If all you are doing is trying to allow a user to change their password you do not need decryption, all you need to do is md5 the new password and update the database. If you really want to use public key encryption take a look at the PHP GPG Exetension or GPG. Again unless you have information t

Re: [PHP] session cookie that never expires

2003-02-17 Thread Jason Sheets
Making your session never expire is a bad idea, by doing this you are most likely going to be using the same session id forever which gives attackers a much longer amount of time to guess or brute force a session id AND you will continue to use hard drive space and inodes on your server because gc

Re: [PHP] Counter has gremlins

2003-02-17 Thread Jason Sheets
You could be having problems with multiple users, if two visitors come at the same time file locking problems come into play, one script could unlink the file at the same time another script tries to open it resulting in an empty file. A database would be a better way to do this, but assuming you

Re: [PHP] MD5 Passwords (How it works?)

2003-02-17 Thread Jason Sheets
If you do a password reset system please remember not to reset the password before they confirm who they are. This means instead of having them entering their login and email address and immediatly resetting their password send the account owner an e-mail with a link that will reset their password

Re: [PHP] session cookie that never expires

2003-02-17 Thread Jason Sheets
You shouldn't store user password in cookies on a browser, instead a more secure method for the user is: On your login form offer the ability to be remembered, if they click the "Remember Me" box generate a unique random ID (or 2 and combine them), now store this ID in your database attached to th

Re: [PHP] Sessions and phplib.

2003-02-17 Thread Jason Sheets
Using the built in PHP 4 session support you can do IP checking on the sessions, in fact you should be able to do IP checking with any session library as long as you do it in your application. Checking the IP when using sessions might give you some additional security but many ISPS use web proxies

Re: [PHP] script to check if server is up

2003-02-18 Thread Jason Sheets
Hi Pete, You could use PHP's command line execution programs to execute the ping command, then either check the output or check the return status of ping, if you do this make sure you pass ping some parameters that will limit the timeout and retries otherwise your PHP script may hang waiting for

Re: [PHP] Protecting files

2003-02-18 Thread Jason Sheets
If the script is readable by the web server (which it must be in order to be parsed) and the web server only runs as one user (which it usually does) then your scripts will be readable by other users on the same server and anyone with command line or telnet/ssh access will have at least read-only s

Re: [PHP] internal site search

2003-02-18 Thread Jason Sheets
I've found Mnogosearch to be very powerful, fast, and relatively easy to setup, of course I was not in a shared hosting environment. Jason On Tue, 2003-02-18 at 07:19, David Otton wrote: > On Tue, 18 Feb 2003 13:35:14 +, you wrote: > > > i wanna make an internal site search, i wanna searc

Re: [PHP] security issues on shared servers

2003-02-18 Thread Jason Sheets
If your hosting provider has enabled safe mode then others can not include scripts that have a different uid than the owner of the current script, that prevents them from including your code. As far as the files go you could checksum them or if you are honestly concerned about them being changed s

Re: [PHP] running code on my machine wile serving other domain?

2003-02-18 Thread Jason Sheets
It is possible but not always a good idea. First every time they go to the application it will have to load the code off the Internet, that depends on your site being up and it will introduce a lot of latency into your program. Additionally a lot of people are not happy about applications phoning

Re: [PHP] Root Commands

2003-02-19 Thread Jason Sheets
Most ways require a program a with root access to execute (setuid root) this is very insecure. I would look at enabling your email program to get the account information from a database like mysql or postgres, that way you need just insert a record into the database. Jason On Wed, 2003-02-19 at 1

Re: [PHP] Root Commands

2003-02-20 Thread Jason Sheets
I would highly recommend against doing this, this would work but it would open you up to allowing your webserver user/php to add any user to your system. This is beyond a bad idea. Jason. On Thu, 2003-02-20 at 06:46, Adam Voigt wrote: > Check out "sudo", with man pages or what not, you use > the

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Jason Sheets
MAC addresses are used for on a LAN and not the Internet. Using a MAC address might work for identification on a LAN BUT in most operating systems you can easily change the effective MAC address on the card. It would probably be better to look for some other form of identification like SSL certif

Re: [PHP] php_mcrypt.dll

2003-02-21 Thread Jason Sheets
The DLL is being provided already, there is no need to compile your own for windows. Windows users interested in using mcrypt can download the required dll files at http://ftp.proventum.net/pub/php/win32/misc/mcrypt/ This is noted in the manual at http://www.php.net/mcrypt Jason On Fri, 2003-02-

Re: [PHP] ob_gzhandler problems under 4.3.0???

2003-02-21 Thread Jason Sheets
PHP is starting output buffering automatically for you and then you are starting it in your script as well, that is why you are receiving the message ob_gzhandler can not be used twice. Use ob_get_level to check if output buffering is not already started. You may want additional logic that chec

Re: [PHP] Re: Live chat screen

2003-02-24 Thread Jason Sheets
There are a lot of free java IRC applets on freshmeat.net, many of them with very nice features. By using a java applet you will reduce some strain on your server, a server side language whether it be Perl, PHP, ASP or anything else is typically not a good way to do chat, especially when there are

Re: [PHP] resizing .jpg file in php

2003-02-26 Thread Jason Sheets
You can use the GD image functions or ImageMagick to resize images. More about GD can be found in the PHP manual at http://www.php.net/manual. Jason On Wed, 2003-02-26 at 07:36, Anthony Ritter wrote: > I'd like to use (with permission) .jpg files from a webcam from another URL. > > Once that URL

Re: [PHP] problem in writing into an html text file

2003-02-26 Thread Jason Sheets
Hello Mike, You will need to better describe your problem and preferably show some source code. What characters are being added to it? You could use str_replace or the regular expression replacement functions but you should not get added characters in general. Jason On Wed, 2003-02-26 at 19:07,

Re: [PHP] non transmitted cookie

2003-02-26 Thread Jason Sheets
Not that I am aware of, it seems you would be better off using SSL, if you are concerned about someone hijacking the sessions you could generate your own session id (I generate random 80 character session ids instead of 32) and also limit the life of the session, you could write logic to change the

Re: [PHP] mcrypt as shared module

2003-02-26 Thread Jason Sheets
Hello Vladimir, you can run phpize in the mcrypt extension directory in your PHP source code, then copy the .so file to your PHP extension dir and either add an extension line to your php.ini file or use dl to load the extension at run time. Generally I just compile it in at PHP configure time as

Re: [PHP] non transmitted cookie

2003-02-27 Thread Jason Sheets
user's client will need to support when you can use SSL which is widely supported already. Jason On Wed, 2003-02-26 at 23:44, Dennis Gearon wrote: > Unless of course, you are listening into the network connection :-) > > Jason Sheets wrote: > > > > Not that I am aware

Re: [PHP] Post method

2003-02-28 Thread Jason Sheets
Curl will let you perform post operationgs, take a look at http://www.php.net/curl. Note you will need to have libcurl installed and PHP will have to be compiled with curl support. There are also probably classes that allow you to do post requests, take a look at the script repositories, hotscrip

Re: [PHP] Is it an apache or a php-problem?

2003-02-28 Thread Jason Sheets
If you are on Unix/Linux when you compile PHP pass the --with-mysql command on your configure line (i.e. ./configure --with-mysql=/usr/local). You might also take a look at the Installation section at http://www.php.net/manual. Jason On Fri, 2003-02-28 at 13:09, Henning wrote: > Hello > I use Apa

Re: [PHP] More Apache than PHP

2003-03-01 Thread Jason Sheets
If your server is IO bound and not CPU bound in most cases it will continue to serve requests as long as the maximum number of concurrent connections is not exceeded or they don't timeout. In any case your server should not give a 404 error because of being I/O bound, 404 means document not foun

Re: [PHP] PHP scripts and the GPL/other licenses

2003-03-01 Thread Jason Sheets
I generally use the BSD license for my code and PHP scripts, in some cases I have used the GPL but IMHO the GPL is too restricting so I live what I preach and release my code under the BSD License. As far as people stealing code and renaming it I've seen several commercial programs that are simply

Re: [PHP] JP Graph

2003-02-28 Thread Jason Sheets
Sounds like a web server configuration problem. If you are using apache make sure your httpd.conf is configured to bind to your external IP address (the default). Jason On Thu, 2003-02-27 at 21:17, K wrote: > Hi all, > I'm using JPGraph on a localhost for a website opened via a host redirect. > M

Re: [PHP] php and html differences

2003-03-02 Thread Jason Sheets
n't have direct edit access to your code. Jason > > > > > > -- > >>O Ernest E. Vogelsinger > >(\)ICQ #13394035 > > ^ http://www.vogelsinger.at/ > > > > > > > > > --- > Outgoing mail is certified

Re: [PHP] php and html differences

2003-03-02 Thread Jason Sheets
Smarty is an excellent template engine, it is available at http://smarty.php.net Jason On Sun, 2003-03-02 at 17:13, Sunfire wrote: > where could i get a templet editor from that is good and fairly easy to use? > > - Original Message - > From: "Jason Sheets" &l

Re: [PHP] how to ssl on php

2003-03-07 Thread Jason Sheets
If you have ssl enabled in apache you can access any of your scripts over ssl, if you want to do ssl related stuff (like generate certificates) take a look at http://www.php.net/ssl Jason On Thu, 2003-03-06 at 19:42, Luis A wrote: > how i can make ssl on php4 ??? -- Jason Sheets <

Re: [PHP] Problem

2003-03-07 Thread Jason Sheets
on an access db through ODBC. It works fine at home where i > have a system link to the db. > On the iis server the admin created the same link but the damed thing > doesent work. > > any suggestions would be great. > > I dont know if there is any difference. -- Jason Sheets

Re: [PHP] file_exists() question

2003-03-08 Thread Jason Sheets
w[id].doc')){ > > echo "Funding details > >paper"; > > } > > > >This is a path relative to the file calling it, should it be otherwise? > > > >Thanks > >Charles > > > > > >-- > >PHP General Mailing List (ht

Re: [PHP] Re: Text>Image

2003-03-08 Thread Jason Sheets
w to paint the text on the image based on how it appears > in > > the textfile. Any help with this would be helpful. Thank-you for your > time! > > > > -- Jason Sheets <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Easy Way.

2003-03-09 Thread Jason Sheets
110" ; > > Is there a php function to do so instead of doing this: >if( ($i>0)&&($i<10)) { > $i = "".$i ; >} else if( ($i>9)&&($i<100)) { > $i = "000".$i ; > } else if( ($i>99)&a

Re: [PHP] fgetcsv quit working......

2003-03-09 Thread Jason Sheets
error they are getting is this > "fgetcsv(): supplied argument is not a valid stream resource". I don't > know what they did with Apache, but as far as I know, nothing else changed. > > Can anyone offer any advice on troubleshooting this one? > > Chris -- Jason

Re: [PHP] Re: str_replace

2003-03-15 Thread Jason Sheets
makes sense. > | > | - john > | > | Sebastian wrote: > | > This may seem weird: > | > > | > How do I str_replace an include function? > | > > | > I want to replace this line: include("$header"); > | > > | > with nothing .. > | > > | > something like this: > | > > | > $footer = str_replace(" '. include("$header"); .' ", "", $footer); > | > > | > I get errors, any ideas? > | > > | > cheers, > | > - Sebastian -- Jason Sheets <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Performance and Function Calls

2003-03-15 Thread Jason Sheets
echo $v, ''; > } > echo 'C: ', getmicrotime() - $time_start , ''; > > ?> > > On my machine I get numbers like: > A: 0.000907063484192 > B: 0.000651001930237 > C: 0.000686049461365 > > The function call within the loop is slower (contr

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'] . ' ' . $_REQUEST['

Re: [PHP] php and gd

2003-07-01 Thread Jason Sheets
PHP 4.3.2 has GD bundled with it, if you compile it from source do --with-gd to use the bundled library. It sounds like you need to install GD2, you can find it on freshmeat.net or probably find an RPM for your distro somewhere. If you have libjpeg and libpng I've had no problems using the bun

Re: [PHP] safe_mode and file/directory ownership

2003-07-01 Thread Jason Sheets
Take a look at safe_mode_gid, it tells PHP to do safe mode owner checking using the group id rather than user id. safe_mode_gid boolean By default, Safe Mode does a UID compare check when opening files. If you want to relax this to a GID compare, then turn on safe_mode_gid. Whether to use UID

Re: [PHP] Calculating if number is multiple of another number

2003-07-02 Thread Jason Sheets
Using the modulus operator it returns the remainder of a division operator. For example to find out if a number is divisible by 3 do this: if (($number % 3) == 0) { print $number . ' is divisible by 3'; } else { print $number . ' is not divisible by 3'; } If the remainder of dividing the ta

Re: [PHP] ip's behind proxy-server

2003-07-05 Thread Jason Sheets
By design many proxies are designed to allow the client to be anonymous as well as proxy the connection, so they will not ever reveal the clients IP address. Not only that but on some ISPS (AOL) the users proxy may change with each request, making tracking the user by the IP not practical or

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.

  1   2   3   >