[PHP] Is there any alternative to FuseBox?

2002-12-13 Thread Javier
I was reading FuseBox's beginners' guide but I didn't completely understood the way that framework works. How do you process the data obtained from forms? Is it the same script that displays the form? -- *** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig) -- PHP General Mailing List (

Re: [PHP] Is there any alternative to FuseBox?

2002-12-14 Thread Javier
[EMAIL PROTECTED] (Jason Wong) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: Hi, sorry that I didn't make it clear. I'm looking for an alternative to php-fusebox. So I was asking how do you process the data from forms and so. > On Saturday 14 December 2002 12:2

[PHP] Re: Querying two tables

2002-12-15 Thread Javier
[EMAIL PROTECTED] (Cesar Aracena) wrote in news:005801c2a3c6$8ac4f190 $4200a8c0@NOTEBOOK: And the subcategories are related to categories with the Relationships table? If that's the case: SELECT * FROM Relationships WHERE CatId = '1' And if you want the names. SELECT * FROM Subcategories as sc,

[PHP] Re: select * From ????

2002-12-15 Thread Javier
[EMAIL PROTECTED] (Bruce Levick) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: If you want to access the data in an array try $row['field'] > I am connecting to mysql and all works well there. I query a table > "Illustrations" ($query = "SELECT * FROM Illustrations";), and want to > print

Re: [PHP] Insert Record (php.ini)

2002-12-25 Thread Javier
There are single quotes missing before %s -> '%s' > $insertSQL = sprintf("INSERT INTO stories (firstName, lastName, > address1, > address2, city, `state`, country, postCode, telephone, email, title, > story) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", >Ge

[PHP] UltraTemplate's documentation

2002-12-25 Thread Javier
Hi! Has anybody got documentation for UltraTemplate? I read the examples on their website but I didn't understand it very well. Any doc. would be apreciated. :) -- *** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] Re: php app frameworks?

2002-12-27 Thread Javier
The only one I know is FuseBox www.fusebox.org. [EMAIL PROTECTED] (Jeff D. Hamann) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: > What application frameworks are avail for php? > > Jeff. > -- *** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig) -- PHP General Mailing List (h

Re: [PHP] php app frameworks?

2002-12-27 Thread Javier
[EMAIL PROTECTED] (Jason Sheets) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: Have you got any documentation of it to share? > If you go to www.hotscripts.com they have several PHP application > frameworks listed. > > I've investigated PHPLIB, and horde (http://www.horde.org) but wound

[PHP] How to store a file into MSSQL?

2003-07-15 Thread Javier
Hi everybody, I've trying to store a into a MSSQL Server (7 or 2k) using an example I found on the web (www.php.net). Is it possible that PHP (4.3.2) just store 4k of data? Because after inserting a test image with: $oDatos is an object that handles queries. // storing a file $datastring = jo

[PHP] Re: How to store a file into MSSQL?

2003-07-15 Thread Javier
[EMAIL PROTECTED] (Baroiller Pierre-Emmanuel) wrote in news:[EMAIL PROTECTED]: The field test is defined in SQL Server as "image". > How is defined your temp_test table ? > PHP don't truncate content... > you only need to define a binary blob field and store data into it.. > > regard, > P.E. Ba

Re: [PHP] How to store a file into MSSQL?

2003-07-16 Thread Javier
[EMAIL PROTECTED] (John Manko) wrote in news:[EMAIL PROTECTED]: Does it apply also to MSSQL = Microsoft SQL Server? > Look here > http://www.mysql.com/doc/en/BLOB.html > > Actually, if you don't care if the images can be view from outside the > DB, you can do what I do. > I simplely put the nam

[PHP] mail()

2003-07-22 Thread Javier
Hi, I need to send a reminder to all the users in my website. To minimize bandwidth I would like to send just an email to a domain and then all the remaining users in the BCC. What would be the $to field in mail() since I send all the destinations in $headers? Thanks. -- *** s2r - public key

[PHP] php weirdness

2003-07-22 Thread Javier
Hi, I'm running PHP 4.3.2 (cgi-fcgi) (win32). Everytime I run a script from the command line: php -q myscript.php The processor jumps to 100%, on the task manager I see that SERVICES in consuming 50% and PHP.exe the rest. I don't know why this happens, the script connects to a sql server I does

[PHP] Re: mail()

2003-07-22 Thread Javier
[EMAIL PROTECTED] (Joshua Groboski) wrote in news:[EMAIL PROTECTED]: but I will get a relaying is denied because the target domain isn't the same domain I am connected to for eg. yahoo.com > Why don't you send it to [EMAIL PROTECTED] I think as long as > the $to address doesn't fail, you'll be

Re: [PHP] mail()

2003-07-22 Thread Javier
[EMAIL PROTECTED] (Chris Shiflett) wrote in news:[EMAIL PROTECTED]: For eg: If I've got 20 users that have a yahoo email. I just want to connect one time to send all the 20 messages not a connection for every email. > --- Javier <[EMAIL PROTECTED]> wrote: >> I would

[PHP] Re: mail()

2003-07-22 Thread Javier
[EMAIL PROTECTED] (James Rodenkirch) wrote in news:[EMAIL PROTECTED] net.com: And what about the To? Is it possible to send an email without the To? > in the headers section of the mail() function have a line of text like > this - you would obviously need to build the list of email address. > >

Re: [PHP] Re: mail()

2003-07-22 Thread Javier
[EMAIL PROTECTED] (Curt Zirzow) wrote in news:20030722165644.GK67309 @bagend.shire: Ehh you're right, I'll let the mail server to handle that problem. :) > Why are you connection to yahoo to send this mail? sendmail should > handle who to connect to. > > > > Curt -- *** s2r - public k

