[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
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 include copies the content from the file

[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

[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 error:

Re: [PHP] php+myslq+IDE

2002-04-03 Thread javier
- 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 to work in debug mode. Also tried Zend's Studio but it expires. :( Is there any free choice? -- PHP General

[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

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

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 I trying to code a kind of DB

[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] 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 - ?php $userip = $REMOTE_ADDR; session_name(sessiontest); session_register(userip); ? so how can i use above session data in another

[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
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 Experience IRCG http://schumann.cx

[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 function MostrarPaginaPrincipal() { include html/index.html; } include include/sesiones.php; include

[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 you

[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 dynamically

[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 this code (there is

[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 husers

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 another

[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

[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

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

2002-05-21 Thread Javier
|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]] |Sent: Tuesday, May 21, 2002 2:43 PM |To: [EMAIL

[PHP] problems with phpPgAdmin

2002-09-24 Thread javier
/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 the same result. -- *** javier - public key: (http

[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

Re[2]: [PHP] Apache htpasswd

2005-07-07 Thread Javier
for your help. I checked my PHP support CRYPT_MD5, then I did the following: I've generated a user javier with password javier in my htpasswd file and got this: Automatically using MD5 format. javier:$apr1$nO/.$x0j4FfqCIQqgtqPckVUkO1 Then I did the following code

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 too much

[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:25, Javier w

[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

[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 the

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),

[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,

[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

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 up

[PHP] Mssql error after upgrading to 4.3.2

2003-06-11 Thread Javier
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

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

[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 =

[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. Baroiller

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 name of

[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

[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

[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 like to send just an email

[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 key:

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 is

[PHP] Creating local vars from HTTP Post Array

2003-10-17 Thread Javier .
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 to work. Anyone help? Cheers, Javier

RE: [PHP] session vars with recursive form

2001-01-12 Thread Javier Muniz
This is probably due to the fact that form values don't override session values... this is a feature, not a bug. (imagine if i could do: http://www.yourdomain.com/highsecurity.php?user=admin and magically become admin... very broken security) -jm -Original Message- From: bill

RE: [PHP] Levels of Access

2001-01-17 Thread Javier Muniz
Just a side note: A very nice way to do this is using bitwise operators to store all your access information into one int This is handy for saving space in databases, and bitwise operations should be incredibly fast compared to string comparisons. Cheers, Javier -Original Message

[PHP] Session problem?

2001-01-19 Thread Javier Muniz
I am using the following function to add a serialized object to a session: function add_toCart($id,$array) { session_register("OBJECT"); $c = new Configurator; $c-readConfig($id); $OBJECT = serialize($c); header("Location: Cart.php"); echo

RE: [PHP] Session problem? (Correction)

2001-01-19 Thread Javier Muniz
The session file is not empty :) the OBJECT portion of the session file is empty. i.e. cat'ing /tmp/sess_whatever yields: !OBJECT| -jm -Original Message- From: Javier Muniz [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:57 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Session

[PHP] Help. creating excel file form mysql

2001-03-15 Thread Javier Onate
Hello, I need to create excel files from data stored in mysql. I'm using php in a linux box, so as far as I know I cant use COM functions. Is there a way to do what I intend Tank you -- Javier Onate Mendia [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Javier Muniz
should probably be: function philtime($time) { $hours = ($time - ($time % 3600)) / 3600; $min = (int) (($time % 3600) / 60); return ("$hours:$min"); } This way you don't risk rounding up on your first cast to int and being off by an hour... rounding is ok, however, for

RE: [PHP] Giving my script the power!

2001-03-29 Thread Javier Muniz
I do a similar thing on my machines, only instead of having a java daemon that runs as root I chose to create a database that the php script can insert user and other information into, then a perl script that is called from cron that fetches from the database and does the necessary user adds.

[PHP] Issues with fopen long file names?

2001-12-20 Thread Javier Muniz
. Javier Muniz Granicus, LTD. (www.granicus.com) Tel: (415) 522-5216 Fax: (415) 522-5215 -- 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]

[PHP] what's wrong with IE?

2002-03-22 Thread Alexander Javier
why is the $HTTP_POST_VARS array empty if i use IE? when i used NN, everything's ok. please help! - Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards®

[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

[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

[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; } }

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 variable exists, or is set to a value

[PHP] How can I execute a Command - rsh

2002-04-15 Thread Javier Casado
I have installed a php server into a w2000 machine, and i must create a user into a service of a sun machine, using a comand like $ executable param1 param2 where param1, param2,... are forms' entries (W2000 IIS form). Can I do a rsh (or a telnet) sesion with php? How... tnkx --

[PHP] rsh or telnet, possible?

2002-04-15 Thread Javier Casado
I must execute a command in a sun machine, but the web server is IIS (into a W2000 machine). The parameters are the form's fields. Is it possible (better rsh, telnet is valid)? tankx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] newbie question: templates with frames

2002-04-15 Thread Alexander Javier
Hello to all. Please help me in this problem of mine. I have an html template with a frame. I'm using phplib's templating functions to replace values in the templates. How do i also replace values both in the main template (frleft.htm) and in the html page contained in the frame? My code

[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 resolve this? thanks, javier

[PHP] insert query fails w/ postgres database

2002-08-22 Thread Javier Montserat
varchar(30), size int, uploaded datetime ); Any Ideas? Saludos, Javier _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List

[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 MSN Messenger: http

[PHP] setcookie IE6 problem

2002-08-29 Thread Javier Montserat
) 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
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 PROTECTED] Sent: Thursday, August 29, 2002 1:39 PM Subject: [PHP] setcookie IE6 problem I'm setting a session cookie

[PHP] Re: Cannot get data from form.

2002-08-29 Thread Javier Montserat
['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's the way it works in the newer PHP for security reasons. I had to rewrite all my

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

2002-09-02 Thread Javier Montserat
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 item from the list I would like to be able to = send

[PHP] sorting array question

2002-09-03 Thread Javier Montserat
to this type of operation? Thanks for your insight, 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] 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 _ Send and receive Hotmail on your

[PHP] Class operator :: Problem

2002-09-03 Thread Javier Montserat
? class a { function test() { echo Hallo; } } $testfunct = a::test(); $testfunct; ? 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 ? class a {

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

2002-09-03 Thread Javier Montserat
, 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-SetMarklar($value) ; echo $reference_to_bar-marklar; print_r($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 easiest way

[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 largest e-mail

[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.com -- PHP General

[PHP] setting .htaccess authentication with PHP

2002-09-27 Thread Javier Montserat
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://www.php.net

[PHP] PHP + MySQL problem (strange behavior)

2001-12-05 Thread Javier Muniz
, when i attempt to do the following update with PHP, it sets it to 0: UPDATE mytable SET starttime=starttime-30 WHERE name = 'myname' but when I run it from the MySQL command line, copy/pasted from the code, it sets the value of starttime to 30 as expected. Anyone have any clue why this is? Javier

RE: [PHP] PHP + MySQL problem (strange behavior)

2001-12-07 Thread Javier Muniz
Unfortunately, mysql returns no error string. MySQL doesn't appear to think it's an error, as it does apply changes to the row I'm trying to change, it simple isn't applying the CORRECT change to said row :) -Javier -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent

[PHP] formating numbers

2001-08-24 Thread Javier Bellido
Hi people! I'm trying to migrate my site from perl to PHP4. The question is how I get numbers look like this: 0001, 0002, etc Thanks for your time help Javier Bellido -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP] help on mail and proxy

2001-06-18 Thread Javier Onate
to the administrative rules of the client. Perhaps you have any suggestions to make this mails arrive. I will really appreciate your help. Than you in advance -- Javier Onate Mendia [EMAIL PROTECTED]

[PHP] Problem with timeouts

2001-06-22 Thread Javier Muniz
) the script gets CGI Application Timeout: The specified CGI application exceeded the allowed time for processing. The server has deleted the process. after 5 minutes of execution. I'm running PHP 4.04pl1 under IIS 4.0. Any help is greatly appreciated. Thanks, -Javier -- PHP General Mailing List

RE: [PHP] XSLT problems....

2001-02-06 Thread Javier Muniz
In my experience this is caused by an error in your .xsl... not exactly the most verbose error so I don't know what's actually happening here. -jm -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 5:34 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Passing files to a browser

2001-02-08 Thread Javier Muniz
Actually, if you read the manual entry for fpassthru, it states that the filehandle will be closed by fpassthru upon reading. So you're trying to close your filehandle twice... get rid of the fclose($fp) at the end and you should be fine. -jm -Original Message- From: Christian Reiniger

[PHP] php site, parse error

2001-02-15 Thread Javier Muniz
Looks like the PHP site is down, parse error on site.inc... just an FYI :) -- 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]

RE: [PHP] php site, parse error

2001-02-15 Thread Javier Muniz
Definately a bit frightening that a virtually static site has an include that is over 300 lines long :) Maybe just well documented? -jm -Original Message- From: Martin A. Marques [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 12:40 PM To: [EMAIL PROTECTED] Subject: Re:

  1   2   3   >