[PHP] select tag doesn't update post or get

2006-08-08 Thread Roel Dillen
I have a xhtml form with a select with options

if I click submit the processing page is loaded and the result of the form is
shown.
The option given to the processing page however is always the same: the first
in the list. It doesn't matter what I select in the drop down menu, the value
of $_POST['nameOfSelectTag'] (or get for that matter) never differs from the
first value in the drop down list. I don't use a default selected value
because the option tag values are dependent on the contents of a certain
table in my database.

The weird thing is that in get mode the field nameOfSelectTag does take the
right value in the adress bar but that doesn't get translated into the correct
value in $_GET so i am thinking the same happens in $_POST.

Ideas anyone

Roel

--
Scarlet Club: Iedereen wint! Indien u nu klant wordt van Scarlet via een 
bestaande Scarlet klant kunnen jullie beide cadeaucheques ontvangen ter waarde 
van 50 euro! Bezoek snel http://www.scarletclub.be

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] starting shell script on server: defer acces when running

2006-06-06 Thread Roel Dillen
I have a shell script I want to run which generates an html page after it
runs some tests on the software I am writing.

I call the script with exec(…);

The tests take more than 2 minutes to complete.

If I try to run more than one test at the same time: trouble.

 

I want to solve this by checking somehow whether the tests are running.

If so, then the php code just waits until the running test are complete,
referring the second user to the same results page as the first.

 

Ideas anyone?

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/356 - Release Date: 5/06/2006
 


[PHP] CFP: DLS05: ACM Dynamic Languages Symposium

2005-04-17 Thread Roel Wuyts
   CALL FOR PAPERS FOR THE
   ACM Dynamic Languages Symposium 2005
