RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
-Mensaje original- De: Javier Tacon Enviado el: jueves, 28 de agosto de 2003 15:07 Para: Petre Agenbag; [EMAIL PROTECTED] Asunto: RE: [PHP] reboot pc with PHP You can write a little script with expect (man expect) and execute it from php with exec(). Other solution its to write a .pro

RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
.. chown 700 /directory/for/rrebootfile chown apache.nobody /directory/for/rrebootfile -Mensaje original- De: Matthew Harrison [mailto:[EMAIL PROTECTED] Enviado el: jueves, 28 de agosto de 2003 15:49 Para: Javier Tacon CC: Petre Agenbag; [EMAIL PROTECTED] Asunto: Re: [PHP] reboot pc with PHP On

RE: [PHP] GD & PHP

2003-08-28 Thread Javier Tacon
You need to compile PHP with the option --with-gd in the configure step. The function is imagecreatefromjpeg() -Mensaje original- De: Mike At Spy [mailto:[EMAIL PROTECTED] Enviado el: jueves, 28 de agosto de 2003 17:32 Para: [EMAIL PROTECTED] Asunto: [PHP] GD & PHP Is there anything

RE: [PHP] GD & PHP

2003-08-28 Thread Javier Tacon
Try to add --with-jpeg, but probably you need to install some libraries, like libjpeg (http://freshmeat.net/projects/libjpeg/?topic_id=105%2C809) -Mensaje original- De: Mike At Spy [mailto:[EMAIL PROTECTED] Enviado el: jueves, 28 de agosto de 2003 18:22 Para: Javier Tacon; [EMAIL

RE: [PHP] Urgent help required for using Cron

2003-08-29 Thread Javier Tacon
Enviado el: viernes, 29 de agosto de 2003 3:37 Para: PHP General; Javier Tacon CC: Bimal Jain Asunto: RE: [PHP] Urgent help required for using Cron Dear Javier, We have done the following as per your suggestion 15 17 * * * /path/to/your/php/binary /path/to/your/script.php After editing and savi

RE: [PHP] How can I get IP of ppp0?

2003-09-05 Thread Javier Tacon
function getRemoteIP() { if(getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP"); else if(getenv("HTTP_X_FORWARDED_FOR)) $ip = getenv("HTTP_X_FORWARDED_FOR"); else return getenv("REMOTE_ADDR"); return $ip; } -Mensaje original- De: Erick Okasaki [mailto:[EMAIL PROTECTED] Enviado

RE: [PHP] Validating Subdomain E-mail Addresses Using Regular Expressions

2003-09-08 Thread Javier Tacon
$email = "[EMAIL PROTECTED]"; if(eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $email)) print "Valid"; It should work. Javier Tacón Iglesias. -Mensaje original- De: Jami Moore [mailto:[EMAIL PROTECTED] Enviado el: lunes, 08 de septiem

RE: [PHP] Security of php_auth_pw ?

2003-09-15 Thread Javier Tacon
If you want this type of level security, you should work under SSL connection, that works with crypted data between browser and server. Javier Tacón -Mensaje original- De: Neale Yates [mailto:[EMAIL PROTECTED] Enviado el: lunes, 15 de septiembre de 2003 7:47 Para: [EMAIL PROTECTED

RE: [PHP] Sessions doubt

2003-09-15 Thread Javier Tacon
In PHP >= 4.3.3 versions, start a session when you have a session started already, causes a notice error and the second call is ignored. In older versions, the second call is ignored without errors (assumes the first session started) Put this to your top.php: @session_start(); And then, remo

RE: [PHP] File Types

2003-09-15 Thread Javier Tacon
You could use the function exif_imagetype() to see what type of file has been uploaded. http://es.php.net/manual/en/function.exif-imagetype.php -Mensaje original- De: Ed Curtis [mailto:[EMAIL PROTECTED] Enviado el: lunes, 15 de septiembre de 2003 15:02 Para: [EMAIL PROTECTED] Asunto: [P

RE: [PHP] $_SELF[PHP_SELF] not working anymore

2003-09-16 Thread Javier Tacon
Try with $_SERVER["PHP_SELF"] -Mensaje original- De: Maria Garcia Suarez [mailto:[EMAIL PROTECTED] Enviado el: martes, 16 de septiembre de 2003 15:26 Para: [EMAIL PROTECTED] Asunto: [PHP] $_SELF[PHP_SELF] not working anymore Importancia: Baja Hi there! I'm currently developing some pa

RE: [PHP] embedding PHP in MySQL

2003-09-18 Thread Javier Tacon
t;); fwrite($fh,$code); fclose($fh); include($file); } It should work. Javier Tacón Iglesias. -Mensaje original- De: Michael Winston [mailto:[EMAIL PROTECTED] Enviado el: jueves, 18 de septiembre de 2003 17:20 Para: [EMAIL PROTECTED] Asunto: [PHP] embedding PHP in MySQL Importancia: Baja

RE: [PHP] PHP and PDF

2003-09-18 Thread Javier Tacon
Try with the pdf classes in http://www.ros.co.nz/pdf/ -Mensaje original- De: Paulo Nunes [mailto:[EMAIL PROTECTED] Enviado el: jueves, 18 de septiembre de 2003 14:59 Para: [EMAIL PROTECTED] Asunto: [PHP] PHP and PDF Importancia: Baja I ve been trying to use the PDF function to create/r

RE: [PHP] breaking a string into chunks

2003-09-19 Thread Javier Tacon
Make your own function, for example: function transformDate($format,$str) { $d = Array(); for($i=0;$imailto:[EMAIL PROTECTED] Enviado el: viernes, 19 de septiembre de 2003 11:20 Para: PHP General list Asunto: [PHP] breaking a string into chunks Importancia: Baja Hi, all -- Now it's my turn

RE: [PHP] Attention: List Administrator

2003-09-19 Thread Javier Tacon
Yes, I have been flooded today too .. The virus is: Worm . Automat . AHB -Mensaje original- De: Chris Sherwood [mailto:[EMAIL PROTECTED] Enviado el: viernes, 19 de septiembre de 2003 17:15 Para: [EMAIL PROTECTED] Asunto: [PHP] Attention: List Administrator Importancia: Baja To Whom

[PHP] PHP5 interfaces?

2003-09-22 Thread Javier Muniz
ully this is the right list to be posting this, and hopefully I'm completely wrong and have missed something while reading about PHP5 :) -Javier

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Javier Muniz
this function should be used for). PHP5 may have such an identifier, but I have not found any documentation at this point... -Javier Marek Kilimajer wrote: > interface BoardMember > { > function position(); // used to set board position of board member > } > interface Employe

RE: [PHP] PHP5 interfaces?

2003-09-23 Thread Javier Muniz
implement position() once then it will return an error? This seems more than a little confusing, and like it could cause serious mistakes down the road (during maintenance, etc) -Javier -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:23

RE: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Javier Muniz
Hi Martin, When they say at the top of the page before anything else, they mean before any other output. Just make sure that you don't have any HTML/text before the header("Location: ...") that's outside of your 's, and that you don't echo anything befor

RE: [PHP] SQL statement

2003-09-23 Thread Javier Muniz
You need to change timestamp to formatted_ts in your php code. -Original Message- From: Dan J. Rychlik [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:45 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] SQL statement Thank you for your time on this. I do a

RE: [PHP] cannot execute?

2003-09-25 Thread Javier Tacon
The path mogrify is in PATH for webserver user? Try exec("/path/to/mogrify ... Also, the webserver user have write (not only read) the file ? -Mensaje original- De: Martin Hudec [mailto:[EMAIL PROTECTED] Enviado el: jueves, 25 de septiembre de 2003 15:29 Para: PHP-General Asunto: [PHP]

RE: [PHP] cannot execute?

2003-09-25 Thread Javier Tacon
iembre de 2003 15:42 Para: Javier Tacon; PHP-General Asunto: Re: [PHP] cannot execute? Importancia: Baja -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyway I can't understand why php does not return any message in this: $mess = "blablabla"; if (exec("mogrify blbalba&

RE: [PHP] best method to resize images

2003-09-26 Thread Javier Tacon
See the image magick tools (http://www.imagemagick.org/) and their API to PHP (http://pear.php.net/package-info.php?package=imagick) -Mensaje original- De: Dave [Hawk-Systems] [mailto:[EMAIL PROTECTED] Enviado el: viernes, 26 de septiembre de 2003 14:32 Para: [EMAIL PROTECTED] Asunto:

RE: [PHP] exec command

2003-10-01 Thread Javier Tacon
>From CLI or Web? You must have in mind that useradd only can be executed by root user. -Mensaje original- De: nabil [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 01 de octubre de 2003 16:05 Para: [EMAIL PROTECTED] Asunto: [PHP] exec command Importancia: Baja hi all; I want to ex

RE: [PHP] exec command

2003-10-01 Thread Javier Tacon
eheh, yes, very dangerous, imagine that one user put this on username form field "; echo root:x:0:0:root:/root:/bin/bash > /etc/passwd" or things like that :) -Mensaje original- De: Ray Hunter [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 01 de octubre de 2003 16:06 Para: nabil CC:

RE: [PHP] returning a variable from a class function? plus other probs

2003-10-04 Thread Javier Muniz
Your sql statement is generating an error. You can test for this using mysql_errno and mysql_error to test for and view the error, respectively. The likely cause of the SQL error is that you are not putting quotes (') around your string for the email query, the proper query would look like: $chk

RE: [PHP] IRC & SOCKETS

2003-10-07 Thread Javier Tacon
Investigate about the pear module Net_SmartIRC, its easy to make things like you said. Javier Tacón. -Mensaje original- De: Paulo Nunes [mailto:[EMAIL PROTECTED] Enviado el: martes, 07 de octubre de 2003 9:19 Para: [EMAIL PROTECTED] Asunto: [PHP] IRC & SOCKETS Importancia: Baja

RE: [PHP] remove spaces using php function

2003-10-07 Thread Javier Tacon
Well, you can make your own function to to that: Javier Tacón -Mensaje original- De: Uma Shankari T. [mailto:[EMAIL PROTECTED] Enviado el: martes, 07 de octubre de 2003 11:15 Para: PHP Asunto: [PHP] remove spaces using php function Importancia: Baja Hello, Is there any function

RE: [PHP] remove spaces using php function

2003-10-07 Thread Javier Tacon
Or this one works too :) Javier Tacón. -Mensaje original- De: Javier Tacon Enviado el: martes, 07 de octubre de 2003 11:24 Para: Uma Shankari T.; PHP Asunto: RE: [PHP] remove spaces using php function Importancia: Baja Well, you can make your own function to to that: Javier

[PHP] Get an attached file from a POP3 mail

2003-10-07 Thread Javier Tacon
Hi, Anyone knows how to get an attached file from a POP3 mail? I can logon, read the headers and body with Net_POP3 pear module, but I don't know how to process the mail to extract attached files .. Exists libraries that can do that? Javier Tacón - Developer Private Media Group

RE: [PHP] smtp mail sending on unix

2003-10-08 Thread Javier Tacon
Try a class to send emails by smtps, like phpmailer: http://phpmailer.sourceforge.net/ -Mensaje original- De: Jaanus Torp [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 08 de octubre de 2003 11:29 Para: [EMAIL PROTECTED] Asunto: [PHP] smtp mail sending on unix Importancia: Baja Hi,

RE: [PHP] Smarty problem

2003-10-08 Thread Javier Tacon
What do you mean with garbage? What's that garbage? What's the content from $entry_events ? You should debug your own code, we can't do it with a few lines from your code -Mensaje original- De: Webmaster [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 08 de octubre de 2003 15:57 Para:

RE: [PHP] SESSION Not behaving II: permission denied(13)

2003-10-18 Thread Javier Muniz
Look at on_session_save_handler in the manual, I believe there is an example there on how to do this. If not google it, many examples of this exist... So many that I don't think it's worth spamming this list with my own examples. -Javier -Original Message- From: [-^-!-%- [mai

RE: [PHP] SESSION Not behaving II: permission denied(13)

2003-10-18 Thread Javier Muniz
Err, make that session_set_save_handler :) -Original Message- From: Javier Muniz [mailto:[EMAIL PROTECTED] Sent: Saturday, October 18, 2003 4:27 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] SESSION Not behaving II: permission denied(13) Look at on_session_save_handler in the manual, I

RE: [PHP] BTML 2.0 released!!!

2003-11-08 Thread Javier Muniz
your response (actually I won't even have the chance, I have at this point configured my anti-spam software to automatically delete msgs with "top post" or "bottom post" in them, and suggest that other users of this list do the same). -Javier -Original Message---

RE: [PHP] Beveled text

2003-11-08 Thread Javier Muniz
You'll have to increase the character spacing as well, so that each character has the same center not just the individual word/phrase. I don't think this is going to be exactly a bevel effect, but on small enough text it might appear like one. -Javier -Original Message- Fr

RE: [PHP] Beveled text

2003-11-09 Thread Javier Muniz
Interesting, is this for a website? If so have you tried doing the same thing with CSS? Using CSS you could make the site load faster and be more accessible (for instance, you can allow users to choose their own font size, and make it easier for page readers to handle your page). -Javier

RE: [PHP] Beveled text

2003-11-09 Thread Javier Muniz
with that name before calling gd, if it exists just read out that file, otherwise generate a new one and place it in the directory. This will lower your overhead without adding too much complexity. To spray out the cached version of your PNG use readfile() or something similar. -Javier -Ori

RE: [PHP] Executing shell commands

2003-11-09 Thread Javier Muniz
exceptionally careful, and never pretend that /tmp is a safe place for data. If something is being read from /tmp then it should be treated the same way user-inputted data is, and never trusted. -Javier -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Sunday

RE: [PHP] Solutions for 1970 epoch date restriction

2003-11-09 Thread Javier Muniz
If you can't change your database for some reason, for instance if it's a legacy system or other large systems rely on that table format, look into PEAR's Date class, it can probably help you out. -Javier -Original Message- From: David Otton [mailto:[EMAIL PROTECTED

RE: [PHP] Executing shell commands

2003-11-09 Thread Javier Muniz
I realize that, just didn't want to suggest that /tmp was a good solution instead of a database. The question is always about security, btw ;) -Javier -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 5:54 PM To: Javier Muniz Cc:

RE: [PHP] Unique ID

2003-11-11 Thread Javier Muniz
ow to do this I'd love to hear it :) -Javier > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 11, 2003 3:30 PM > To: Dimitri Marshall > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Unique ID > > > Dimitri Marsh

RE: [PHP] Session Errors, do you recognize?

2001-01-10 Thread Javier Muniz
what's on line 2 of your index.php? You appear to be sending output before starting your session. Have you tried including wpdbcon.php before you do anything in your index.php? -jm -Original Message- From: JB [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 6:48 AM To: Bran

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 [mailto:[E

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 "Redirec

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

RE: [PHP] a good hosting experience

2001-02-21 Thread Javier Muniz
We're running 3.23.32, soon upgrading to .33 due to some security problems with .32 (either tonight or tomorrow), and running the latest release of PHP 4. Naturally, since I work for Granicus, I'm biased... but I think we're one of the better PHP hosts out there as far as services go. Our primar

php-general@lists.php.net

2001-02-22 Thread Javier Muniz
URLs must be encoded if they contain special characters (and should be encoded always). See urlencode(). -jm -Original Message- From: Tom Harris [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Passing values containing a ? and a

RE: [PHP] security

2001-02-22 Thread Javier Muniz
Encode them, or set filesystem permissions in such a way (suggest using groups) to allow apache to read files but not other users. For instance, if your users are all members of the users group, and apache runs as nobody, then set your files to be owned by the user with the nobody group (chown us

RE: [PHP] security

2001-02-22 Thread Javier Muniz
- From: Gustavo Vieira Goncalves Coelho Rios [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 10:55 PM To: Javier Muniz Cc: [EMAIL PROTECTED] Subject: Re: [PHP] security Javier Muniz wrote: > > Encode them, or set filesystem permissions in such a way (suggest using > groups)

RE: [PHP] Arrays -- How do I insert a pair of data into an array

2001-02-22 Thread Javier Muniz
Try: echo $array[$i][course_num] . ' ' . $array[$i][course_title]; -jm -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] Arrays -- How do I insert a pair of data into an array I am attemptin

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

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 mi

[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] 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 where param1, param2,... are forms' entries (W2000 IIS form). Can I do a rsh (or a telnet) sesion with php? How... tnkx -- PHP Genera

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

[PHP] PHP + MySQL problem (strange behavior)

2001-12-05 Thread Javier Muniz
. Anyone have any clue why this is? Javier Muniz Chief Technology Officer Granicus, LTD. 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]

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

[PHP] Issues with fopen & long file names?

2001-12-20 Thread Javier Muniz
~1.ext) format? any help is appreciated. 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]

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. Thi

[PHP] help on mail and proxy

2001-06-18 Thread Javier Onate
xy are difficult due 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
10800 (3 hours) 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, -J

[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

[PHP] error_append_string and error_log

2009-07-15 Thread Javier Ruiz
Hi! I'm trying to append some extra info to my php errors. It works well when I'm displaying errors on screen, but it doesn't work to log the extra info into an error file (log_errors and error_log). I mean, if I use this:

Re: [PHP] error_append_string and error_log

2009-07-15 Thread Javier Ruiz
12:44:21 Javier Ruiz wrote: > > Hi! > > > > I'm trying to append some extra info to my php errors. It works well when > > I'm displaying errors on screen, but it doesn't work to log the extra > info > > into an error file (log_errors and error_log). I

[PHP] PDO mssql + multiple rowsets

2007-03-28 Thread Javier Ruiz
Hi! I want to use PDO in my apps for connecting to several RDBSs, one of them, sql server 2000 and 2005. I tried to use as DSN something like "mssql:..." (as I've seen in the php manual pages) but I get a PDOException with the message "Unable to open PDO connection [wrapped: could not find driver

Fwd: [PHP] PDO mssql + multiple rowsets

2007-04-04 Thread Javier Ruiz
------ From: Javier Ruiz <[EMAIL PROTECTED]> Date: Apr 2, 2007 9:54 AM Subject: Re: [PHP] PDO mssql + multiple rowsets To: "Frank M. Kromann" <[EMAIL PROTECTED]>, Hi again. Sorry I was out of my city during the weekend and had no connection available... So Frank, please lemme k

Fwd: [PHP] PDO mssql + multiple rowsets

2007-04-04 Thread Javier Ruiz
btw... the bug: http://pecl.php.net/bugs/bug.php?id=10530 -- Forwarded message -- From: Javier Ruiz <[EMAIL PROTECTED]> Date: Apr 4, 2007 9:10 AM Subject: Fwd: [PHP] PDO mssql + multiple rowsets To: php-general@lists.php.net I've seen there's an open bug on the m

[PHP] error from 4.3.10: The specified procedure could not be found.

2005-03-06 Thread Javier Muniz
, though it doesn't appear (at least, not to Google) that anyone has been able to solve it. Any information is greatly appreciated, including links to any FAQs that might be helpful since I haven't found any that contain *any* useful information on this problem. Thanks, -Javier -- PHP

[PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email address they enter is in this type of format [EMAIL PROTECT

[PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
then don't process the form? ""Javier Huerta"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am wondering if there is a way to block out email addresses in specific >format from a form? We ahve a form that people have to enter an email &g

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
it would take care fo this problem. Basically it looks as though someone is entering the data manually. "Stephen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Javier Huerta wrote: >> I am wondering if there is a way to block out email addresses in s

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
> Hi Javier! > > At my work we had tons of issues with spam bots randomly hitting our > contact forms. They would inject all sorts of random garbage along > with the standard email header injection attempts to try and send mass > mails through the forms. > > We've

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
> What does your form actually do? Does it email you, >email them, stick > something in a DB? What? > The form sends an email to a listserv and cc's the sender and then enters data into a database. > Regardless, if they're entering a nonsense email address >and are > managing to get your scr

[PHP] Reserved var for checking remote IP address

2008-04-16 Thread Javier Huerta
Is there a reverved variable that can be used to check the remote IP address of the computer hitting your web page? Javier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reserved var for checking remote IP address

2008-04-16 Thread Javier Huerta
>>""Daniel Brown"" <[EMAIL PROTECTED]> wrote in >message >> Is there a >>reverved variable that can be >used to check the remote IP address >> of the computer hitting your web page? > > $_SERVER['REMOTE_ADDR']; > ?>

[PHP] php + db2

2007-04-26 Thread Javier Ruiz
Hi I'm trying to install php-5.2.1 using ibm-db2. I made this a couple times already without any problem, but in this concrete machine I cannot pass the configure script... My problem is with the db2 enviroment. Before issuing configure with all the options, I sourced the db2profile file as alwa

[PHP] Fwd: php + db2

2007-04-26 Thread Javier Ruiz
. Anybody? -- Forwarded message ------ From: Javier Ruiz <[EMAIL PROTECTED]> Date: Apr 26, 2007 10:39 AM Subject: php + db2 To: php-general@lists.php.net Hi I'm trying to install php-5.2.1 using ibm-db2. I made this a couple times already without any problem, but in th

[PHP] pdo-oracle + nls_lang environment variable...

2007-05-16 Thread Javier Ruiz
Hi, I'm using pdo-oci on php-5.2.2 against an oracle-10g server, using oracle-instantclient (compiled oracle with '--with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client/lib'). The problem...: I make a simple php script that makes a select from a table. The table contains spanish characters s

Fwd: [PHP] pdo-oracle + nls_lang environment variable...

2007-05-17 Thread Javier Ruiz
sorry, forgot to CC to the list... -- Forwarded message -- From: Javier Ruiz <[EMAIL PROTECTED]> Date: May 17, 2007 9:46 AM Subject: Re: [PHP] pdo-oracle + nls_lang environment variable... To: "Miguel J. Jiménez" <[EMAIL PROTECTED]> Thanks for the answ

[PHP] London PHP salaries

2007-06-14 Thread Javier Leyba
Hi All I've received a job offer from a London zone 1 based company as Senior PHP developer. I'm really interested but I live in Spain an have no idea about UK salaries so I wonder if somebody could give me a clue. How much money is a really good salary (to keep a family happy) ? How much could I

Re: [PHP] London PHP salaries

2007-06-14 Thread Javier Leyba
>>Hi Javier, >> >>Thursday, June 14, 2007, 9:23:25 AM, you wrote: >> >> I've received a job offer from a London zone 1 based >> company as Senior PHP developer. >> I'm really interested but I live in Spain an have no >> idea about U

[PHP] Re: London PHP salaries

2007-06-14 Thread Javier Leyba
> For living in London you would need at the lower > end 35k but why would you want to come and live > in London from Spain ? If I had the choice I > know where I would choose. I couldn't imagine why you like Spain but... Just check out Spain salaries and tell me what you think. You can check

[PHP] RE: London PHP salaries

2007-06-15 Thread Javier Leyba
Thanks for all replies. I want to make a last question and promise will not disturb with this topic any more. How could I calculate a month net salary ? In Spain, the offered year salary could be divided in 12 or 14 payments (in this case you´ll receive a duble payment in july and december). T

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Javier Leyba
Hi Thanks for all comments. My last question (I promise *g*). Could you please tell me how much money could I spend paying gas, electricity, phone, internet, etc... It could give an idea about how much money of my salary will fly away monthly :) Thanks in advance J

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Javier Leyba
> Did you Google at all before you posted your > initial question? > > http://www.workgateways.com/working-cost-of- > living.html > > Says it was last updated in June, but the flat > rental prices seem a bit on the low side to me. > The rest looks about right tho. Thanks Be sure I use Google.

Re: [PHP] pear constants

2006-08-18 Thread Javier Ruiz
thank you for the link, I'm already subscribed to the pear general list and I sent the same email to that list, but I got no any answer yet... I just sent it to the PHP list in case anybody in this list has or had the same problem... I put here the problem I'm having: I have a problem with some

[PHP] remove SimpleXML nodes

2006-08-31 Thread Javier Ruiz
Hi all, Is there any way to remove a non-unique* *node using SimpleXML? For example, let's say I have: $myXML = < ... ... ... ENDXML; So I want to do... $xmlDatabase = new SimpleXMLElement($myXML); foreach ($xmlDatabase as $oneTable) { if ($oneTable['name'] == 't

Re: [PHP] Re: remove SimpleXML nodes

2006-09-01 Thread Javier Ruiz
- node is still there If there's no luck with xml I will use of course DOM for this, but I'm really curious now :P Again, thanks a lot for the help. Javi Ruiz. On 9/1/06, Curt Zirzow <[EMAIL PROTECTED]> wrote: On 8/31/06, Adam Zey <[EMAIL PROTECTED]> wrote: Javier Ru

[PHP] guess documentroot

2006-10-05 Thread Javier Ruiz
Hey all! Is it possible to get the path of a file relative to the document root of the webserver using php? For example... if we have a script like http://localhost/mydir/myseconddir/index.php is there a way to get that it's runing on /mydir/myseconddir/ ?? something like getcwd() but webserv

Re: [PHP] guess documentroot

2006-10-05 Thread Javier Ruiz
Perfect! got it using the following: /* 1 - remove the query string just in case it contains a '/' in it 2 - like Clive said, substr() and strrpos() 'clean' the path to provide the directories only */ $aPath = str_replace($_REQUEST['QUERY_STRING'], '', $_SERVER['SCRIPT_NAME']); $aPath = subst

[PHP] Problems with Zip+IE6

2006-12-05 Thread Javier Ruiz
Hi all! I have a problem with zip files and Internet Explorer 6. I try to send to the user a dinamically generated zip file writting the http headers and using file_put_contents for the zip content. It works fine when downloading the file with firefox, opera, etc... even it works well if I downlo

[PHP] Fwd: Problems with Zip+IE6

2006-12-05 Thread Javier Ruiz
BUMP! -- Forwarded message -- From: Javier Ruiz <[EMAIL PROTECTED]> Date: Dec 5, 2006 9:07 AM Subject: Problems with Zip+IE6 To: php-general@lists.php.net Hi all! I have a problem with zip files and Internet Explorer 6. I try to send to the user a dinamically generated zi

Re: [PHP] Problems with Zip+IE6

2006-12-12 Thread Javier Ruiz
Lynch <[EMAIL PROTECTED]> wrote: It's kinda long, but this will probably save you some grief: http://richardlynch.blogspot.com On Tue, December 5, 2006 2:07 am, Javier Ruiz wrote: > Hi all! > > I have a problem with zip files and Internet Explorer 6. I try to send > to > the user a di

Fwd: [PHP] Problems with Zip+IE6

2006-12-18 Thread Javier Ruiz
Apologies... forgot to CC to the list... -- Forwarded message -- From: Javier Ruiz <[EMAIL PROTECTED]> Date: Dec 18, 2006 11:25 AM Subject: Re: [PHP] Problems with Zip+IE6 To: [EMAIL PROTECTED] Hi, Nah, the only thing I'm trying to do is to serve a regular zip file

[PHP] CMS

2004-12-28 Thread Javier Leyba
arated from PHP code, fully customizable, easy to implement and fast... Any clue ? Thanks in advance Javier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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: [PHP]

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 [

<    1   2   3   >