Re: [PHP] Re: mail()

2003-07-22 Thread Javier
[EMAIL PROTECTED] (Chris Hayes) wrote in news:[EMAIL PROTECTED]: > Is your script on a yahoo.com PHP-enabled website? > > If not: most servers deny access to the mailer because mailers (often > SMTP servers) with public access have been widely abused in the past, > especially by spammers. If this

[PHP] Mssql error after upgrading to 4.3.2

2003-06-11 Thread Javier
ce in xxx.php Warning: mssql_free_result(): supplied argument is not a valid Sybase result resource in xxx.php Javier. -- *** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error in php after uprading

2003-06-18 Thread Javier
Hi, I've upgraded to the latest version of php last week. Suddenly parts of code that was working now displays error. The errors I've found until now are related to Sybase (I use MSSQL 2k as DB server) Here is an example: Warning: mssql_num_rows(): supplied argument is not a valid Sybase result

Re: [PHP] Error in php after uprading

2003-06-18 Thread Javier
[EMAIL PROTECTED] (John W. Holmes) wrote in news:[EMAIL PROTECTED]: > > Your query failed. Add some error reporting around mssql_query() to > find out why. > Thanks I'll check that. -- *** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig) -- PHP General Mailing List (http://www.php.net

Re: [PHP] Error in php after uprading

2003-06-20 Thread Javier
[EMAIL PROTECTED] (John W. Holmes) wrote in news:[EMAIL PROTECTED]: >> > > Your query failed. Add some error reporting around mssql_query() to > find out why. > Hi, I recompiled an older version of php with freetds 0.60 instead of 0.61 and everything start to work again. Maybe there is som

[PHP] problems with phpPgAdmin

2002-09-24 Thread javier
"Configuration Error: You must rename/copy config.inc.php-dist to config.inc.php and set your appropriate settings"; exit; } The file exists but I don't know why the function file_exists returns false. I also tried with another file in another dir. like index.php and I got

[PHP] Creating local vars from HTTP Post Array

2003-10-17 Thread Javier .
27;d like to do something like this - while(list($key, $val) = each($_POST)) eval("\$.$key = stripslashes($value)"); using a loop to create local variables for each variable in the HTTP Post array. I'm having trouble getting this

[PHP] Wich Database abstration layer?

2002-04-23 Thread Javier
Can anybody recomend me a "nice" DB abstraction layer that is not included in phplib? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Which Database abstration layer?

2002-04-23 Thread Javier
Can anybody recomend me a "nice" DB abstraction layer that is not included in phplib? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session Registering

