the zval struct in PHP is multifunctional and its string branch has length member.
Much of the operations on string are with
*_STRINGL() L comes from length. It is preferable php function to use the length
instead of *_STRING macros which looks throug the
string to find its end.
Andrey
- Or
I think that all chars (\0 to \255) are valid chars in php, from the looks
of it, php maintains the strings length, or something, so that you can have
\0 in the string
Martin
-Original Message-
From: Marco Laponder [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 4:50 PM
To: 'Php
Hi All,
I have the following question. I have been developing with C for a
while and I was used that the \0 indicated the end of a string. So if
I had a variable containing 1234\056789 and the variable was printed,
only 1234 was printed.
As I can see in PHP (version 4.0.6 ), when I echo such a
Hi,
I'm using PHP 4.1.2 to write a webmail. I'm using Procmail along with
Sendmail. PHP runs as user nobody or user apache. Note that I have the user
id and password in my PHP script from using HTTP authentication. FYI I'm
running Mandrake Linux 8.1.
The problem is:
I want to write to some fil
Rodrigo Peres wrote:
>
> if(isset($HTTP_GET_VARS['erase_data'])) {
> session_unregister('data');
> }
>
> but the code doesn't erase the var from session, and If i use
> session_unset('data') it erases all vars from session, that I don't want to.
> How to solve this?!??! i have started the s
On Friday 12 April 2002 14:17, Nick Richardson wrote:
> Following on the same subject (kinda) of Variable Variables... i have
> actually wondered this before... is there a difference between these 2
> blocks?? (both should print "worldhello" if i am not mistaken, but is there
> a difference in how
The fact that there's a seg fault involved makes me think that's it's not so
much a problem w/ code, but a problem with either apache (or whatever web
server you use) a/o your PHP installation -
PHP may be seg faulting before it's done reading the data from the directory
and apache is reporting t
Following on the same subject (kinda) of Variable Variables... i have
actually wondered this before... is there a difference between these 2
blocks?? (both should print "worldhello" if i am not mistaken, but is there
a difference in how the nested variable is handled when it's inside curly
braces?
does that code work if you set the directory path to "./" ?
-Original Message-
From: Phieu Huynh [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 3:33 PM
To: Martin Towell
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] "the document contained no data"
I also try the following code and
!== is correct - it's checking for type, as well as value
"strict non-equality"
-Original Message-
From: Phillip S. Baker [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 3:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] "the document contained no data"
At 10:33 PM 4/11/2002 Thurs
At 10:33 PM 4/11/2002 Thursday, Phieu Huynh wrote:
>I also try the following code and still have the same problem.
>I am runing php4.0.?, solaris(linux)
>
>$dir_name = "/export/home/phuynh/php/main/student/upload/";
>$dir = opendir($dir_name);
> while (false !== ($file_names = readdir($dir))) {
>
I also try the following code and still have the same problem.
I am runing php4.0.?, solaris(linux)
$dir_name = "/export/home/phuynh/php/main/student/upload/";
$dir = opendir($dir_name);
while (false !== ($file_names = readdir($dir))) {
echo "$file_names";
}
closedir($dir);
Martin
On Friday 12 April 2002 09:19, Jennifer Downey wrote:
> Actually after the submit button is clicked it returns a blank page.
> "Jennifer Downey" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > Hi all,
> >
> > Now I have a weird problem. I am using this cod
On Thursday 11 April 2002 14:30, Andrew Schoenherr wrote:
[snip]
> Problem
> I have just started using classes, downloaded from www.thewebmasters.net
> web site. I am working on user authentication and I am getting a
> parse error when the page loads. Only since I started using the
> class has t
odd, I copied your code, changed the dir to "./" and it works for me
(php4.0.?, winnt)
if dir() doesn't work for you, you might need to use opendir(), readdir(),
etc
-Original Message-
From: Phieu Huynh [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 2:14 PM
To: Martin Towell; [E
On Friday 12 April 2002 05:29, Kevin Stone wrote:
> Wouldn't it be more helpful to assume that the individual is simply
> uninformed? So isntead of flaming him and calling him stupid you could
> say, "Check the PHP manual at www.php.net".
Nobody called him/her stupid. In fact it's probably a ver
Hello,
This is my first question to the list, I have included as much
information as I feel will help someone find a solution to my problem.
Server: RedHat Linux 7.0, Kernel 2.2.16-22
PHP Version: 4.1.0
Apache Version: 1.3.12
Class name: class.Htpasswd.php3
Problem
I have just started using cl
Sorry, the file has ; I retype it wrong,
I did set error_reporting but no change,
but in the httpd error log file I found "exit signal segmentation fault (11)"
Martin Towell wrote:
> is that a direct copy of your code - if it is, you're missing a ; after
> $entry=$d->read()
> but that wound hav
On Friday 12 April 2002 10:53, Manisha wrote:
> >I'd be surprised if you really want to move the file to /img.
> >And if you're on a Unix system the web server certainly won't
> >have write access to the / directory.
>
> i tried with complete path starting from root (/usr/web/html/img) and
>
At 10:53 AM +0800 12/4/02, Manisha wrote:
>> >if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
>> > copy($HTTP_POST_FILES['userfile']['tmp_name'], "/img");
>>
>>Check to see whether that "copy" function completed successfully.
>
>how ? I put one echo statement after copy
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hi all,
>
> I have a textarea which will containg info from the user. This then
> needs to be parsed through something like htmlspecialchars() or
> htmlentities().
>
> The issue is that my system really needs to do the following:
>
>
is that a direct copy of your code - if it is, you're missing a ; after
$entry=$d->read()
but that wound have stopped the first one...
to set error level to E_ALL, use:
error_reporting(E_ALL);
or set it in your php.ini file
error_reporting = E_ALL
-Original Message-
From: Phieu Huynh [m
Addressed to: Jeff Bearer <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from Jeff Bearer <[EMAIL PROTECTED]> 11 Apr 2002 13:40:52 -0400
> What is your opinion of using Red Hat's Apache and PHP binaries instead
> of compiling from source?
If what they provide is exactly wh
I did a simple search at sourceforge.net, and got this link. Try this link
instead:
http://sourceforge.net/projects/pc4p/
"Jason Caldwell" <[EMAIL PROTECTED]> wrote in message
001701c1e1b9$784c7300$0202a8c0@cosmos">news:001701c1e1b9$784c7300$0202a8c0@cosmos...
> Thanks for the response... I don
H, I didn;t know you wanted to animate anything... but this could be
achieved through CSS/DHMTL. And if you're going that way, the images
themselves could be replaced with dynamically sized DIVs.
DHTML isn't my thing though... check out some CSS newsgroups, and of course
be prepared for lack
Hello,
I'm getting this error from IIS/NTSP4 - but the php_ldap.dll module is right next to
the php_gd.dll module I'm loading (along with several others, but that doesn't seem to
make any difference).
What module is it looking for?
John
--
/* SteeleSoft Consulting John Steele - System
Hi Steph,
1st things 1st, you're date is set the year 00 for some reason, so your
email was kinda hidden in my PHP folder. This may limit the number of ppl
who respond.
I have no idea if it can be done in the MySQL query, but you could get all
your results into an array, and do a regular expres
At 05:52 PM 4/11/02 +1000, Richard Archer wrote:
>At 2:28 PM +0800 11/4/02, Manisha wrote:
>
> >
>
>That's a mighty small limit on file size. Especially if it's an
>image being uploaded. Are you sure the file you're testing with
>is smaller than 1000 bytes?
>
>Also, be aware that this field is adv
This is pretty basic, and I recommend looking at all the string functions.
Basically, you want to use strip_tags() to get rid of the html (with
optionally allowing SOME tags to be passed thru. Then use nl2br() to
convert /n's (the only type of newline you're likely to receive via a web
form) to
This would certainly work, but I got a suggestion for using that i think will be a much cleaner solution.
Thanks!
- Original Message -
From: "Philip Hallstrom" <[EMAIL PROTECTED]>
To: "Jason Bell" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 4:10 PM
Subjec
I don't know how to set erro level to E_ALL, can you give me some sample.
I did try different way
handle."";
echo "Path: ".$d->path."";
$entry=$d->read()
echo $entry ;
$d->close();
?>
it is ok and the output is only a dot(.)
if I add another read() statement then I got " ...
Is this PHP guestbook no longer available for download? Does anyone know?
Thanks,
Steph
turn the displaying of errors on, and set the error level to E_ALL
I'm thinking that you've got a error somewhere that's stopping the script
prematurely
-Original Message-
From: Phieu Huynh [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 10:49 AM
To: [EMAIL PROTECTED]
Subject: [PH
Rasmus,
I gathered info in several ways to hopefully save time. I
composed a message containing a simple, one-line PHP echo function and
sent it to myself. Not surprisingly, nothing showed in the message body
when pulled up via the webmail app. The exhibits are displayed below.
This mes
Hey J:
On Thu, Apr 11, 2002 at 03:24:36PM -0700, Jason Bell wrote:
> Lets say that I have a varable that always starts with $user but then
> has the 2 digit user id attached to the end, so it could be $user12 or
> $user28
Use an array. $user[12] and $user[28]. You can then use the various
ar
Actually after the submit button is clicked it returns a blank page.
"Jennifer Downey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> Now I have a weird problem. I am using this code and can't understand why
it
> doesn't work.
> When the script is r
Hi,
I am trying to read the files in the directory and display them .
but I got the message " the document contained no data "
this is my code
handle."";
echo "Path: ".$d->path."";
while($entry=$d->read()) {
echo $entry."\n";
}
echo "";
$d->close();
?>
Can anyone tell me what s
Hi all,
Now I have a weird problem. I am using this code and can't understand why it
doesn't work.
When the script is run it returns a blank page, no error or done.
here it is and any help would be appreciated.
if(($type == book) or ($type == weapon)){
echo "";
echo "";
echo "Put
Ok, but you didn't really answer my question. When you do a view source
to see the raw html in the webmail app, do you see the PHP tags. ie. the
tag in this thread?
On Thu, 11 Apr 2002, Barry C. Hawkins wrote:
> Rasmus,
> I was able to see the PHP code because I came home and fired up
>
Thank you all for your input. I will read through the tutorial and then
figure out which style I want to use.
I appreciate your time.
Jennifer
"Jennifer Downey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> Could someone point me to a tutorial o
Rasmus,
I was able to see the PHP code because I came home and fired up
Outlook. Right after I posted that last message, I closed Outlook and
went to Earthlink webmail. Same problem. No code, and incredibly weird
hyerlinks and garbled code. I opened Outlook back up, loaded the same
mes
Well, you read the message and I didn't get an email. That tells me that
it isn't actually executing the code. Are you sure it isn't just putting
the code in the mail literally? ie. if you do a "view source" on the
message, do you not see the raw PHP tags?
-Rasmus
On Thu, 11 Apr 2002, Barry C
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 4:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Posting with script tags, or a plea not to
On Friday 12 April 2002 03:51, Barry C. Hawkins wrote:
> List members,
> I am sure this was prob
Rasmus,
Well, if ever I had leverage for asking Earthlink to fix the
problem, I think it would be now. Forwarding an email from the person
credited with starting the scripting language that they are using for
their system that basically illustrates their recklessness should do the
job. A
I have this class, comes close to what you want. Feel free to modify,
sorry I didn't have the time to comment it yet. I hope you can understand
and use it :-) Anyway test it and see what it does.
class InseForm
{
function AllowedTags()
{
$allowed_tags = Array();
$allowed
Thanks for the response... I don't think the link you gave is working -- is
there another?
Jason
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 1:57 PM
Subject: Re: [PHP] PHP and PDF?
> On
I'm sorry, but if your webmail system just sent me your password file, you
should run, not walk, to another provider. This is a list about PHP.
There is going to be example PHP snippets all over it. Deal with it.
-Rasmus
On Thu, 11 Apr 2002, Barry C. Hawkins wrote:
> List members,
> I
Well, on unix, you could use the (still experimental, according to
the docs) shared memory functions:
http://php.he.net/manual/en/ref.shmop.php
There's also the apparently more mature, but less portable
semaphore/shared memory functions (also Unix only) here:
http://php.he.net
missing an "echo" -
-Original Message-
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 9:45 AM
To: php-general-list
Subject: [PHP] Pass variables via URL
I'm trying to set $image = imageA via a URL:
http://www.abc123.com/php001/image_switch.php?image=imag
I'm trying to set $image = imageA via a URL:
http://www.abc123.com/php001/image_switch.php?image=imageA
Script is:
Image Switch
Image link ends up as:
http://www.abc123.com/php001/.gif
Link needs to be:
http://www.abc123.com/php001/imageA.gif
What am I doing wrong?
Thanks
Crai
If you want to process the list when they submit the form you can do
something like this:
foreach($_REQUEST as $key => $value ) {
if( ereg("user([0-9]*)", $key, $match_ary) ) {
#go crazy;
}
}
??
-philip
On Thu, 11 Apr 2002, Jason Bell wrote:
> Yeah, I thought so
Yeah, I thought so too, but variable variables doesn't seem to provide for
this to add a little bit of detail to what I am doing, it is a user
list, and I want to have a check box next to each user so that you can
select 1 or more users for deletion. Each checkbox will be named User$id
($id of
Kevin Stone wrote:
> Wouldn't it be more helpful to assume that the individual is simply
> uninformed? So isntead of flaming him and calling him stupid you could say,
> "Check the PHP manual at www.php.net".
> -Kevin
>
The definition of a question assumes the person is uninformed - else,
why a
Sounds like what you want is Variable Variables.
http://www.php.net/manual/en/language.variables.variable.php
- Original Message -
From: "Jason Bell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 4:24 PM
Subject: [PHP] Variable wildcards
are there wildcard c
are there wildcard characters for variables?
Lets say that I have a varable that always starts with $user but then has the 2 digit
user id attached to the end, so it could be $user12 or $user28
is there a way to grab these? sort of like in unix standards, where I could use user??
or user* ?
Hi list,
I'm in a serious trouble that I couldn't figure out an escape. I have
basically to html pages that pass variables to each other by get method. So
I register some vars in sessions. in one o this pages i have.
if(isset($HTTP_GET_VARS['erase_data'])) {
session_unregister('data');
}
bu
Never mind. I managed to find a free code 39 barcode font that /is/
Unicode compatible, and it works.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Matthew Walker
Sent: Thursday, April 11, 2002 3:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP] ImageTTFT
Im having no luck using ImageTTFText(). I have a .ttf barcode font that
works fine on windows if I select it in a word processor, but when I try
and use it with PHP to generate barcode images, it outputs a blank
image. I can select other TTF fonts, and they work fine. Just this one
seems to have
Aehm,
as I´m a bit old- and shell- stylish (see reply from Rasmus on:How to
create...)
why don´t you just make
unset($retval); // cleans the array to contain the resul
exec("ls ".$your_path".*_.jpg",$retval,$is_ok); // $retval will be an
array containing all matches
if($is_ok)
{
$r
I use pretty much the same idea, but PHP isn't used to parse the returned
XML. Rather, it just fetches the XML and sends it off to an XSLT processor.
Look at the XSLT extension for PHP. You'll likely need to get Sablotron
from www.gingerall.com. You'll also have to write an XSL stylesheet to
Wouldn't it be more helpful to assume that the individual is simply
uninformed? So isntead of flaming him and calling him stupid you could say,
"Check the PHP manual at www.php.net".
-Kevin
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday
On Thursday, April 11, 2002, at 04:09 PM, Erik Price wrote:
> I'm trying to think of a clever way to send both POST and GET data in
> the same form. I want to use GET data so that the variables appear in
> the querystring (so that users can bookmark or save the URL, it's a
> search engine-k
On Friday 12 April 2002 03:44, Jason Caldwell wrote:
> Does anyone have any *simple* examples of how I can go about taking a text
> file and converting it to a PDF using PHP's PDF functions? Looking at the
> documentation (http://www.php.net/manual/en/ref.pdf.php on php) on the PDF
> functions is
Levy Alves Carneiro Jr. wrote:
>
> Hello,
>
> inside php.ini file there's a special configuration:
>
> ; Transparent output compression using the zlib library
> ; Valid values for this option are 'off', 'on', or a specific
> ; buffer size to be used for compression (default is 4KB)
> zlib.outpu
On Friday 12 April 2002 04:48, Jeff Bearer wrote:
> In the spirit of sharing I'll supply a link to tfm
>
> http://www.php.net/manual/en/function.is-dir.php
> http://www.php.net/manual/en/function.file-exists.php
>
> sometimes it's hard to rtfm if you don't even know what you are looking
> for.
PH
On Friday 12 April 2002 03:51, Barry C. Hawkins wrote:
> List members,
> I am sure this was probably mentioned before I joined the list, but
> when members post to the list using the PHP tags around the script, a
> number of web-based PHP mail apps attempt to process the script server-side
>
In the spirit of sharing I'll supply a link to tfm
http://www.php.net/manual/en/function.is-dir.php
http://www.php.net/manual/en/function.file-exists.php
sometimes it's hard to rtfm if you don't even know what you are looking
for.
On Thu, 2002-04-11 at 16:42, Jason Wong wrote:
> On Friday 12 Ap
On Friday 12 April 2002 05:36, Someone Somewhere wrote:
> How can I check to see if a directory already exists.
rtfm
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
N
I have a problem that I can't figure out. I'm using PHP ver. 4.0.6
which has a few functions built in it that require GD 2.0 or better,
however; I tried putting GD 2.0.1 in my /usr/lib/ directory but it still
cannot find it. Does anyone know why?
--
Edgardo G. Diaz
Software Engineer
Paragee Ze
How can I check to see if a directory already exists.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is there some way to enable large file support for the fstat
functions? when i try to do an fstat on a large file (4 gig) i get
the following error:
stat failed for /test/test.gz (errno=127 - Value too large to be stored in data type)
--
PHP General Mailing List (http://www.php.net/)
To unsubs
I've got a client who wants me to build a form-based user interface for an
application that will allow people to sign up for ISP service. Each form
will post to a remote server, which will give me an XML reply upon which to
base the response page for the user.
Being very much new to PHP, I'm
I'm trying to think of a clever way to send both POST and GET data in
the same form. I want to use GET data so that the variables appear in
the querystring (so that users can bookmark or save the URL, it's a
search engine-kinda thing), but I have a main switch() statement which
is controlled
Try looking at fpdf, which can be found at fpdf.org. I have used it for a
couple things and it works beautifully.
Cheers!
Rick
"It is better to have loved and lost than to never have loved at all." -
Unknown
> From: "Jason Caldwell" <[EMAIL PROTECTED]>
> Date: Thu, 11 Apr 2002 12:44:10 -0700
Keep in mind that there is no common memory space for all the users.
Each request is being handled by a different process with its own memory
space that's forked off of the original web server. (Assuming apache, I
don't know how IIS works).
-Steve
On Thursday, April 11, 2002, at 01:52 PM, [
I personally really like this,
Maybe you can customize it as needed - or someone can improve upon it !
PIN9f39f7
$rawuid = md5(uniqid(rand(),1));
$uid = "PIN" . substr($rawuid,0,6);
echo $uid;
?>
on 4/11/02 3:44 PM, ROBERT MCPEAK at [EMAIL PROTECTED] wrote:
> Could somebody
List members,
I am sure this was probably mentioned before I joined the list, but when members
post to the list using the PHP tags around the script, a number of web-based PHP mail
apps attempt to process the script server-side and those of us blessed with such
systems see either nothing o
Make an autoincrement/primary column?
Or keep a number stored and increase it one by one and using when
derirable?
I prefer the first one :-)
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/w
Does anyone have any *simple* examples of how I can go about taking a text
file and converting it to a PDF using PHP's PDF functions? Looking at the
documentation (http://www.php.net/manual/en/ref.pdf.php on php) on the PDF
functions is a bit confusing...
I just want to take a text file and conv
Could somebody share with me a simple way to create a unique numeric ID
for a new record in a mySQL db?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Checkout the substr() function. You can do something like:
if (substr($var, -9) = '_.jpg')) {
// do something
}
-9 would be the staring position. I am not sure if this is the right
number, so you will have to look at the manual :-)
--
Julio Nobrega.
Um dia eu chego lá:
http://sourc
Hi. Im using MySQL and as part of my tables I have titles (of stories). My
question os in regards to outputing those titles. Some of the titles begin
with words such as 'The', 'A', 'An', etc. Is there a way to order these
particular titles based on the second word in the title??
~Steph
--
PHP
> "Eric" == Eric Starr <[EMAIL PROTECTED]> writes:
Eric> I am a Java programmer learning PHP. In Java you can have a
Eric> class that contains public and private functions. Only the
Eric> public functions are accessible outside of the class. Does
Eric> PHP have a way to hid
On Thursday, April 11, 2002, at 02:17 PM, Andrey Hristov wrote:
> In PHP the programmer has to call the constructor of the super class.
> The derived class has to know the name of his "super"(java syntax).
> In PHP5 the constructor will have unified name, there will not be a
> need the derived
On Friday 12 April 2002 14:32, jas wrote:
> Here is an example of the files in the directory...
> willies_0411.jpg
> watson_0411.jpg
> willies_logo.jpg
> watson_logo.jpg
> etc..
> When I remove the eregi() it works fine, all the files are displayed,
> however I only want the files ending in _.
Yeah I know from my code, which often is just bs project, that with nesting lotsa crap
it's a lot easier to follow the Original Method of:
for($i=0;$iOn Friday 12 April 2002 02:50, Kevin Stone wrote:
>
>> On the other hand the Inline Method is clean. You can see at a glance
>> where each block
On Friday 12 April 2002 03:04, Nick Wilson wrote:
> Hi all
> What functions do I need to be looking at if I want to determine from
> what country a visitor is from?
>
> Is this problematical, I look at my logs shows that not all visitors
> form .dk have that at the end of the refferer string...
S
On Friday 12 April 2002 02:52, [EMAIL PROTECTED] wrote:
> If I do that, won't the data that I fetch be duplicated in memory for each
> user? I'm trying to have just one space in memory allocated for these
> variables, sort of like the HTTP_SERVER_VARS. It seems that even if I do
> an autoprepend
On Thursday, April 11, 2002, at 02:13 PM, Analysis & Solutions wrote:
> Uch! Uch! Uch! I don't like their nesting ideas:
>if (condition) // Comment
>{
>}
>else // Comment
>{
>}
Neither do I -- that doesn't look too easy to read
On Friday 12 April 2002 02:50, Kevin Stone wrote:
> On the other hand the Inline Method is clean. You can see at a glance
> where each block begins ends. But it is not compact. It spreads the code
> out over many lines. I recommend this method for modern programmers coding
> on large screens.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all
What functions do I need to be looking at if I want to determine from
what country a visitor is from?
Is this problematical, I look at my logs shows that not all visitors
form .dk have that at the end of the refferer string...
Many thanks :-)
Ensure you're building PHP with the --apxs2=/path configure option.
If you don't do that, it will not work in httpd2.0
If you DID do that, what glibc and gcc version is you're build
environment using?
On Thu, 2002-04-11 at 07:27, Markus Meixner wrote:
> Hi,
>
> i installed the new Apache 2.0.3
My vote goes to the inline method which I am the only one to
use where I work :( But it is far cleaner even if it is less
compact.
Cheers,
Rob.
--
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer |
:--
If I do that, won't the data that I fetch be duplicated in memory for each
user? I'm trying to have just one space in memory allocated for these
variables, sort of like the HTTP_SERVER_VARS. It seems that even if I do an
autoprepend that file is going to run each time a user visits the site and
I disagree. The Inline Method may be less compact than the Traditional
Method but it is much easier to read. The following are two identical code
sniplets. One is formated with the Traditional Method and the other with
the Inline Method. You make the decision which one you want to use.
In my
Hi. I have a PHP shell script running on Windows that I would like to
display status on where it's at in the code because it takes a long time to
finish. Using flush() doesn't seem to work as all the status messages still
don't output to screen until the script finishes running even though I'm
do
In PHP the programmer has to call the constructor of the super class.
The derived class has to know the name of his "super"(java syntax).
In PHP5 the constructor will have unified name, there will not be a need the derived
class to know super class name.
So
base_var = $init;}
}
class Extended ex
On Thu, Apr 11, 2002 at 01:33:40PM -0400, Erik Price wrote:
>
> http://utvikler.start.no/code/php_coding_standard.html
Uch! Uch! Uch! I don't like their nesting ideas:
if (condition) // Comment
{
}
else // Comment
{
}
This is the stan
On Friday, April 12, 2002, at 01:50 AM, jas wrote:
> Ok, I have tried all 3 examples and even tried a few variations that you
> have given me and so far nothing is getting displayed, is there a way to
> check for errors? here is the code I am working with:
What happens if you get rid of that
It will only send compressed pages to browsers that support it so that's
not a problem. Pro's are that pages load much faster. especially if
your HTML output is big, images are already compressed so they stay the
same.
cons are minor, since the page is gzipped when loading on a browser it
doesn'
1 - 100 of 214 matches
Mail list logo