alt.comp.lang.php
  Home FAQ Contact Sign in
alt.comp.lang.php only
 
Advanced search
September 2008
motuwethfrsasuw
1234567 36
891011121314 37
15161718192021 38
22232425262728 39
2930      40
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
alt.comp.lang.php Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  How to specify include_path on Windows php.ini file         


Author: Vic
Date: Sep 19, 2008 12:25

Hello,

I have almost got PHP5 working in IIS on my Vista machine. I've managed to
jump almost all of the hoops including working with MySQL but there is 1
last problem I having trouble resolving. This should be easy but I am
having trouble with how to specify the include_path in the php.ini file. I
want the includes to come from the root of the web site so I specified
include_path = ".;"

I get this message:
Warning: include() [function.include]: Failed opening 'showsec.inc' for
inclusion (include_path='.\') in C:\Users\vic\Documents\My
Webs\showmyhorse\forms\english\horses_list.inc on line 91

How should I specify the include path so that it always looks in the root of
the site when the path is not specifically specified. This is how it works
on my provider's machine so I want it to operate the same way. The provider
is a Unix machine so I don't think I can use the same format.

Thanks,

Vic
1 Comment
  newbie: Gubed in Quanta Plus         


Author: R.A.M.
Date: Sep 18, 2008 00:14

Hello,
I want to use Gubed debugger in Quanta Plus editor in Fedora 8 Linux.

I installed the following programs:
1. Apache/2.2.6 (Unix)
2. PHP Version 5.2.6
3. Quanta Plus 3.5.9
The software works fine I think because phpinfo.php displays valid
information and my PHP pages (created in /home/robert/public_html folder)
work fine.
Show full article (1.83Kb)
no comments
  Assigning color codes to numbers         


Author: Danny Terweij
Date: Sep 16, 2008 10:59

Hi,

I do have 4 temperature sensors.
I want to show the temperature in different colors.

Temperature's:
-20(and below) -15 -10 -5 0 5 10 15 20 25 30 35 40 45 50(and up)

I have 15 color codes for each number presented above.
So if 10 is green then green must be between 10 and 15, yellow between 15
and 20 etc etc.

If i do it with <>= AND/OR checks then the code will be very long.
if ($temp1 >= 15 AND $temp1 <20) { $sensor1color="#FFFFFF" }
if ($temp2 >= 15 AND $temp2 <20) { $sensor2color="#FFFFFF" }
if ($temp3 >= 15 AND $temp3 <20) { $sensor3color="#FFFFFF" }
if ($temp4 >= 15 AND $temp4 <20) { $sensor4color="#FFFFFF" }
etc etc

Is there a easy way to check and return colors?

Regards Danny.
5 Comments
  easy php 2 sur clé u3         


Author: pierre.malartic
Date: Sep 13, 2008 08:36

Bonjour,

Quelles démarches suivre pour installer easy php sur une clé u3 ?

merci de vos réponses
1 Comment
  [mini sondaggio] il successo di un sito         


Author: Stella stellina...
Date: Sep 13, 2008 02:04

Ciao ragazzi, vi propongo un piccolissimo sondaggio e mi piacerebbe
conoscere più pareri possibili. Secondo voi il successo di un sito si
valuta:

-dal numero di accessi diretti al giorno (quante persone digitano l'url
della home per vedere se ci sono novità)

-dal numero totale di visite al giorno (Google e altri siti in
particolare oltre al numero di accessi diretti etc.)

ve lo chiedo perchè ho un sito, bello graficamente, ricco di contenuti,
ma lentino negli aggiornamenti. Gli impegni di lavoro mi permettono di
inserire solo due notizie a settimana, motivo per cui quotidianamente
registra al massimo una decina di accessi diretti. Il numero complessivo
di visite al giorno al contrario è in media di 250 e passa visitatori,
gran parte provengono da google per articoli o notizie pubblicati in
precedenza e i restanti da altri siti che linkano le mie notizie.

Il sito ha 14 mesi di vista, secondo voi guardando solo al suddetto
rapporto tra numero di accessi e di visitatori (senza quindi tirare in
ballo altri parametri) può dirsi un sito di successo o comunque valido,
o è meglio che chiudo e vado a lavare le scale nei condomini nel tempo
libero? :)
Show full article (1.31Kb)
no comments
  Timezone database is corrupt         


Author: Zbigniew Lisiecki
Date: Aug 31, 2008 14:57

Hi,
a new version 3 of my forum software (phpbb) won't install due to a

PHP Fatal error: date(): Timezone database is corrupt
- this should *never* happen!

A Bug#492025 should already be solved in my php version 5.2.6-34.8 yet
it still appears. What makes me wonder is how my previous pphpbb version
is still working with time() and date().
If the database is really corrupted, how can i rebuild ? I reinstalled
mod_php5 and php5-packages.
Is it advisable to switch to php6 ? Does somebod know any workaround ?

thank you in advance
Zbyszek
2 Comments
  A better XSS trap (Feedback wanted)         


Author: Christopher Vogt
Date: Aug 30, 2008 10:25

Hej everybody,

I built something for myself that might help some of you as well.
Looking at a couple of PHP template engines made me think.

I have two main requirements for a presentation layer framework:
- use PHP as the template language
- effective XSS prevention without betting on discipline

Plain PHP only satisfies the first. I could not find a PHP template
engine that satisfies both. (Savant doesn't.)

So here is my own minimal solution and I would like to know your
opinion. Also, if anybody has seen something like it out there, please
point me to it.

The Idea:
Automatically wrap every string meant for output into an object, which
offers filtering methods like htmlentities. This also means intercepting
access to strings contained in Arrays and Objects. This can be done
using the Decorator pattern.

The code:
http://code.google.com/p/cvphplib/source/browse/trunk/cvphplib/
svn checkout http://cvphplib.googlecode.com/svn/trunk/cvphplib/
Show full article (2.99Kb)
no comments
  php & unicode, ISO nightmare         


Author: Nick Valeontis
Date: Aug 24, 2008 15:25

Hi to all!

I have written a small php script (q.php) which i use as a command line
metasearch utility. The idea is the same as with Yubnub. I assign a
prefix to each search engine i use. Then, when I want to search a
specific search engine, I add the proper prefix to the search keywords
and submit the whole search string to my php script. The php script
parses the string and redirects me to the proper search engine.

I have also created a form that one can use to submit data to the php
script. And the nightmare begins ...

The main problem is that the search engines I use may or may not be in
unicode. Some of them use UTF8, some of them ISO 8859-7 or rarely greek-
windows (take a look at http://www.papasotiriou.gr/). (yep, i am greek so
i use greek search engines, and many of them dont use unicode:o ) So ...

All redirections work as expected if *no* greek characters are used.
However, if greek characters are used, they sometimes get jumbled.

case 1:

I save q.php as ISO-8859-7.
Show full article (2.04Kb)
1 Comment
  Web Application Accessibility         


Author: krumphau
Date: Aug 19, 2008 17:48

Hi, I am conducting a study into the accessibility of Internet
application frameworks for a thesis in computer science and I would be
grateful if you would take the time to complete the following test,
its very short and would help a lot with this piece of research, I
will post a link to a summarized version when I have completed the
research.

http://www.krumphau.com/disapps/index.php

Regards

Andy
no comments
  CHM files         


Author: Franco
Date: Aug 18, 2008 08:39

Can someone help me to find a function or a class to write CHM files
from HTMLS.

Thanks
Fra.
2 Comments
1 2 3 4 5 6 7 8 9