;
} 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
> 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
> 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 (
> 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
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
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
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\"
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
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
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
[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
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
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
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
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
> 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
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:
> >>
> >>
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
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
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.
--
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]
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
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
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 [
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
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
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
("\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]&
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
/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
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:
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
- 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
oad?
I'm sure someone must have a solution to this.
Thanks,
Matt
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
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
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
> -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()
> {
>
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
>
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
$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
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
> >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
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
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
, 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
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
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
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
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
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
> -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
> -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
> -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
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
> -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
> -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
>
> 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.
> -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
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
> -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 )
> -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
> -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
> -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
> -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.
> >> $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
> -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
> -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
> -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
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
> -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
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
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
> -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.
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
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
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
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
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:
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
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
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
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
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
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
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
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-
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
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
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
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,
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
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:
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,
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
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---
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
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
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
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:
101 - 200 of 1653 matches
Mail list logo