Hi,
I'm trying to get the PUT method working on a Apache server running PHP as
module.
Theese are the steps I've taken so far:
- I see in my apache logs that I've got PUT requests "PUT /path/filename.html
HTTP/1.1" OK
- I've added Script PUT /put.php , And checked so that the requests are beeing
So I should buy a commerical product from zend to
protect my code but since my code will be reversed
engineered anyways then what's the point of buying
from zend?
-Original Message-
From: David Freeman
[mailto:[EMAIL PROTECTED]]
Sent: May 9, 2002 10:16 PM
To: [EMAIL PROTECTED]
Subject:
On Fri, 10 May 2002, Kevin Meredith wrote:
> When a database query is done and the results are put into an array, what
> are the resources used? I name all arrays differently and was wondering how
> it would affect the performance of the server if many people connected with
> many arrays being fu
Hello!
I have an object:
class Entry
{ var $ip;
var $host;
}
Which is stored in an array:
$aLines = array();
...
array_push($aLines, new Entry($ip)); // Do this several times
Now I want to resolve the hostname from ip adresses:
foreach ($aLines as $entry)
{ if ($entry->host == "")
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"johnny1b1g" <[EMAIL PROTECTED]> wrote:
?
Well I guess I could try to help you if you elaborate your question a bit
further.
/ Jimmy
Start with RTFM :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://
> Now I want to resolve the hostname from ip adresses:
> foreach ($aLines as $entry)
> { if ($entry->host == "")
>$entry->host = "Teststring";
> print $entry->host."\n"; // prints "Teststring"
> }
>
> // Testoutput
> foreach ($aLines as $entry)
> { print $entry->host."\n"; // prints empt
Hi,
this is not a bug issue, but an installation question. Either
as on php-general@ (CC'd) or php-install@ (don't recall the
exact name).
Can't find clntsh usually means you don't have passed the
right path to the oci PHP configure switch and/or the library
isn't in
>Which gives out the output:
>Tesing arrays:
>ryan1,
>ryan1.2,
>ryan2,
>ryan2.1.1.1.1.1,
>ryan3,
>ryan3.2,
>
>my question/problem is simply this: how do i stop the last comma from
>coming?
Hi,
See http://www.php.net/manual/en/function.implode.php
Pekka
http://photography-on-the.net/
--
PHP
I've only just picked up on this thread, but why not put each form inside a
element?
i.e.
...
...
http://www.chessish.com>
--
From: David Freeman [SMTP:[EMAIL PROTECTED]]
Sent: 09 May 2002 22:24
T
> -Original Message-
> From: Garth Dahlstrom [mailto:[EMAIL PROTECTED]]
> Sent: 09 May 2002 19:48
>
> Anyone notice this... when you do a
> phpinfo();
> ?>
>
> you get "PHP Version 4.1.2", while my apache window
> says "Apache/1.3.20 (Win32) PHP/4.2.0 running..."
Uh -- the response to
Are you loading the entire result set of the query into an array, or
just row by row?
---John Holmes...
> -Original Message-
> From: Kevin Meredith [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 11:48 PM
> To: PHP
> Subject: [PHP] Array usage affecting server
>
> Hi.
>
> Wh
Hello all,
I would like to use informix functions of php, but I didn't find php_ifx.dll in last
php 4.2.0/win32 bundle. Could you tell me where will I find it ?
Thanks in advace.
Juraj Hasko
I have the same problem long time ago
--
Best regards,
George Nicolae
IT Manager
___
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Johnny1b1g" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ?
>
>
--
PHP General Mailing
Hello! I'm working with an array (about 20 MB), which is shifted to
several other arrays and so on. When I shift a array to another, I don't
need to source-array anymore. PHP is able to handle 2 of the arrays, but
by using more, I get errors about allocating memory. How can I tell PHP
to release t
> -Original Message-
> From: Kevin Stone [mailto:[EMAIL PROTECTED]]
> Sent: 09 May 2002 23:09
>
> Hmm. No offense ..., but I don't believe turning
> Registered Globals off
> will have any effect on security. Turning Registered Globals off just
> provides a more strict environment for c
> -Original Message-
> From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]]
> Sent: 10 May 2002 06:40
[]
> http://www.php.net/manual/en/language.types.string.php#language.types.
string.parsing
>
> Where I see this example (in complex syntax section):
>
> > // This is wrong for the
> -Original Message-
> From: Martin Thoma [mailto:[EMAIL PROTECTED]]
> Sent: 10 May 2002 12:01
>
> Hello! I'm working with an array (about 20 MB), which is shifted to
> several other arrays and so on. When I shift a array to
> another, I don't
> need to source-array anymore. PHP is able
Hi there,
I'm working on using php to analyse an access log on an apache server.
If a user inputs a file path I want to be able to use PHP to determine if
it's a log file. Is there a function that will reject if it's not a binary
file. If it's a binary file how would I then
compare it to whats
Hi,
I am new to PHP and
mySQL. I am trying to write a script that enables a user to order a book
through an emailform, and then the quantity for that book is adjusted in the
mySQL database. I have attached my file to show what I have so far.
I believe I am making a simple mistake. Can an
At 14:16 10/05/2002, Ford, Mike [LSS] wrote:
>No, but this:
>
> if (isset($password)): // register_globals on
> $super_user = $password==$super_password;
> endif;
>
> if ($super_user):
> // sensitive admin stuff
> endif;
>
>is more secure than:
>
>
> -Original Message-
> From: Chris Knipe [mailto:[EMAIL PROTECTED]]
> Sent: 10 May 2002 04:38
>
> Just to clarify myself above...
> if ($var1 = $var2) { .
>
> In my crazy head, I see $var1 and $var2 to be in a sort of
> "read-only" state
> inside the () of the if statement. For a i
[snip]
Just to clarify myself above...
if ($var1 = $var2) { .
In my crazy head, I see $var1 and $var2 to be in a sort of "read-only" state
inside the () of the if statement. For a if statement to be able to change
the values in that instance, would be wrong for me. Afterall, the logic of
a
> -Original Message-
> From: Zeev Suraski [mailto:[EMAIL PROTECTED]]
> Sent: 10 May 2002 12:36
>
> You meant it the other way around, didn't you? :)
Er, yes! ;)
(I cut-and-pasted one example to create the other, and then changed the wrong "on" to
"off"!!)
Cheers!
Mike
--
> -Original Message-
> From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]]
> Sent: 10 May 2002 12:54
> To: 'Zeev Suraski'
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] register_globals in php4
>
> > -Original Message-
> > From: Zeev Suraski [mailto:[EMAIL PROTECTED]]
> > Sent: 10 May
Thanks Dan. It's really close now. But it's duplicating the text string at the
beginning and end of the replaces.
Here's the ouput:
1 This is a test of the templating program.
2 Here's hoping it's working.
3
4
5
6 123 123 John Smith 456 456
7
8 123 12
I have a group table with 16 items, and I want them to be randomly put in 4
different groups, with 4 in each group, I've seen the $rand(x,x) thing, but
is there any way to limit to 4 in each group without 47839 rows of code? :P
Håkan
--
PHP General Mailing List (http://www.php.net/)
To unsubs
yes. you can. ;)
--
Best regards,
George Nicolae
IT Manager
___
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Hawk" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a group table with 16 items, and I want them to be rando
Anyone know of a script that I could use to check through a database or
flatfile for valid proxies?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You didn't attach a file (or it didn't come through).
Regardless, I'd advise NOT decrementing the qty in the DB upon placing an
order... it should be done upon PROCESSING of the order (ie, upon picking /
shipping).
Justin French
on 10/05/02 9:19 PM, City Colleges of Chicago - Mannheim
([EMAIL
At 15:13 10/05/2002, Ford, Mike [LSS] wrote:
>I should have said "less secure" rather than "more secure".
>
>Am I right this time?
Yep :)
Zeev
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oh, thank you very much :P
"George Nicolae" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> yes. you can. ;)
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___
> PaginiWeb.com - Professional Web Design
> www.PaginiWeb.com
>
>
>
That was it... tried it and now the versions match,
many thanks!
On Fri, 10 May 2002 11:48:26 +0100 "Ford, Mike [LSS]" wrote:
> > -Original Message-
> > From: Garth Dahlstrom []
> > Sent: 09 May 2002 19:48
> >
> > Anyone notice this... when you do a
> > > phpinfo();
>
For those with error_reporting set to E_ALL, this affects you.
After seeing this: "Warning: No file uploaded in unknown on line 0",
probably the least useful error message I've ever seen, I did some
investigation.
The PHP developers seem to think that if you have a form upload on your
page, a
[..]
>>> is there any way to limit to 4 in each group without 47839 rows of
>>> code?
[..]
>> yes. you can. ;)
[..]
> oh, thank you very much :P
[..]
This might be a bit more helpful ;) There are several way to do it, this
is just one. Unoptimised, aimed at readability.
= $groups) $cnt = 0;
}
Hello!
As there are any way to access binary data in PHP.
For example I read file containg binary records with fread() into the string. How can
I access individual records (WORDs BYTEs DWORDs) from that string?
--
Regards,
Serguei I. Ivantsov
Hey Josh:
On Fri, May 10, 2002 at 08:19:59AM -0400, Josh & Valerie McCormack wrote:
> Thanks Dan. It's really close now. But it's duplicating the text string
> at the beginning and end of the replaces.
> ... snip ...
>10 123 123 Shawn Adams 456 456
No, you mean to say that you're replacing
why does the name variable ($name) not display in the email body, but displays
just perfectly in the form result?
i can see everything from "Employee ID:" down in the email body, and
everything is seen in the form result.
have i made some error?
$bid_information = "Name: ".$name."\n"
On Wed, 08 May 2002 22:09:59 +0200, Gerard Samuel wrote:
> The reason for this thought was that I have given up on gettext because
> it requires putenv(), and most people who are using my script wouldn't
> be able to use it because safe_mode is on.
You are correct! But this is how the gettext li
What utility or function can I use to upload pictures from the users
computer in a form ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
What utility or function can I use to upload pictures from the users
computer in a form ?
[/snip]
RTFM at http://www.php.net/manual/en/features.file-upload.php
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 10 May 2002, Meir Kriheli wrote:
> On Friday 10 May 2002 03:05, Thalis A. Kalfigopoulos wrote:
> > I'm trying to get DOMXML to work with PHP4.2.0. I've compiled with
> > --with-dom and phpinfo() says it's there: DOM/XML enabled
> > libxml Version 2.4.18
> > HTML Support enabled
> > XPath
On Fri, May 10, 2002 at 06:35:00PM -0700, [EMAIL PROTECTED] wrote:
> mail($toaddress, $subject, $fromaddress, $bid_information);
You have inverted the order of the body and additional_headers arguments. Do this:
mail($toaddress, $subject, $bid_information, $fromaddress);
Enjoy,
--Dan
-
Read the manual page on mail(), also. Even if you switch the two like Dan
said, your headers are not in the appropriate format.
www.php.net/mail
---John Holmes...
- Original Message -
From: "Analysis & Solutions" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, May 1
John:
On Fri, May 10, 2002 at 11:45:33AM -0400, 1LT John W. Holmes wrote:
> Read the manual page on mail(), also. Even if you switch the two like Dan
> said, your headers are not in the appropriate format.
Oh, you are sooo right! I mistakenly thought he was setting the
$toaddress when he was a
Hi,
This is my upload form :
Please upload your
file below:
Upload
And this is part of my PHP coding, that handles the
Upload. Basically the problem is, that my code is not
recognising the File Type! I have specified
"image/jpeg" as the file type, but even then it does
not upload A
Does anyone have a decent eregi statement for
validating e-mail addresses? I've tried the ones on
the site, but there seems to be small bugs with each
of them. They tell me that [EMAIL PROTECTED] is an
invalid e-mail address.
__
Do You Yahoo!?
Yahoo
Hi Liam:
On Fri, May 10, 2002 at 09:48:58AM -0700, Liam Gibbs wrote:
> Does anyone have a decent eregi statement for
> validating e-mail addresses?
eregi('^[a-z0-9_.=+-]+@([a-z0-9-]+\.)+([a-z]{2,6})$', $Email);
Enjoy,
--Dan
--
PHP classes that make web design easier
SQ
Hi Jay:
I've been meaning to examine your code and post a substantive reply, but I've been
overloaded with other stuff. In lieu of that, take a look at my SQL Solution class
at http://www.sqlsolution.info/ It has a function that takes a regular query string
and creates a transform output like a
I have two classes. Organization and users.
In the organization class I am try to keep an array of user objects but it
does not seem to be taking. Can any help? See code below.
class Organization
{
var $users = array();
function AddUser($oUser)
{
array_push($this->users,
Download and install gallery and have the client install gallery remote. :-D
http://gallery.sourceforge.net/
On Friday 10 May 2002 11:13 am, Diana Castillo wrote:
> What utility or function can I use to upload pictures from the users
> computer in a form ?
--
PHP General Mailing List (http://w
Might just be a typo, but in the function prototype for AddUser(), you have
$oUser, but the array_push() argument says $objUser.
J
J. Anderson Scarbrough wrote:
> I have two classes. Organization and users.
>
> In the organization class I am try to keep an array of user objects but it
> d
Hello:
I have been browsing the web for a good solution to debug php code, I
have found several ones, but none of them meet my requeriments. I
create a development tool for PHP (QaDRAM Studio) and I want to be able
to debug php code with it, my question here is:
Why PHP 4 has no built-in de
How can I disable the resend data feature when going back to an expired
page? If I return this page again by typing the URL, I won't be ask to
resend data. However, if I hit the back button and go back to the expired
page, I will be prompted to click on resend or not. I seem some sites
disable thi
On Fri, 10 May 2002, Liam Gibbs wrote:
> Does anyone have a decent eregi statement for
> validating e-mail addresses? I've tried the ones on
> the site, but there seems to be small bugs with each
> of them. They tell me that [EMAIL PROTECTED] is an
> invalid e-mail address.
Well, it currently is
On Fri, 10 May 2002, Jay Blanchard wrote:
> Just to clarify myself above...
> if ($var1 = $var2) { .
>
> In my crazy head, I see $var1 and $var2 to be in a sort of "read-only" state
> inside the () of the if statement. For a if statement to be able to change
> the values in that instance, wo
Well, first thing I notice is that in your form you name your file input as
"file", yet nowhere in your code do I see you getting any values from _FILES
or $file (depending on your version of PHP). So...how do you expect it to do
anything with your file if you don't tell it to?? Maybe you left out
On Fri, 10 May 2002, Ford, Mike [LSS] wrote:
> Also, by using the $_POST, $_GET arrays, you know exactly where the
> input is coming from (even if register_globals is also on!). If you
> have register_globals set to on, and you just look to see if (say)
> $password has a value, whic
On Fri, 10 May 2002, Josh Edwards wrote:
> I'm working on using php to analyse an access log on an apache server.
>
> If a user inputs a file path I want to be able to use PHP to determine if
> it's a log file. Is there a function that will reject if it's not a binary
> file. If it's a binary fi
I had always been suspicious about email validators so I did a big long
search on Google about standard address formats. It turns out that aside
from the @ symbol emails have no standard format whatsoever. So ereg('@',
$email) is really the only functional email validator.
You also have to thin
I am having similar difficulties with DOMXML in php4.2.0.
phpinfo() indicates all is well with the setup...
If you get some response, please share!
Thanks!
Mike
"Thalis A. Kalfigopoulos" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to get DOMXML
function check_input($array){
global $HTTP_REFERER;
$valid = 1;
if(gettype($array)=="array") {
while (list($index, $subarray) = each($array) ) {
if(ereg("required_", $index) && (($subarray == "")
|| ($subarray == " "))) {
On Fri, 10 May 2002, Kevin Stone wrote:
> I had always been suspicious about email validators so I did a big long
> search on Google about standard address formats. It turns out that aside
> from the @ symbol emails have no standard format whatsoever. So ereg('@',
> $email) is really the only fu
On Fri, 10 May 2002, Steve Buehler wrote:
>
>if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$',
>
If I'm reading it correctly, this will let invalid addresses through. The
domain component (after the @ sign) can only
Hi there,
I do have some trouble installing gd2 and suse7.2 linux. I did already
compile freetype, but now I do get an error I can not handle.
Here is the message:
make install
gcc -I. -I/usr/local/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/inclu
de/X11 -I/usr/local/include -I/usr/lib png
Folks:
On Fri, May 10, 2002 at 01:27:45PM -0500, Steve Buehler wrote:
>
>
>if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$',
>
> $subarray)){
Those characters don't conform to the R
Hi everyone,
I have a PHP script that reads data from an MS SQL server and outputs the
data into a table. I've been asked if I can alternate the colors of the
rows to make the report more legible. The relevant piece of code looks like:
for ($i = 0; $i < mssql_num_rows( $stmt ); ++$i)
Either Google is wrong (probably) or they are now allowing things like
spaces into an email address. There are actually several things that are
not allowed in a standard email address. Here is the code that I use.
ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}
On Saturday 11 May 2002 02:45, Glenn Sieb wrote:
> Hi everyone,
>
> I have a PHP script that reads data from an MS SQL server and outputs the
> data into a table. I've been asked if I can alternate the colors of the
> rows to make the report more legible. The relevant piece of code looks
> like:
>
Glenn Sieb wrote:
> Hi everyone,
>
> I have a PHP script that reads data from an MS SQL server and outputs
> the data into a table. I've been asked if I can alternate the colors of
> the rows to make the report more legible. The relevant piece of code
> looks like:
>
> for ($i = 0; $i < mssql
To tell you the truth, I can't read it.
Steve
At 01:32 PM 5/10/2002, Miguel Cruz wrote:
>On Fri, 10 May 2002, Steve Buehler wrote:
> >
>
>if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$',
>
>
>
>If I'm reading it
Austin, you rock :) I've only just started with PHP recently, and was
introduced to the ternary operators by reading Rasmus' book (great job,
Rasmus!!!), so I'm learning as I go here :)
Thanks buddy!
Glenn
On 01:50 PM 5/10/2002 -0500, Austin Marshall wrote:
>$color=($i%2) ? "grey" : "white; wi
On 02:47 AM 5/11/2002 +0800, Jason Wong wrote:
> if ($i % 2) { odd; } else { even; }
Great! Thanks, Jason :)))
One thing I love about this list... you guys are more than helpful! :)
Glenn
---
Glenn E. Sieb, System Administrator
Lumeta Corp. mailto:[EMAIL PROTECTED]
+1 732 357-3514 (V)
+
Hello Liam,
Friday, May 10, 2002, 9:31:45 AM, you wrote:
LM> Hi all,
LM> I need some opinions, what are some good modules to build into PHP?
LM> I'm starting a hosting service (properly)
Incule XSLT module. If I were your client I really needed it.
--
Best regards,
Olexandr
Jose Leon wrote:
> Hello:
> I have been browsing the web for a good solution to debug php code, I
> have found several ones, but none of them meet my requeriments. I
> create a development tool for PHP (QaDRAM Studio) and I want to be able
> to debug php code with it, my question here is:
>
Does anybody know of a class, module, extension that caches database
output?
I've asked this before, and I've looked high and low to no avail. I've
used APC cache to do caching and it works great, but it doesn't save
database queries, which easily becomes the bottleneck with highly
dynamic site.
[snip]
Is there a way for me to do one of the following:
1) Test to see if $i is an even or odd number?
2) Grab more than one line from the database at a time, and just put in two
table rows at once?
[/snip]
\n");
}
elseif ($rowcount <> 1) {
print("\n");
While everyone's kicking in ideas...
I don't think modulus (as someone else suggested) is that expensive, but I
think this is the cheapest:
$evenodd = 0;
$color[0] = '#cc';
$color[1] = '#99';
while ($row = mysql_fetch_row($st))
{
print "{$row['whatever']}";
$evenodd =
The more generic approach:
function getNextColour( &$lastIndex, $colourList )
{
return $colourList[(++$lastIndex % count( $colourList ))];
}
$colours = array
(
'#ff',
'#00ff00',
'#ff'
);
$index = 0;
foreach( $rows as $aRow )
{
echo ''
.$aRow
.''."\n";
Robert Cummings wrote:
>
> The more generic approach:
>
> function getNextColour( &$lastIndex, $colourList )
> {
> return $colourList[(++$lastIndex % count( $colourList ))];
U... $lastIndex++, don't want to start on the second entry :)
Cheers,
Rob.
--
.-.
| Robert Cumm
for all of you that replied to my original post, thank you.
all of the suggestions worked and i learned a couple of new things along the
way.
scott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yet even more ways to do it:
$i = 0;
while ($row = mysql_fetch_assoc($result)) {
$bgcolor = ($i++ & 1) ? '#ff' : '#00';
}
Or more then two:
$colors = array('black','green','blue','yellow');
$i = 0;
while ($row = mysql_fetch_assoc($result)) {
$bgcolor = $colors[$i++ % 4]
[snip]
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there,
I did just build abpache and php. Unfortuanatelly the http.conf looks quit
different to one I did install last year.
There is no phpmodule in there, so I cant activate it. I did include some
lines from my old config:
AddType application/x-httpd-php .php4 .php3 .php
AddType applicatio
As we all know ARPA is thet university network, funded by the government to
build an information infrastructure that eventually became the internet we
have today. But the standards for text messaging within the ARPA net have
been added to over the years in order to accomodate ever expanding
requi
> php -l will let you know where your syntax errors are.
What?
Regards
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I was looking through the new php.ini file and was enabling the output
handler of ob_gzhandler then I saw the line about
zlib.output_compression. What's the diffrence between the two?
--
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.com
2002 EPpy Award, Best Online U.S. Newspaper
--
PHP General
Jose Leon wrote:
>>php -l will let you know where your syntax errors are.
>
>
> What?
>
> Regards
>
If you invoke the interpreter from the command line (CGI). You can use
the -l flag to enable lint mode... that will check your script for parse
errors. So in a way, PHP does have a "debug"
Just another version.
the call
...
$RowColor = useColor();
...
echo '';
- Jp
At 15:46 10/05/02, you wrote:
>[snip]
>$rowcount = 0;
>while($dbrowa = mysql_fetch_object($dbseta)){
> $dbrowb = mysql_fetch_object($dbsetb);
>//change the color of alternating rows
>$rowcount ++;
>if ($row
> > php -l will let you know where your syntax errors are.
>
> What?
>
He said "php -l will let you know where your syntax errors are."
Helping out where I can,
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey everyone!
Thanks for all the hints--here's what my boss and I eventually came out with:
/* ##
## And for every row of data we pull, we create a table row...
## */
$company = 0;
$previous = "";
for ($i =
Glenn Sieb wrote:
>
> Hey everyone!
>
> Thanks for all the hints--here's what my boss and I eventually came out with:
>
> /* ##
> ## And for every row of data we pull, we create a table row...
> ## */
> $company = 0;
>
Hello,
On 05/10/2002 01:48 PM, Liam Gibbs wrote:
> Does anyone have a decent eregi statement for
> validating e-mail addresses? I've tried the ones on
> the site, but there seems to be small bugs with each
> of them. They tell me that [EMAIL PROTECTED] is an
> invalid e-mail address.
You may wan
On Fri, May 10, 2002 at 09:53:10PM +0200, andy wrote:
:
: I did just build abpache and php. Unfortuanatelly the http.conf looks quit
: different to one I did install last year.
: There is no phpmodule in there, so I cant activate it. I did include some
: lines from my old config:
:
: AddType a
- Original Message -
From: "Robert Cummings" <[EMAIL PROTECTED]>
> Glenn Sieb wrote:
> > $cname =
(strcmp($previous,$line[0])
> > ? $line[0] : " ");
> > print (" >
BGCOLOR=#$color>\n\t$line[2]\n\t$cname\n\t$line[3]
Hello,
On 05/10/2002 04:15 PM, Jeff Bearer wrote:
> Does anybody know of a class, module, extension that caches database
> output?
>
> I've asked this before, and I've looked high and low to no avail. I've
> used APC cache to do caching and it works great, but it doesn't save
> database queries
"1LT John W. Holmes" wrote:
>
> Read the code again, that's what I first thought, too. He's just not
> printing multiple values for the first table cell. So if the current row has
> the same company name, just print a blank cell, then print the rest of the
> data for that row.
In the words of a
This is what I have used.
Here is an excellent article on Regular Expressions.
Learning to Use Regular Expressions by Example
http://www.phpbuilder.com/columns/dario19990616.php3
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 10 May 2002, Kevin Stone wrote:
> As we all know ARPA is thet university network, funded by the government
> to build an information infrastructure that eventually became the
> internet we have today. But the standards for text messaging within the
> ARPA net have been added to over the y
there is not much inside the log. (I do asume you mean the logs) Nothing
related to that prob.
What yould be a propper config command for apache to build. I would like to
run php as an apache module apxs
Thanx,
Andy
"Eugene Lee" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news
1 - 100 of 153 matches
Mail list logo