October 18, 2005
San Diego, California
  (co-located with OOPSLA'05)
   URL: http://decomp.ulb.ac.be:8082/events/dls05/
---
Abstract
---
In industry, static languages (such as Java, C++ and C#) are much more 
widely used than their dynamic counterparts (like CLOS, Python, Self, 
Perl, php or Smalltalk). So it appears as though dynamic language 
concepts were forgotten and lost the race.

But this is not the case.
Java and C#, the latest mainstream static languages, popularized to a 
certain extent dynamic language features such as garbage collection, 
portability and (limited forms of) reflection. In the near future, we 
expect this dynamicity to increase even further. E.g., it is getting 
clearer year after year that pervasive computing is becoming the rule 
and that concepts such as meta programming, reflection, mobility, 
dynamic reconfigurability and distribution are becoming increasingly 
popular. All of these features are the domain of dynamic languages, and 
hence it is only logical that more dynamic language concepts have to be 
taken up by static languages, or that dynamic languages can make a 
breakthrough.

Currently, the dynamic language community is fragmented, split over a 
multitude of paradigms (from functional over logic to object-oriented), 
languages and syntaxes. This fragmentation severely hinders research as 
well as acceptance, and results in either language wars or, even worse, 
language ignorance. The goal of this symposium is to provide a highly 
visible, international forum for researchers working on dynamic 
features and languages. We explicitly invite submissions from all kinds 
of paradigms (object-oriented, functional, logic, ...), as can be seen 
from the structure of the program committee.

Areas of interests include, but are not limited to:
- closures
- delegation
- actors, active objects
- constraint systems
- mixins and traits
- reflection and meta-programming
- language symbiosis and multi-paradigm languages
- experience reports on successful application of dynamic languages
Accepted Papers will be published in the ACM Digital Library.
---
Submission Guidelines
---
Papers will need to be submitted using an online tracking system, of 
which the URL will be given later.

All papers must be submitted electronically in PDF format (or 
PostScript, if you do not have access to PDF-producing programs, but 
this is not recommended). Submissions, as well as final versions, must 
be formatted to conform to ACM Proceedings requirements: Nine point 
font on ten point baseline, two columns per page, each column 3.33 
inches wide by 9 inches tall, with a column gutter of 0.33 inches, etc. 
See the ACM Proceedings Guidelines. You can save preparation time by 
using one of the templates from that page. Note that MS Word documents 
must be converted to PDF before being submitted.

--
 Important Dates
--
- Deadline for receipt of submissions: June 24th 2005
- Notification of acceptance or rejection: August 5th 2005
- Final version for the proceedings: To be announced later
---
Program Committee
---
- Gilad Bracha
- Wolfgang De Meuter
- Stephane Ducasse
- Gopal Gupta
- Robert Hirschfeld
- Dan Ingalls
- Yukihiro Matsumoto
- Mark Miller
- Eliot Miranda
- Philippe Mougin
- Oscar Nierstrasz
- Dave Thomas
- David Ungar
- Guido Van Rossum
- Peter Van Roy
- Jon L White (G)
- Roel Wuyts (Chair)
--
Roel Wuyts  
  DeComp
[EMAIL PROTECTED]   Université Libre de 
Bruxelles
http://homepages.ulb.ac.be/~rowuyts/
Belgique
Vice-President of the European Smalltalk Users Group: www.esug.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] removing line breaks

2003-12-05 Thread Roel Derckx
Hi

I want to remove line breaks from the front of a string, but i can't get it
to work. Who can help me?

The code i tried is:
while(substr($body,0,1)==\n) $body=substr($body,1);

i also tried:
while(substr($body,0,2)==\n) $body=substr($body,2);
but this doesn't work either.

Both codes WON'T remove line breaks in the body string. Note that i only
want to remove line breaks in the start of the string, all line breaks in
the rest of the string should remain.

Who can help me? Thnx

--
Regards,
Roel Derckx aka ThunderStrike
Main Organizer Ambience 98-2002  [ www.ambience.nl ]
Chairman  Sponsoring Manager Ambience Foundation

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Meta Refresh

2003-01-17 Thread roel
Try this:

$NewID = $ID + 1; (instead of the $NewID assignment you've got now...)


Edson Waite [EMAIL PROTECTED] schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi All,

 I am trying to make an automated tour as a section of my site, using the
 following.

 ?php
 $NewID = $colname_earlytour + 1;
 ?
 META HTTP-EQUIV=refresh CONTENT=15 URL=early-tour.php?ID= ?php echo
 $NewID;?

 This works great going from early-tour?ID=1 to early-tour?ID=2 but I can't
 get it to continue on to ID=3, ID=4 etc. It just keeps reloading the data
 from ID=2

 The data for each page is in a row identified by a unique ID# I just want
 the page to reload with the data from the next ID# after a givin time 15
 seconds.

 Thanks in advance for any ideas,
 Edson Waite III
 http://www.sportsvideooutlet.com







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] [phplib template] file does not exist

2003-01-16 Thread roel
Thank you, this helped me to find the problem. It seemed that i had to set
the $root variable in the templated class, although i never had to do this
on the other server, but it works now. Thanks!!


Marek Kilimajer [EMAIL PROTECTED] schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 First go to the file that generates the error and find out how it knows
 the template file does not exists

 roel wrote:

  Hi,
 
 i'm having a problem. I just installed a webserver with mysql and php. I
 copied my files that i had stored on another webserver to my new. I
didn't
 change anything to these files and the files worked fine on the other
 server.
 
 Now in this server i get this error with a template:
 Template Error: filename: file ./templates/nav_left_body.tpl.php does
 not exist.
 Halted
 
 But that file does exist. I can see it through ftp an i can get to it via
 http browser.
 
 What could be wrong? Could it be a config failure in my php.ini? Or in
 httpd.conf? In case it is the config, what could it be?
 
 Thanks in advance!!
 
 
 
 
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] [phplib template] file does not exist

2003-01-15 Thread roel
 Hi,

i'm having a problem. I just installed a webserver with mysql and php. I
copied my files that i had stored on another webserver to my new. I didn't
change anything to these files and the files worked fine on the other
server.

Now in this server i get this error with a template:
Template Error: filename: file ./templates/nav_left_body.tpl.php does
not exist.
Halted

But that file does exist. I can see it through ftp an i can get to it via
http browser.

What could be wrong? Could it be a config failure in my php.ini? Or in
httpd.conf? In case it is the config, what could it be?

Thanks in advance!!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] how do i get the browser's screen resolution?

2001-12-09 Thread Roel Derckx

Hi

I'm working on a large portal-like php/html site with some large graphics.
The original design is for 1024x768 and up, but i also want it to be well
viewable under 800x600 so parts of the design have to be resized for that.

BUT, i can't seem to get that kind of information from within PHP. I found a
way around (check it with Javascript and store it as a cookie), but that's
not working fine for me.

Can someone tell me:
- how do i get the browser's screen resolution returned in a variable?
OR
- how can i read Javascript variables under PHP?

Help please.

Regards,
Roel



-- 
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]