[PHP] fsockopen - how can I specify the local/source port

2007-04-18 Thread Matt
; } else { fwrite($fp, "Test\n"); echo fread($fp, 26); fclose($fp); } ?> Any ideas how I can achieve this? Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] http username

2004-05-02 Thread Matt
> If a user is logged in via http (authentification e.g. with .htaccess and > .htpasswd file), how can i get the username of the current logged in user? Read the manual at: http://www.php.net/manual/en/features.http-auth.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] CONSTANTS and good coding practice

2004-05-21 Thread Matt
> From: "Al" [EMAIL PROTECTED] Friday, May 21, 2004 9:02 AM > Subject: [PHP] CONSTANTS and good coding practice > Can someone explain to me the value of using defined custom constants, > in the context of good coding practice. Constants are useful anywhere you find yourself typing a constant (

Re: [PHP] concatenating strings

2004-05-22 Thread Matt
> From: "Richard Davey" <[EMAIL PROTECTED]> Saturday, May 22, 2004 6:46 AM > Subject: Re: [PHP] concatenating strings > BF> how do I add newline commands in the middle of a text string? > > $message = "My name is " . $myname . "\nMy favorite color is " . $color; > > \n = new line Also "\n" only

[PHP] compose html body with variables

2007-08-06 Thread Matt
g cost for client notification $10.00"; echo ""; } echo "Total cost is $" . number_format($totalcost,2); echo ""; echo "foo Services"; $subject = "Online Freight Quote"; mail($email, $subject, $body, "From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: [EMAIL PROTECTED]: PHP 4.x\r\nMIME-Version: 1.0\r\nContent-Type: text/html; charset=iso-8859-1\r\n"); If anyone could assist me I'd appreciate it very much, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] compose html body with variables

2007-08-06 Thread Matt
Edward Kay wrote: -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: 06 August 2007 15:38 To: php-general@lists.php.net Subject: [PHP] compose html body with variables Hello, I'm trying to compose the body of an html email to use with the mail() function. I'm ru

Re: [PHP] Re: php.ini

2006-11-09 Thread Matt
Adding the line: PHPINIDir "c:/php/" to my Apache configuration file has worked for me on Windows installs, assuming that you are using Apache. On 11/9/06, zerof <[EMAIL PROTECTED]> wrote: Alain Roger escreveu: > Hi, > > everytime i install PHP, my "php.ini" must be installed in "C:\windows\"

Re: [PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread Matt
Just in case you ever need to check the configure line again in the future, you can get at it (even if you've built through the FreeBSD ports) through a phpinfo page. The third section on that page is labeled "Configure Command" and lists all the options used during the build. M

[PHP] Maxing out sessions?

2005-01-24 Thread Matt
you'll log in and go right back to the login page as though you had not logged in yet. What are my solutions to rectify this? The machine itself is not overloaded, just seems like the sessions holding tank is overloaded. ~ Matt -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Matt
d it will just keep returning you to the login page... if I go and wipe /tmp all is fine... What do you make of this? On Mon, 24 Jan 2005 12:34:21 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > Matt wrote: > > I have a high load server which will have anywhere between 500

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Matt
[EMAIL PROTECTED] tmp]$ cat /proc/sys/fs/file-max 52403 On Mon, 24 Jan 2005 15:39:08 -0600, Greg Donald <[EMAIL PROTECTED]> wrote: > On Mon, 24 Jan 2005 16:22:23 -0500, Matt <[EMAIL PROTECTED]> wrote: > > /tmp is not it's own partition... but I have 6Gig free on th

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Matt
That's actually a great idea... I know how to log sessionId... but how would I go about logging why the session couldn't be started (I'm sure that would lead me on somewhat of a track of the issue...)... like is there a variable I should read, or where do I get that information from? -- PHP Gener

Re: [PHP] Maxing out sessions?

2005-01-25 Thread Matt
Ok, Right now if I look at a session I see the following... this is on a mail server.. so this is all mail variables and such... There are currently 319 session files and 1.5MB... you know I'm also wondering now if I didn't read things wrong.. .I wonder if it said 2.0MB not GB yesterday.. that

Re: [PHP] Maxing out sessions?

2005-01-25 Thread Matt
gic answer... just someplace to look for solutions... like things to watch on the server... clearly, it seems, disk space and not even files per directory are even a problem... so On Tue, 25 Jan 2005 10:36:34 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > Matt wrote: > &g

Re: [PHP] How to determine if a script instance is already running?

2005-08-02 Thread Matt
Perhaps "svscan" and its associated "daemontools" programs could be used to monitor the script instead of relying on cron. http://cr.yp.to/daemontools.html On 8/2/05, André Medeiros <[EMAIL PROTECTED]> wrote: > On Tue, 2005-08-02 at 15:09 +0100, Stut wrote: > > André Medeiros wrote: > > > Do like

Re: [PHP] need for $_POST[''] changed after server upgrade

2005-12-12 Thread matt
> On Dec 12, 2005, at 8:21 PM, Ray wrote: >> Hello, >> Thanks Matt, I appreciate your help. your solution is a lot easier >> than mine. >> It's also nice to understand what was happening. I was introduced to >> PHP >> after that type of globals

Re: [PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-20 Thread Matt
Install the "php5-session" port from your ports tree to enable sessions. It's located in "/usr/ports/www/php5-session" on a default install with the port tree. On 12/19/05, John Nichel <[EMAIL PROTECTED]> wrote: > Jose Borquez wrote: > > John Nichel wrote: > > > >> Jose Borquez wrote: > >> > >>

Re: [PHP] most reliable way to test if using https

2006-01-13 Thread Matt
James Benson wrote: What is the most reliable way to test if a connection is already using the https protocol, is their a PHP constant or something builtin already? Thanks, James Something like? if (isset($_SERVER["HTTPS"]) && 'on' == $_SERVER["HTTPS"]) {// ssl } else { // non-ssl } -- P

Re: [PHP] my bugaboo.

2001-02-04 Thread Matt
on to properly escape the characters that need it, something like: $new_data = addslashes($old_data); should work... then when you go to display the information, call stripslashes to de-escape everything: $display_str = stripslashes($new_data); I hope this helps. -Matt At 06:42 PM 2/3/2001

[PHP] Cookies

2001-02-09 Thread Matt
he spelling too, and the page is rather complex, with various nested includes and so forth. PHP version is 4.0 I use both IE 5.5 and Netscape 6, it does the same thing in both of them. Any help or suggestions would be greatly appreciated, this has been bugging the hell out of me. Thanks. --

[PHP] Cookies reprise...

2001-02-09 Thread Matt
problem still persists. I know this is long and boring and tedious crap, so I don't really expect anyone to reply, BUT if any of you have the time or inclination, any help/suggestions/advice would be greatly appreciated. Regards, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] how to know which web dir you're in

2001-02-09 Thread Matt
Your best bet would probably be to use the environment variables getenv("REQUEST_URI") will get you the URL minus the host name, so basically it's the relative path. getenv("HTTP_HOST") will return the hostname (www.whatever.com) Hope this helps. Regards, Matt

Re: [PHP] FTP'ing with function

2002-11-25 Thread Matt Vos
truncate, as some value may look like an EOL/EOF char. Matt - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 25, 2002 3:46 PM Subject: [PHP] FTP'ing with function > I am trying to ftp with php code. The code works, but the file i

[PHP] Shipping Purolator Class?

2002-11-25 Thread Matt Friedman
Hi Folks, Just checking around to see if anyone is using a Purolator web service to determine shipping costs online. Wondering if there are classes available and if the service is hard to use. Thanks very much, Matt Friedman > -Original Message- > From: John W. Holmes [

[PHP] (( Purolator Shipping ))

2002-11-25 Thread Matt Friedman
Hi Folks, Just checking around to see if anyone is using a Purolator web service to determine shipping costs online. Wondering if there are classes available and if the service is hard to use. Thanks very much, Matt Friedman -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] re-writing to the same socket

2002-11-26 Thread Matt Vos
ifier as a global variable/pointer, or pass it through functions with the arguments. Matt - Original Message - From: Gareth Thomas <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 26, 2002 1:26 PM Subject: [PHP] re-writing to the same socket > Hi, > > I

Re: [PHP] decimal places

2002-11-26 Thread Matt Vos
As an addition to that, if you don't want the thousands separator to be ','; do the following: $amount = 1234.567 $fmt1 = number_format($amount,2); $fmt2 = number_format($amount,2,'.',''); echo("$fmt1\n$fmt2"); This will output: 1,234.56 1234.56 Matt

Re: [PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Matt Vos
("\r","", $filerow); $size = strlen($filerow); $row_split = preg_split("/\s+/", $filerow); $value1 = $row_split[0]; $value2 = $row_split[1]; $value3 = $row_split[2]; } Matt - Original Message - From: Lee P. Reilly <[EMAIL PROTECTED]&

Re: [PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Matt Vos
No, fgets() reads to EOL, I use it all the time. fread() will read to EOF, if you let it, as it is binary safe. Matt - Original Message - From: Lee P. Reilly <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, November 26, 2002 4:09 PM Subject: Re: [PHP] Upload proble

Re: [PHP] **** Converting dynamic webpages into static HTML pages

2002-11-27 Thread Matt Vos
/catalog.php product_type=1 product_seq=2 > products.html Matt - Original Message - From: Ron Stagg <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 2:18 PM Subject: [PHP] Converting dynamic webpages into static HTML pages I have an interesting ch

Re: [PHP] **** Converting dynamic webpages into static HTML pages

2002-11-27 Thread Matt Vos
p friendly. The other alternative is to have a script require() the php file, just set your variables in the script, then require('catalog.php'); All code will be executed as if it were part of the script. Matt - Original Message - From: Ron Stagg <[EMAIL PROTECTED]> To:

Re: [PHP] Multidimensional arrays (more and more...)

2002-11-28 Thread Matt Vos
diameter']=$x; $fruits['grape']['color']=$color; $fruits['grape']['diameter']=$x; /*** Grab the keys ***/ $fruit_types = array_keys($fruits); $count = 0; while ($count < count($fruit_types)) { $fruit = $fruit_types[$count]; $color = $fruit

Re: [PHP] XML-RPC, is this the best approach for something like this?

2002-12-01 Thread Matt Vos
- Original Message - From: Jonathan Chum <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 01, 2002 3:27 PM Subject: [PHP] XML-RPC, is this the best approach for something like this? > Hi guys! > > I'm wrapping up a web hosting control panel written in PHP that fills up

[PHP] re: ini_set() / Jason Wong / dynamically setting this?

2002-12-02 Thread Matt Babineau
oad? I'm sure someone must have a solution to this. Thanks, Matt

[PHP] PHP Shipping Rate Question

2002-12-02 Thread Matt Friedman
Hi, I've found a number of UPS rate calculators in php and I'm wondering if anyone has used many shipping calculators written in php. If so, what success have you had? Any stories/recommendations to share? Thanks very much, Matt -- PHP General Mailing List (http://www.ph

[PHP] php shipping rate question

2002-12-02 Thread Matt Friedman
Hi, I've found a number of UPS rate calculators in php and I'm wondering if anyone has used many shipping calculators written in php. If so, what success have you had? Any stories/recommendations to share? Thanks very much, Matt -- PHP General Mailing List (http://www.ph

Re: [PHP] String to an Array

2002-12-06 Thread Matt Vos
A string is an array of characters. In your example, $str[4] == "h". Matt - Original Message - From: Rodrigo de Oliveira Costa <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 1:50 PM Subject: [PHP] String to an Array > Hi guys, I

RE: [PHP] Help on OOP

2002-12-07 Thread Matt Giddings
> -Original Message- > From: Khalid El-Kary [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 07, 2002 6:03 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Help on OOP > > hi, > a function can be defined from inside another function! > this works here: > > > function howru() > { >

Re: [PHP] Flushing Output

2002-12-11 Thread Matt Vos
Try flush() Matt - Original Message - From: Richard Baskett <[EMAIL PROTECTED]> To: PHP General <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002 7:27 PM Subject: [PHP] Flushing Output > Is there a way of flushing output to the browser. So for example, I have a >

Re: [PHP] Automatic include of files containing functions

2002-12-11 Thread Matt Vos
f it were an actual part of your script. Plus it uses whatever is defined in the script's existing memory space (works great for chopping down the # of lines in huge while loops) Matt - Original Message - From: Dave [Hawk-Systems] <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

Re: [PHP] readdir() output question

2002-12-13 Thread Matt Vos
$img_count = 0; echo(" My Images"): (loop through filenames) { if (($img_count % 5) == 0) echo(" "); echo(" "); $img_count = $img_count + 1; } while (($img_count % 5) != 0) { echo("  "); } echo(" ") Matt RClark <[EMAIL

[PHP] Self Highlighting Code

2002-12-13 Thread Matt Hillebrand
Using some borrowed code from www.php.net, I came up with this chunk of code that can be included at the top of a PHP script to make it highlight itself in a web browser. However, the first opening PHP tag in the output has a space or two in front of it. Does anyone know why? .ln{color:#00;wid

Re: [PHP] Re: php --with-gd support

2002-12-17 Thread Matt Brown
> >sorry I am new to PHP where can I find a manual of PHP? Well a few seconds searching Google.com produced http://www.php-faq.com/gdinstall.php Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Continued story on : PHP includes without access to the default directory//Tom Rogers//

2002-12-30 Thread Matt Vos
Just use absolute paths. If your webserver is looking at the root directory, /index.phtml and index.phtml are the same file Matt - Original Message - From: WMB <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 30, 2002 12:03 PM Subject: [PHP] Continued st

[PHP] assigning to $this in constructor?

2002-12-31 Thread Matt Friedman
would return an error object instead of the requested object. Thanks, Matt Friedman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] NFS session file issue?

2003-01-01 Thread Matt Sturtz
, instead of one hour after being updated, even though they're being changed on every click... I can't explain why, but the problem goes away if I touch the session file every 60 seconds. Is there a known issue with using NFS for session files? Thanks, -Matt Sturtz- -- PHP General Ma

Re: [PHP] Session problem

2003-01-01 Thread Matt Sturtz
t in the right directory from the browser's point of view... Just a thought, hope it helps... -Matt Sturtz- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sybase result index invalid

2003-01-06 Thread Matt Cummings
I am having trouble retrieving any type of result using Sybase and PHP. Regardless of function call, I receive the following error: Warning: 1 is not a Sybase result index in /var/apache/ I have successfully executed and retrieved results using the same queries using isql from the command lin

Re: [PHP] progress page

2003-01-06 Thread Matt Vos
ther text you want, but basically that will do it. Bear in mind it will use quite a lot of bandwidth, so keep an eye on your significant digits after you calc the percent. Matt * * * * * * * * * * This message contains information from Techcom Software Solutions Inc. which is confidential and

RE: [PHP] Undefined index a different problem

2003-01-07 Thread Matt Schroebel
Try: echo($GLOBALS[$i]); Or echo "{$GLOBALS[$i]}"; This times it's the array in the double quoted strings ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Matt Vos
What is the ASCII value of an EOF? Find that and use Matt - Original Message - From: Jean-Christian Imbeault <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 5:24 AM Subject: [PHP] Re: EOF: how to generate one in a string > I'm at wit

RE: [PHP] Mysql/php database performance question

2003-01-10 Thread Matt Schroebel
> -Original Message- > From: Simon Dedeyne [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 9:03 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Mysql/php database performance question > So I think I have to reformulate the question: which is > better 5 varchar columns of size

RE: [PHP] Mysql/php database performance question

2003-01-10 Thread Matt Schroebel
> -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 11:04 AM > To: Matt Schroebel > Cc: Simon Dedeyne; [EMAIL PROTECTED] > Subject: Re: [PHP] Mysql/php database performance question > > > char of greater

RE: [PHP] Mysql/php database performance question

2003-01-10 Thread Matt Schroebel
> -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 11:45 AM > To: Matt Schroebel > Cc: Simon Dedeyne; [EMAIL PROTECTED] > Subject: Re: [PHP] Mysql/php database performance question > > > Sure, just tried it

Re: [PHP] Session Expiration?

2003-01-10 Thread Matt Silva
it cleaned up the expired session of the first browser, thus any other activity on the first browser would cause the browser to go back to the login page. Thanks for your reply Matt - Original Message - From: "Jason Sheets" <[EMAIL PROTECTED]> To: "Matias Silva&quo

RE: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Matt Schroebel
> -Original Message- > From: Jeff Lewis [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 15, 2003 1:00 PM > To: Beauford.2002; PHP General > Subject: Re: [PHP] Windows PHP vs Linux PHP > > > Set your php.ini file and error reporting as such: > > error_reporting = E_ALL & ~E_NOTIC

RE: [PHP] Problem with a for loop...

2003-01-16 Thread Matt Schroebel
> -Original Message- > From: Davíð Örn Jóhannsson [mailto:[EMAIL PROTECTED]] > Sent: 16. janúar 2003 13:59 > Subject: RE: [PHP] Problem with a for loop... > > I only want the last inserted row in the mysql database, and each time > the script goes trough the loop it adds a new row into th

RE: [PHP] Imagecreatefromjpeg()

2003-01-16 Thread Matt Schroebel
> > Header("Content-type: image/jpeg"); > $im = ImageCreateFromJpeg('1234_1.jpg'); > ImageJpeg($im);?> > > The file is in the folder, it has execute and write > permissions set, and the error given is "The image > cannot be displayed, because it contains errors.", > which is not very useful.

RE: [PHP] Header sent polem

2003-01-17 Thread Matt Schroebel
> -Original Message- > From: Cesar Aracena [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 17, 2003 12:56 PM > Subject: [PHP] Header sent polem > > > Hi all, > > Following Chris's idea on how to handle visitors sessions, > I'm trying to > setup a cookie with a randomly generated ses

Re: [PHP] download script

2003-01-21 Thread Matt Vos
e','r'); while ($byte_count < $resume_bytecount) { fread($fp,1); $byte_count = $byte_count + 1; } while(!feof($fp)) { print(read($fp, 8192)); flush(); } Simple, read the file until resume point Then, send the file with an 8k blocksize (standard I believe, cha

RE: [PHP] File upload problem

2003-01-21 Thread Matt Schroebel
> -Original Message- > From: John M [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 30, 2003 3:05 PM > To: [EMAIL PROTECTED] > Subject: [PHP] File upload problem > > > Hello, > > I have the code below. It's a simple file upload. But it doesn't work. > Before the line if(isset( $Submit )

RE: [PHP] Need help.

2003-01-22 Thread Matt Schroebel
> -Original Message- > From: thkiat [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 10:23 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] Need help. > > > Can someone tell me what should I do to solve this problem? > > Warning: mysql_fetch_row(): supplied a

RE: [PHP] mysql_fetch_row problem

2003-01-23 Thread Matt Schroebel
> -Original Message- > From: Bryan Brannigan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 9:03 AM > Subject: [PHP] mysql_fetch_row problem > $db = mysql_connect("localhost", "webapp"); > mysql_select_db("helpdesk",$db); > $result = mysql_query("SELECT contactemail FROM l

RE: [PHP] apache webprotect logout

2003-01-27 Thread Matt Schroebel
> -Original Message- > From: Tommy Jensehaugen [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 27, 2003 10:32 AM > To: [EMAIL PROTECTED] > Subject: [PHP] apache webprotect logout > > When I browse to this folder I get a popup to type my name > and password > in( automatic popup by in

RE: [PHP] HTTP_GET_VARS[]

2003-01-30 Thread Matt Schroebel
> -Original Message- > From: Mike Tuller [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 11:02 AM > Subject: [PHP] HTTP_GET_VARS[] > The issue I am > having now is that I have the editsoftwareassest.php's form > action set > to POST to a script called updatesoftwareasset.

RE: [PHP] HTTP_GET_VARS[]

2003-01-30 Thread Matt Schroebel
> >> $query = "UPDATE assets SET title = '$title', version = '$version', > >> developer = '$developer', serial_number = '$serial_number', WHERE > >> asset_id = '$HTTP_GET_VARS[id]'" ; > > > > Change the var to '{$HTTP_POST_VARS['id']}' (with the curly braces > > since > > the array reference is i

RE: [PHP] while loop- will this work?

2003-01-30 Thread Matt Schroebel
> -Original Message- > From: SpyProductions Support Team [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 12:57 PM > To: [EMAIL PROTECTED] > Subject: [PHP] while loop- will this work? > > > > > Should this work? > > $f1 = rand(999,999); > > while($check_si

RE: [PHP] checkboxes and php...

2003-01-31 Thread Matt Schroebel
> -Original Message- > From: Mr. BuNgL3 [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 31, 2003 8:43 AM > To: [EMAIL PROTECTED] > Subject: [PHP] checkboxes and php... > > > Hi... > can you give me some lights in this subject? How checkboxes > work with php? > Or where i can find som

RE: [PHP] How to compare 2 strings

2003-02-03 Thread Matt Schroebel
> -Original Message- > From: Roman Duriancik [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 03, 2003 9:31 AM > Subject: [PHP] How to compare 2 strings > > How to compare 2 strings in PHP > I hawe 2 array where I have only string values some values in > both arrays > are same but

[PHP] Make an MDB File on the Fly

2003-02-03 Thread Matt Babineau
I have a client that currently gets MDB exports of their database to run reports and mail merges with. Has anyone heard of or have any idea of how to make an MDB (Access Data File) on the file from PHP or any other scripting language? Thx- Matt

RE: [PHP] tracking bulk email

2003-02-04 Thread Matt Schroebel
> -Original Message- > From: Lowell Allen [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 03, 2003 12:38 PM > To: PHP > Subject: [PHP] tracking bulk email > (1) My client is nervous about the script failing mid-list > and not being > able to determine which contacts were sent mail. I

[PHP] possible mail() bug

2003-02-11 Thread Matt Phillips
script that looked that this: it would always show sent, but the message never arrived. My orginal script used PEAR, but since PEAR uses the mail() I think that this is problem. Matt Phillips -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RSA implementation

2003-02-12 Thread Matt Vos
sent by the user as a password, then the user is authenticated. In this way the user can easily change their password, as well you get (seemingly) random authentication encryption. Or just try SSL. Matt - Original Message - From: Chris Hewitt <[EMAIL PROTECTED]> To: José León Se

RE: [PHP] Process array after form submission problem

2003-02-13 Thread Matt Schroebel
> -Original Message- > From: Steve Jackson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 13, 2003 2:10 PM > To: Php-General > Subject: [PHP] Process array after form submission problem > > > Hi, > > My problem is that I have a dynamic form with vars which I > want to process.

[PHP] search results from another site

2003-02-15 Thread Matt Holmen
Is there any way to use PHP to do the following.. Strip the results of a page (ie a search on another site) and then display them on your site the way you want to. Similar to the command used in Coldfusion? Thanks Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] RSA implementation

2003-02-17 Thread Matt Vos
d for some reason you can't run SSL, then upgrade the box (altho I don't think you would really need to). Matt - Original Message - From: José León Serna <[EMAIL PROTECTED]> To: Jason Sheets <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 17

Re: [PHP] RSA implementation

2003-02-20 Thread Matt Vos
So forward the ports (80,443) to a box that u can run a webserver on, then you can user SSL. Matt - Original Message - From: José León Serna <[EMAIL PROTECTED]> To: Matt Vos <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, February 20, 2003 5:28 AM Subj

[PHP] Logging Referer

2003-02-21 Thread Matt Honeycutt
I'd like for the counter to work even when included in static HTML pages, so the including page cannot use any PHP to help facilitate this logging functionality. I hope all that makes sense. Anyone have any suggestions on how to achieve what I'm after? ---Matt -- PHP Genera

RE: [PHP] Logging Referer

2003-02-21 Thread Matt Honeycutt
Yeah, I had thought about using JavaScript. I had hoped that there was another way, but if there is, I can't figure it out. ---Matt -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 8:37 PM To: Matt Honeycutt; Php-General Subject: Re:

RE: [PHP] Re: including in shtml

2003-02-21 Thread Matt Honeycutt
If you figure out how to do this successfully, please share. I'm forced to use SHTML for my error pages (404.shtml and whatnot), but I'd like to get those to interact with PHP as well. ---Matt -Original Message- From: Hans Prins [mailto:[EMAIL PROTECTED] Sent: Friday, Februar

RE: [PHP] Re: including in shtml

2003-02-21 Thread Matt Honeycutt
I'll check, but I'm pretty sure my host only allows me to edit the existing *.shtml files to customize my error pages. I don't think it will allow me to set the error pages to different URL's. ---Matt -Original Message- From: John W. Holmes [mailto:[EMAIL PROT

RE: [PHP] Displaying images

2003-02-22 Thread Matt Honeycutt
Robert, The image functions do indeed work, check the PHP docs for more info: http://www.php.net/manual/en/ref.image.php However, your server must have the GD libraries installed and PHP must be properly configured. The docs should be a good starting point if nothing else. ---Matt

RE: [PHP] Help with Multiple Checkboxes

2003-02-23 Thread Matt Honeycutt
Yup, id is a valid attribute for virtually every HTML tag. I can't remember for sure which W3C specification that was in, but you can refer to most elements through JavaScript by using their ID's in both IE and Netscape 6+. ---Matt -Original Message- From: John Taylor-Johnst

[PHP] Another Logging Question

2003-02-23 Thread Matt Honeycutt
nfo into a DB (probably MySQL), then process the data whenever the administrator wants to view his stats. Anyone have any suggestions or considerations on which method would work better? Is there something else I should do instead? Thanks for any input, ---Matt -- PHP General Mailing

[PHP] ftp browsing

2003-02-23 Thread Matt Palermo
ne give me some advice? I would really appreciate it. Thanks. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ftp browsing

2003-02-23 Thread Matt Palermo
I am using Windows XP Pro, and I am using Serv-U to run my FTP server. It is just a server running from my machine. Is it supposed to have PHP installed somewhere? -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 9:05 PM To: Matt Palermo

RE: [PHP] ftp browsing

2003-02-23 Thread Matt Palermo
The web server is RedHat Linux and it's PHP version 4.2.3. -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 9:21 PM To: Matt Palermo; [EMAIL PROTECTED] Subject: RE: [PHP] ftp browsing > I am using Windows XP Pro, and I am using Serv-

RE: [PHP] Another Logging Question

2003-02-23 Thread Matt Honeycutt
be the best way to go though as it keeps me from having to even think about file locking issues. ---Matt -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 5:12 PM To: Matt Honeycutt; Php-General Subject: Re: [PHP] Another Logging Question

RE: [PHP] Another Logging Question

2003-02-23 Thread Matt Honeycutt
e a toggle to have the counter grab statistics directly from Apache's logs, but that's going to be much later on after I finish up some other projects. ---Matt -Original Message- From: David Freeman [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 5:44 PM To: 'Ph

RE: [PHP] server hostname

2003-02-23 Thread Matt Honeycutt
This information is quite easy to find in the PHP docs. You are looking for $_SERVER['SERVER_NAME'], which is a predefined variable. ---Matt -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 8:24 PM To: [EMAIL PROTECTED] Sub

RE: [PHP] text file reading and overwrite

2003-02-24 Thread Matt Honeycutt
I can't tell you anything about your problem without knowing what's going on (error messages are helpful). As for overwriting a file, just use: fopen($filename,"w"); The "w" option tells it to open the file for writing and to truncate it to zero-length. ---Matt,

RE: [PHP] having php auto load a page

2003-02-24 Thread Matt Honeycutt
Look up the header() function in the docs. Basically, you would do this: if($logged_in_ok) header("Location: ".$url_to_go_to); There are some things to note when using header, so again, check the docs before you use it. ---Matt, XPODesigns.com -Original Message- Fro

RE: [PHP] One more string question

2003-02-26 Thread Matt Honeycutt
Trying using stripslashes() on the string variable prior to displaying it. That *might* not work for you, but I'd try that first. ---Matt -Original Message- From: Gregory Chagnon [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:12 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Emacs?

2003-02-26 Thread Matt Giddings
Don't you mean 42? > -Original Message- > From: Larry Brown [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 7:55 PM > To: PHP List > Subject: RE: [PHP] Emacs? > > 25 > > -Original Message- > From: Sascha Braun [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25,

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

2003-02-27 Thread Matt Honeycutt
Check stripslashes(), I think that will help you. ---Matt -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 4:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] problem in writing into an html text file this code add a backslashes in all

RE: [PHP] re: strip comma from $value

2003-02-28 Thread Matt Honeycutt
lue ) { if(strstr($value,",")) { $value = ereg_replace(",","",$value); echo "comma stripped"); } } Give that a shot and see if it works (I didn't test it, but it should). ---Matt -Original Message---

RE: [PHP] re: strip comma from $value

2003-02-28 Thread Matt Honeycutt
a stripped"; } } -Original Message- From: Matt Honeycutt [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:56 AM To: php Subject: RE: [PHP] re: strip comma from $value ereg_replace returns a string, regardless of whether or not any replacement occured. If n

RE: [PHP] re: strip comma from $value

2003-02-28 Thread Matt Honeycutt
is (this should work): for($i=0; $i < size($numeric_array); $i++) { if(strstr($numeric_array[$i],",")) { $numeric_array[$i] = ereg_replace(",","",$numeric_array[$i]); echo "comma stripped"; } } Give t

[PHP] Getting Numerical Index of a Key

2003-03-03 Thread Matt Honeycutt
Is there an easy way to get the numerical index of a text key for an array? I don't see anything in the manual, but before I waste time writing code to find this info, I thought I would double check here. ---Matt

RE: [PHP] Getting Numerical Index of a Key

2003-03-03 Thread Matt Honeycutt
screw everything up. ---Matt -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:35 AM To: Matt Honeycutt Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Getting Numerical Index of a Key What makes you think it HAS a numerical index? Matt Honeycutt wrote:

<    1   2   3   4   5   6   7   8   9   10   >