2002-04-25 Thread Javier
I think you have to populate the data in your pages not to wait the browser to do the job. Cause sometimes work and some time not. Craig Donnelly wrote: > Im using session in my form, there are 6 pages to the form, It all works > fine, until You work your way back through the form, to ammend the

[PHP] Re: getting session data

2002-04-26 Thread Javier
To access session variables you need to use session_start() first. Deval Parikh wrote: > hi, > IF I am using this code in one script... > > a.php > - > > $userip = $REMOTE_ADDR; > session_name("sessiontest"); > session_register("userip"); > > ?> > > so how can i use above session dat

[PHP] session_register() twice?

2002-04-26 Thread Javier
What happens if I call session_start() twice? Does it creates another session? Cause something odd is going on with this simple script. if(!SesionActiva()){ -It checkes wether there an active session SesionCrear(); - It creates the session } /*SesionActivar();*/

Re: [PHP] session_register() twice?

2002-04-26 Thread Javier
t; On Fri, 26 Apr 2002, Javier wrote: > > >>What happens if I call session_start() twice? >>Does it creates another session? > > > It does nothing. > > if (PS(session_status) != php_session_none) > return; > > - Sascha

[PHP] avoiding creation of multiple sessions

2002-04-26 Thread Javier
How can I do to avoid creating a session when reload/refresh button is clicked? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] avoiding creation of multiple sessions

2002-04-26 Thread Javier
How can I do to avoid creating a session when reload/refresh button is clicked? every time reload button is clicked a new file in /tmp is created. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sessions and reload/refresh

2002-04-27 Thread Javier
Is it possible that everytime un click the refresh button a new session is created? Here's my index.php Every time refresh this page a new session is created. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: lookin for a Menuing System...

2002-04-28 Thread Javier
There are many Javascript menu editors. I think that's what you need. Dan wrote: > I could do this myself but I don't want to waist time writing something that > I could have just asked for.. > > what I need is a menuing system.. > > When link is clicked the sub-topics appear under the topic yo

[PHP] Re: Question for you guys on best tools for a job

2002-04-29 Thread Javier
Why don't you use javascript to refresh the page from time to time. Michael Champagne wrote: > I'm not even sure this is possible without doing a client side java applet of > some sort. > > We are considering porting a standard client/server application to the web > which updates itself dynamica

[PHP] Re: Emails sent out twice

2002-04-29 Thread Javier
What php are you using? Jean-Louis Letortorec wrote: > Hello all: > > I have a script that looks like: > > > ... > $name="Project #1"; > ... > $title="NEW PROJECT: ".$name; > $a=mail("[EMAIL PROTECTED], [EMAIL PROTECTED]",$title,$body, "From:[EMAIL PROTECTED]"); > ... > > > > When I execute

[PHP] Re: PHP is making errors for no apparents reason..?

2002-04-29 Thread Javier
How have you declared name? > $zquery = "SELECT name from users WHERE handle like '$row[handle]'; > $zres = mysql_query($zquery); > $zrow = mysql_fetch_array($zres); > $user = $zrow[name]; > $query = "INSERT into hus

Re: [PHP] Re: Very Large MySQL Query String

2002-05-06 Thread Javier
Hi, I think if you encode the file with base64 and store it in the database the size of the document will be more than 1MB sure. David Bouw wrote: > Dear Kirk (and Julio) > > Thanks for the response.. > > I don't want to use a link to the images because backing up my data and > porting it to an

