Basically I use the MVC (Model View Controller) architecture when building my php
scripts. So all of my logic is
handled by a controller which calls methods on functions,
that way the php scritps that are used to display forms, tables etc. have little to no
business logic to them at all.
Now in
php-general Digest 24 Dec 2001 07:34:02 - Issue 1070
Topics (messages 78617 through 78641):
Re: Prev ... Next
78617 by: Andrey Hristov
Re: How to parse an XML document
78618 by: Manuel Lemos
Re: PHP software tool
78619 by: Dasmeet Singh Arora
If/else conditional s
Hi!
I have 2 types of images :PNG and Jpeg. They are w/o extension (its name
generated by tempnam and it is exported from DB). How can i show the both
in one script?
I tryed like this, but it doesn't work(i see one type, and error on
another):
$im = ImageCreateFromJpeg($picname);
$text="Some te
On Sunday 23 December 2001 03:11 pm, Robert Dyke wrote:
> <% If $varA == True Then %>
> Straight HTML in here that only displays if $varA == True
> <% Else %>
> Straight HTML in here that only displays if $varA != True
> <% End if %>
$varA was true.
$varA was false.
I heavily dislike this cod
thx for your help !
Since I am the only one who works on the whole server, it´s all my stuff :)
Yeah, but the increasing of the random_ID is surely a good way ..
Will check on that !
thx again ! :))
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Forgot a couple of double quotes and the mode for mkdir. Perfectionist, you
see... :-)
Bogdan
--
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 PRO
I do the same with is_file() in several scripts and it works just fine
without clearing the cache. Don't know about dirs but I can't see why it may
be different - should use the exact same functions internally.
On a side note, I'd rather recommend using a loop like
This way you have better cont
Hiya !
I am working on a download script right now,
and I have a question about a part of my code:
do
{
$random_ID = rand(10,99);
$download_dir = "$today $random_ID";
if (!@is_dir($download_dir))
mkdir("$download_dir",0777);
}while(@!is_dir($download_dir));
So, I do this loo
* Ben Ocean ([EMAIL PROTECTED]) [Dec 23. 2001 16:45]:
> >>./configure --with-apxs=/etc/httpd/bin/apxs --with-mysql=/usr/local/mysql
> >>--with-kerberos=/usr/kerberos --with-ldap=/usr/local/openldap
> >>So, what gives? I've googled this one and it appears there's a lot of
> >>folks with this qu
Why aren't you using the $_POST or $HTTP_POST_VARS array?
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com/
PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite/
"Philip Maciver" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Doe
* Todd Cary ([EMAIL PROTECTED]) [Dec 23. 2001 10:42]:
> I am quite new to the Linux environment and do not have experience with
> "make" files. The platform is RH Linux 7.2 with the included Apache and
> the PHP rpm, "php-devel-4.0.4pl1-9.i386.rpm". I need someone to give me
> the step by step
Does anyone know if it is possible to use the
'global $varName'
function with the '$GLOBALS' array itself.
I have been having some trouble with this. I have decieded to switch of
register_globals in the php.ini file (seeing as
it is now deprecated in version 4.1.0)
I know that register_global
Yeah i know it's offtopic =)
Anyway, i wish you all the best!
Cu in the next year!
Warm regards,
Emile
--
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: [E
Hi ... I'm getting ready to do a custom install of PHP on a Pair Networks
server, and I'm wondering which version I should go with. It seems like
version 4.1.0 has some major changes and new features, which can sometimes
create bugs in the world of software.
What are your thoughts? Pros and Con
At 02:32 PM 12/23/01 -0600, you wrote:
>At 12:16 PM 12/23/2001 -0800, Ben Ocean wrote:
>>Hi;
>>I get this error when I try to restart Apache:
>>
>>Syntax error on line 236 of /etc/httpd/conf/httpd.conf:
>>Cannot load /etc/httpd/libexec/libphp4.so into server:
>>/etc/httpd/libexec/libphp4.so
>>
>>
I apologize for not including all of the information. I did this as an
include file, which explains why it isn't working:
< !--- beginning of myinclude.php >
< ! --- end of myinclude.php --- >
< ! beginning of testfile.php --- >
Html here that should display only if $varA == Tr
At 01:11 PM 12/23/2001 -0700, Robert Dyke wrote:
>Hello:
>
>In ASP I can write a Conditional statement like this:
>
><% If $varA == True Then %>
>Straight HTML in here that only displays if $varA == True
><% Else %>
>Straight HTML in here that only displays if $varA != True
><% End if %>
>
>Transl
Hi,
Look at the code below first:
";
21 print "";
22 print "";
23 print "$pages[description]";
24 print $story[headline];
25 print "";
26 print "";
27 print " ";
28 print "";
29 print "";
30 print "";
At 12:16 PM 12/23/2001 -0800, Ben Ocean wrote:
>Hi;
>I get this error when I try to restart Apache:
>
>Syntax error on line 236 of /etc/httpd/conf/httpd.conf:
>Cannot load /etc/httpd/libexec/libphp4.so into server:
>/etc/httpd/libexec/libphp4.so
>
>The above file does, of course, exist. I'm runni
Took a better look at your code -- you've capitalized "true" -- that may be
it.
Bogdan
--
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]
What's the error, just a parse error on line xx?
O tend to do a lot of echo 'ing, so this suggestion may not be much help.
How about adding a semicolon?
Miles
At 01:11 PM 12/23/2001 -0700, Robert Dyke wrote:
>Hello:
>
>In ASP I can write a Conditional statement like this:
>
><% If $varA == True
Make sure you close the accolade afterwords in PHP -- other than that, yes,
it works just fine!
For example this should work just fine:
-
Found a multiple of three!
--
Bogdan
Robert Dyke wrote:
> Hello:
>
> In ASP I can write a Conditional statement like this:
>
> <% If $va
Hi;
I get this error when I try to restart Apache:
Syntax error on line 236 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/libexec/libphp4.so into server:
/etc/httpd/libexec/libphp4.so
The above file does, of course, exist. I'm running RH71 i386 with MySQL and
PHP installed from source
Hello:
In ASP I can write a Conditional statement like this:
<% If $varA == True Then %>
Straight HTML in here that only displays if $varA == True
<% Else %>
Straight HTML in here that only displays if $varA != True
<% End if %>
Translating this to PHP doesn't work:
// error is generated he
Check ConTEXT at http://www.fixedsys.com/context
It not only supports PHP but many other.Got good Syntax Highlighting and
other features.
On Sun, 2001-12-23 at 00:16, LaserJetter wrote:
> Does anybody know of or can recommend any freeware text editing tools for
> editing PHP code in Win32?
> I c
Hello,
Php Rules wrote:
>
> Hi fellas.
>
> I would like to know the way to parse an XML document.
>
> I come from Java world, and you can handle an XML document,
> and
> then show it as an HTML page.
>
> I suppose that it's also possible by using PHP, isn't it?
>
> I would like also to know
The sql is
select name from members limit offset,10;
you have to generate offet which _must_ be an integer.
Regards,
Andrey Hristov
- Original Message -
From: "Rambo Amadeus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 23, 2001 6:06 PM
Subject: [PHP] Prev ...
php-general Digest 23 Dec 2001 16:04:34 - Issue 1069
Topics (messages 78607 through 78616):
Help with permissions/ownership
78607 by: Gaylen Fraley
mail function not support in php 4.1.0 with compiled with IMAP ???
78608 by: Martin Fienkeng
Re: strtoupper and HTML entities
Hi,
I have about 100 names in mysql. How can i display them in groups of 10, and
have next and previous links.
Thanks
--
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 administrator
I am quite new to the Linux environment and do not have experience with
"make" files. The platform is RH Linux 7.2 with the included Apache and
the PHP rpm, "php-devel-4.0.4pl1-9.i386.rpm". I need someone to give me
the step by step process of creating a version of Apache that will
process PHP e
http://www.php.net/manual/en/ref.xml.php
HTH.
James Cox
> -Original Message-
> From: PHP Rules [mailto:[EMAIL PROTECTED]]
> Sent: 23 December 2001 10:15 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to parse an XML document
>
>
> Hi fellas.
>
> I would like to know the way to parse a
Hi,
I've some questions about building PHP on Win platform.
I use VC++6.0 and load workspace from the win32 directory. After loading I looked at
the configurations and found that there many.
Which one to choose? I want to make some experiments on win32 platform using Apache as
a webserver(so no
I have a file.html with a frame which target file.php
I can access to file.php : localhost/file.php : ok
I can access to file.html but the frame which target file.php display
"forbidden ...
? thanks [EMAIL PROTECTED]
_
D
Hi Chris,
> if he wants to burn a cd why dont you just copy the php dir onto a cd? why
> do you have to parse everything? as an admin I would rather the entire dir
> then the content of the executed script. plus on your side parseing every
> url recursivly and getting all the images etc, what a h
Hi fellas.
I would like to know the way to parse an XML document.
I come from Java world, and you can handle an XML document,
and
then show it as an HTML page.
I suppose that it's also possible by using PHP, isn't it?
I would like also to know if it's available in the 'standard
installation'
It works!
thanks a lot, Michael!!
mweb
On Sunday 23 December 2001 00:41, Michael Sims wrote:
> At 11:32 PM 12/22/2001 +0100, mweb wrote:
> >Hello,
> >
> >I know I can convert a string to all uppercases with the strtoupper()
> >function. However, what if the original string conta
36 matches
Mail list logo