[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Javier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What version of php and apache do you use? Andy wrote: | leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich | dann: | | Syntax error on line 953 of /usr/local/apache/conf/httpd.conf: | Cannot load /usr/local/apache/libexec/libp

[PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Javier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What about MD5? Jimmy Lantz wrote: | Hi, | started playing with Mcrypt and just wanted to ask which encryption | method makes the stronger encryption? | (I can supply the necesary keylength). | Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no

Re: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Javier
her |>types of encryption available with mcrypt... |> |>Thanks, |> |>Ray Hunter | | | How does MD5 relate to encrypting the file? It's just used as a hash function. | | --thalis | | |> |> |>-----Original Message- |>From: Javier [mailto:[EMAIL PROTECTED]] |>Se

[PHP] User validation and Session management

2002-03-25 Thread javier
Hi, I'm new to the newsgroup. I would like to know how can I do with php to keep user track and let him or not access to specified pages. I thought about validating (u/p) first and then giving a session variable. And then on each script I would check sessionID with a permissions table.

[PHP] Re: Another Session Question

2002-03-25 Thread javier
Have you got the url? John Fishworld wrote: > I've seen various tutorials on sessions where they specify the session id > instead of just using one > generated by php ! > > Why ? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] templates with php

2002-03-26 Thread javier
Has anybody uses other engine besides Smart or php-templates (@freebsd ports) I trying to get into the subject but I don't know which to start with. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sorting data from a field

2002-03-26 Thread javier
To do that is it necesary to loop the $result variable and assign each array($name => $value) ? > Alternately, you can load all of the unsorted results into an associative > array, and use PHP's native sorting functions (such as ksort() ) to sort the > results. > >

[PHP] require or include ?

2002-03-28 Thread javier
When should I use require or include? I read that include copies the content from the file to the script that is calling it. And require is like #include in C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] require or include ?

2002-03-28 Thread Javier
rom it. include() may be conditional. > > -Original Message----- > From: javier [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 28, 2002 4:44 PM > To: [EMAIL PROTECTED] > Subject: [PHP] require or include ? > > > When should I use require or include? > I read that

[PHP] Re: Help with e-mail...

2002-04-03 Thread javier
Have you got access to your host machine? You can send messages to your local user a then see if they reach destination. Chuck "Pup" Payne wrote: > I have just install a program called Web Calendar. It suppose to be able to > send reminders via e-mail but I am not sure if PHP is set up to send e

[PHP] php+myslq+IDE

2002-04-03 Thread javier
Is there any free app. for php coding? I tried komodo but I can't get it to work in debug mode. Also tried Zend's Studio but it expires. :( Is there any free choice? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php+java on freebsd

2002-04-03 Thread javier
Ivan Voras wrote: > Can anyone tell me how to get java support for php working? I compiled > apache with -pthread option, I properly configured php.ini > (phpinfo() agrees), but I cannot overcome this: > > (the message appears as a PHP error when trying to create any java objects) > > Fatal erro

Re: [PHP] php+myslq+IDE

2002-04-03 Thread javier
t; > - Original Message - > From: "javier" <[EMAIL PROTECTED]> > To: <> > Sent: Wednesday, April 03, 2002 4:40 PM > Subject: [PHP] php+myslq+IDE > > > >>Is there any free app. for php coding? I tried komodo but I can't get it >

[PHP] references a functions

2002-04-04 Thread javier
I trying to code a kind of DB wrapper. So when is dbQuery turn I run into trouble. I read in php manual that refrences are not like C pointers. They just point to the same content. I want to return the result from a mysql_query but if I do something like this: function bdConsultar($strCon)

Re: [PHP] references a functions

2002-04-04 Thread javier
I thought that apart from returning an id the result set was created within the scope of the function so when the function finishes the resulted was deleted; But since is just an id an the result is stored somewhere else I wouldn't need any reference. btw where can I read about references bes

Re: [PHP] references a functions

2002-04-04 Thread javier
Opossed to my thoughts worked fine. Rick Emery wrote: > What happened when you tried? > > -Original Message- > From: javier [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 04, 2002 1:01 PM > To: [EMAIL PROTECTED] > Subject: [PHP] references a functions > >

[PHP] mod_php4

2002-04-07 Thread javier
Will be any changes to mod_php4 since the release of apache 2.0.35? I wanted to compile it (freebsd ports) with a apache 2.0.33 and I had problems while compiling. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] templates and listbox

2002-04-10 Thread Javier
Does templates (eg php-templates or Smarty) fill automatically listboxes? Or do I need to code it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] templates and listbox

2002-04-10 Thread Javier
Does templates (eg php-templates or Smarty) fill automatically listboxes? Or do I need to code it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] templates and listbox

2002-04-11 Thread Javier
But does it use templates? I want to use templates not functions that generates html. Analysis & Solutions wrote: > On Wed, Apr 10, 2002 at 06:32:18PM -0300, Javier wrote: > >>Does templates (eg php-templates or Smarty) fill automatically listboxes? >>Or do I need to co

[PHP] Apache htpasswd

2005-07-05 Thread Javier
Hi I ve a little script to validate a user using an Apache htpasswd file. I want to know how could/should I generate a crypted hash (with crypt or md5) with the entered password to match the password in the htpasswd file. I know how to use md5 or crypt functions but passing them entered passwor

Re[2]: [PHP] Apache htpasswd

2005-07-07 Thread Javier
ust yet and can't >verify this, but use the steps as a guide to building your >implementation. > >Post some code if you're still having trouble, Hi Thanks for your help. I checked my PHP support CRYPT_MD5, then I did the following: I've generated a user javier with pas

Re[4]: [PHP] Apache htpasswd

2005-07-07 Thread Javier
On 07/07/2005 at 14:23 Richard Lynch wrote: > >Aha! > >Since your output has an extra '$' after the $apr and before the >1$n0/. I'm gonna go out on a limb and suggest you probably shouldn't >add the '$' to the front of your salt. > >You're adding it, and crypt() is adding it, and you've got to

[PHP] object method overloading

2002-12-03 Thread Javier Montserat
can you do method overloading in php as you can in java? Javier _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net

RE: [PHP] Controlling Access

2003-08-26 Thread Javier Tacon
You can play with a $_SESSION var, .. Imagine that you have the file a.php with .. And you want b.php that can only be executed after a.php: And so ... -Mensaje original- De: Doug Wolfgram [mailto:[EMAIL PROTECTED] Enviado el: martes, 26 de agosto de 2003 17:45 Para: [EMAIL PROTECT

[PHP] Php.ini doesn't exit

2003-04-02 Thread Javier Carreras
Hi all, Where does PHP get its settings if php.ini file doesn't exist? BTW- I want to enable sockets that are not enabled. Could I do that without creating a php.ini file? Regards, Javi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Login / Authentication Class

2002-07-23 Thread Javier Montserat
I've been developing a simple (protecting nuclear secrets it aint) login / authentication class library. This code is designed to - 1. check unname & password are completed 2. check uname & password contain only permitted chars (a-z,1-9) 3. match user against dbase user table 4. generate a uniq

[PHP] re: OO Programming - get practical

2002-07-23 Thread Javier Montserat
For a really good overview of the OO programming read "Thinking in Java" by Bruce Eckel. What you learn can then easily be applied to your coding practices in PHP. The author has made the book available for free from his site www.mindview.com _

[PHP] control structure question

2002-07-23 Thread Javier Montserat
is there a more programmatically elegant way of saying... $isError = ""; function main() { doStep1(); if (!$isError) { doStep2(); } if (!$isError) { doStep3(); } // etc. etc. } function doStep1() { if ($something) { $isError = 1; } } f

Re: [PHP] control structure question

2002-07-23 Thread Javier Montserat
is more elegant than using a series of if() statements. Thanks, Javier >For steps and sequences, I always use switches. Most commonly associated >with the "action" variable, it would look like this: > >switch($action) { >default: > // what to show if no var

[PHP] exec / mkdir question

2002-08-12 Thread Javier Montserat
i'm using the following code to create a directory :- $temp = exec("mkdir $path"); it doesn't work... i've validated the $path var which is correct. i suspect it is a permissions issue. what should i look for to resol

[PHP] insert query fails w/ postgres database

2002-08-22 Thread Javier Montserat
'::datetime)"); Table looks like this - CREATE TABLE "files" ( "filename" oid, "type" varchar(30), "size" int, "uploaded" datetime ); Any Ideas? Saludos, Javier

[PHP] oops - solved re: insert fails w/ postgres database

2002-08-22 Thread Javier Montserat
the filename field is of type 'oid' rather than 'character varying'... yep, inserting a string into an oid feild will make the db baarrrfff... Saludos Javier _ Chat with friends online, try

[PHP] setcookie IE6 problem

2002-08-29 Thread Javier Montserat
p the cookie - either way I get logged out. Other browsers (NS4, IE5, IE5.5) seem okay. Any Ideas? Javier _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] setcookie IE6 problem

2002-08-29 Thread Javier Montserat
machine generated xml privacy statement, >then stability with regards >to cookies is not guaranteed. Do a search and read up about it. Check out >w3c's site. > >- Original Message - >From: "Javier Montserat" <[EMAIL PROTECTED]> >To: <[EMAIL PROTEC

[PHP] Re: Cannot get data from form.

2002-08-29 Thread Javier Montserat
. Writing... if (isset($_GET['foo'])) { $foo = $_GET['foo'] } elseif (isset($_POST['foo'])) { $foo = $_POST['foo'] } when I want to use $foo is a bit annoying, but i haven't figured out a more elegant way of saying this yet. Javier >> That

[PHP] Re: how do I send information to a php page from a menu list

2002-09-02 Thread Javier Montserat
make a selection > Bueno, Javier --=_NextPart_000_0055_01C252D0.ADA4A940 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, how do I send information to a php page from a menu list? When a user selects an ite

[PHP] sorting array question

2002-09-03 Thread Javier Montserat
ut re-reading the directory each time? Would an associative array structure be better suited to this type of operation? Thanks for your insight, Javier _ Chat with friends online, try MSN Messenger: http://messenger.msn.com

[PHP] greeting based on time

2002-09-03 Thread Javier Montserat
really simple one - does someone have a bit of code that will variously display 'good morning', 'good afternoon', 'good evening' based on the current time? good morning from london, Javier _ Se

[PHP] Class operator :: Problem

2002-09-03 Thread Javier Montserat
i think because you assign a method to the variable rather than a data member you need to include parenthsis... a::test() >> I have problems to make a dynamic call, please help me returns: Fatal error: Call to undefined function: a::test() in /usr/local/share/version2.mypsi.de/index.

[PHP] re: Refering to an object from within an array variable in another class

2002-09-03 Thread Javier Montserat
s fun to play with code... Hope this helps in some way, Javier /* But this syntax doesn't: and this would be prefered, as it doesn't directly access the 'bars' variable... */ $reference_to_bar = $this->GetBar($id) ; echo $reference_to_bar->marklar; $reference_to_bar->

[PHP] re: Refering to an object from within an array variable in another class

2002-09-03 Thread Javier Montserat
I believe the following discussion from Web Application Development with PHP 4.0 (available online at http://safari.oreilly.com) may shed some light on your question... >> Whenever PHP encounters a statement for which write access to a variable is needed, it evaluates and calculates the data

[PHP] Re: XML vs Everything Else

2002-09-04 Thread Javier Montserat
>Spend some time learning about xml and you won't regret it Could you (or anyone else on the list) recommend some good resources (Books / Websites) for learning XML and XSLT? Thanks, Javier _ MSN Photos is the easies

[PHP] formatting a filename

2002-09-05 Thread Javier Montserat
i want to format the filename of an uploaded file as follows :- -- replace blankspace with "_" -- remove any illegal characters. Which string functions should I use to do this? Thanks, Javier _ Join the world’s larg

[PHP] Re: formatting a filename

2002-09-05 Thread Javier Montserat
$filename = strtolower (eregi_replace ("[^A-Za-z0-9_.]", "_", $filename)); seems to be what I want. thanks to everyone for the help Javier _ Send and receive Hotmail on your mobile device: http://mobile.msn.c

[PHP] setting .htaccess authentication with PHP

2002-09-27 Thread Javier Montserat
would this be done? Thanks, Javier _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] quotes in text strings

2002-10-02 Thread Javier Montserat
't seem to work (maybe its me). Thanks Javier _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] weird IE cookie problem

2002-10-14 Thread Javier Montserat
Hi I've successfully been using the following code to set cookies in IE / NS / Mozilla. I've just bought a new laptop and in IE 5.5 and 6 the cookies are not being set by my site. Other sites (msn etc) set cookies fine. I've installed Mozilla and this accepts cookies fine. WTF is wrong wit

Re: [PHP] weird IE cookie problem

2002-10-14 Thread Javier Montserat
ahhh. a combination of incorrect timezone on my new laptop and the server time being slightly out was causing my head a lot of pain... thanks for the pointer, Jav >From: Marco Tabini <[EMAIL PROTECTED]> >To: Javier Montserat <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTE

[PHP] left click downloads

2002-11-12 Thread Javier Montserat
I want to make it easier for people to download files from my website by having the download start when the visitor clicks a link (as opposed to right click / save target as). How can I achieve this with PHP? Do I include the file in a header() call ? Thanks, javier

RE: [PHP] left click downloads

2002-11-13 Thread Javier Montserat
ing 'magic bytes' of known file formats. hope this is useful to some of you... javier From: "David Russell" <[EMAIL PROTECTED]> To: "'Javier Montserat'" <[EMAIL PROTECTED]> Subject: RE: [PHP] left click downloads Date: Tue, 12 Nov 2002 13:46:58 +02

[PHP] Re: Works in html, not when echoed in PHP

2002-11-13 Thread Javier Montserat
rather than using echo why not just do this - ?> onresize="window.location.reload(false)" topmargin="1" bottommargin="0" leftmargin="0" rightmargin="0"> ?> this way you don't have to worry about getting the quotes right... Hello, "Aaron Merrick" <[EMAIL PROTECTED]> wrote: Folks, Can'

[PHP] PHP download problem IE5 on mac

2002-11-14 Thread Javier Montserat
e appears. However - IE on a MAC loads the file inline rather than throwing the save prompt. Any ideas? Javier _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 --

[PHP] Re: multiple file upload

2002-11-14 Thread Javier Montserat
ding email to multiple recipients etc. Have Fun, javier _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: multiple file upload

2002-11-14 Thread Javier Montserat
here's a couple of the more tricky code snippets which should make it easy for folks to see how a multiple file upload select can work - the rest is basically a lot of interaction with the database - storing / retrieving the upload list. Its a bit tricky but worth it though - the users responci

[PHP] php 4.3 and php_pgsql.dll

2002-06-18 Thread Alexander Javier
hello people, i seem to have a little problem here. I hope someone could help. i have a machine running apache on linux and another one with apache on winxp. i've downloaded and installed the php-4.3-alpha version s for linux and windows. mysteriously, the php_pgsql.dll is not included in the w

RE: [PHP] PHP Interview questions

2003-08-26 Thread Javier Tacon
Yes, I gree with all. To test their mySql level, you can show them two tables, and the results from a join between the two tables, so you ask them for what is the SELECT statement to get that results. Example .. Table1: ++-+-+--+ | id | name| surname | depa

RE: [PHP] speed of mail() on two servers

2003-08-27 Thread Javier Tacon
I think that may be 'problem' from sendmail .. mail() function under linux only interacts with sendmail, it doesn't contact to the remote SMTP to leave the mail. Do you have the same sendmail version in two machines? You should compare both sendmail configuration and try to check the speed from a

RE: [PHP] speed of mail() on two servers

2003-08-27 Thread Javier Tacon
May be the machine of your friend has a better network output than your machine :) -Mensaje original- De: David T-G [mailto:[EMAIL PROTECTED] Enviado el: miercoles, 27 de agosto de 2003 11:59 Para: PHP General list CC: Javier Tacon Asunto: Re: [PHP] speed of mail() on two servers

RE: [PHP] Looping through a list - Newbie question

2003-08-27 Thread Javier Tacon
There are a lot of methods. The most common is using an array: $_SESSION['sv_CampusList'] = Array ("1","2","3","4","5"); foreach($_SESSION['sv_CampusList'] as $id) { echo $id; } If you want to use sv_CampusList as string: $_SESSION['sv_CampusList'] = "1,2,4,5"; $tmpArr = explode(",",$_SESSION

RE: [PHP] Urgent help required for using Cron

2003-08-28 Thread Javier Tacon
For example, you want execute a script every day at 09:00 am: $ crontab -e And put this line: 0 9 * * * /path/to/your/php/binary /path/to/your/script.php Crontab only can say if the cron was executed correctly or not, but it doesn't say if your script in php has sent the mail correctly or not.

RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
You can write a little script with expect (man expect) and execute it from php with exec(). Other solution its to write a .procmailrc in root that executes the reboot when coming a mail with some text in subject or boyd, so, from php you only need to send a mail. -Mensaje original- De

  1   2   3   >