php-general@lists.php.net

2007-12-01 Thread Rafael
e use of COM objects (and there goes the security), but Andrei says the solution should be cross-browser, so this doesn't look like an option. Rafael. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] window.open() and search engines

2007-10-23 Thread Rafael
It depends on the way you do it, for instance, something like ... will, but if you use something like ... chances are it won't. Edward Kay wrote: Can anyone say for sure whether window.open() links get spidered by search engines? From my experience they don't, but I use a custom Ja

Re: [PHP] Unsetting a header

2007-10-21 Thread Rafael
Let me reiterate, I want this page to get cached, but not based on an Expires: header. Rather a Last-Modified header. Have you tried setting the value to FALSE, NULL, or something else? I recall having read something along those lines. I'll see if I can find it again, meanwhile you could expe

Re: [PHP] Re: installing error

2007-05-26 Thread Rafael Mora
thank you jared!, Im gonna try WAMPP!!, I hope this work, and a message for php people: nice product but make it easy! lol thank you Rafa On 5/26/07, Jared Farrish <[EMAIL PROTECTED]> wrote: > Thank you very much for you answers!!! =), but Im trying to work with > PostgreSQL. I have never in

Re: [PHP] installing error

2007-05-26 Thread Rafael Mora
PROTECTED]> wrote: > > On 5/26/07, Richard Davey <[EMAIL PROTECTED]> wrote: > > Hi Rafael, > > > > Saturday, May 26, 2007, 12:38:15 AM, you wrote: > > > > > Hello does anyone know the correct way to install PHP and APACHE > (last > > > versio

[PHP] installing error

2007-05-25 Thread Rafael Mora
Hello does anyone know the correct way to install PHP and APACHE (last versions both of them) on WinXP???, Im doing it with the installers and I cannot even run phpinfo(); script, I see apache's error log and it says that i cant find SAM directory Thank you in advance Rafa

[PHP] Re: Check HTML style sheet?

2006-10-21 Thread Rafael
the file included in the html is new.css. I think I will have to write a regex but if anyone has any ideas (or already has a regex to do this), it would be much appreciated. Thanks, Marc -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How to effectuate translations

2006-09-29 Thread Rafael Mora
Hi!, well u can write ur messages in differents files, and like a make a class where u can put a method like getMessage($_type), this class could contains the language already selected, and just load the messages for that language in a "array"(or another easy to use PHP data structure). What do y

Re: [PHP] How do I call an class?

2006-09-08 Thread Rafael Mora
Hi! I think u are confused, the variable name doesnt have anything to do with the Class name... So you can have something like this: $myvar = new shuttle(); $jjj = new ISS(); u just need to be sure that u are using the exact name of the class, it doesnt matter the variable name, hope u get c

[PHP] Re: Formating a Double

2006-09-06 Thread Rafael
mente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Handling Library?

2006-08-31 Thread Rafael Mora
Hi!, u can extend the exception class and handle ur own errors, If u need help let me know! Rafa On 8/31/06, Jay Paulson <[EMAIL PROTECTED]> wrote: I've been doing some research and was wondering if anyone out there has written a library for error handling? I haven't found anything as of yet

Re: [PHP] send a file or stream

2006-08-31 Thread Rafael Mora
you Rafa PS: what is that ob_start though? On 8/31/06, Curt Zirzow <[EMAIL PROTECTED]> wrote: On 8/29/06, Rafael Mora <[EMAIL PROTECTED]> wrote: > Hi! > > i want to send a file or output stream in a .php, but first compress it, I > tryed the example to compress files bu

Re: [PHP] send a file or stream

2006-08-30 Thread Rafael Mora
oing what you do below readfile() without any argument? So that you are actually downloading something empty? :) /Peter -Original Message----- From: Rafael Mora [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 8:00 PM To: php-general@lists.php.net Subject: Re: [PHP] send a fi

Re: [PHP] Query result column to array

2006-08-30 Thread Rafael Mora
Hi!! What I do is just this: $_ar = array(); while($_field = mysql_fetch_row($_result)) {$_aloft["$_field[0]"] = "$_field[1]";} while(list($_key,$_val) = each($_ar)) On 8/30/06, Christopher Watson <[EMAIL PROTECTED]> wrote: I'm looking for a native method for taking all of the value

Re: [PHP] send a file or stream

2006-08-30 Thread Rafael Mora
achment; filename="stations.gzip"'); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize(stations.gzip)); readfile("stations.gzip"); /Peter PS! To maintain the list and its functionality, do not post same message multiple time

Re: [PHP] send a file or stream

2006-08-29 Thread Rafael Mora
as you output, the server can not send any more header information, and the browser will think it is just text instead of treating it as an octet-stream. /Peter _ From: Rafael Mora [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 10:25 AM To: Peter Lauri Cc: php-general@lists.p

Re: [PHP] send a file or stream

2006-08-29 Thread Rafael Mora
("Content-Type: application/octet-stream"); readfile("stations.gzip"); On 8/29/06, Peter Lauri <[EMAIL PROTECTED]> wrote: Should do it then. if you know the path to the file :) _ From: Rafael Mora [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 1

Re: [PHP] send a file or stream

2006-08-29 Thread Rafael Mora
ok thank you Im going to test it!! =) On 8/29/06, Peter Lauri <[EMAIL PROTECTED]> wrote: Should do it then… if you know the path to the file :) -- *From:* Rafael Mora [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, August 30, 2006 10:10 AM *To:* Peter

Fwd: [PHP] send a file or stream

2006-08-29 Thread Rafael Mora
-- Forwarded message -- From: Rafael Mora <[EMAIL PROTECTED]> Date: Aug 29, 2006 11:09 PM Subject: Re: [PHP] send a file or stream To: Peter Lauri <[EMAIL PROTECTED]> 1. A user sends a request to your server to get a compressed file 2. You compress the file on the

[PHP] Test!

2006-08-29 Thread Rafael Mora
Hello! this is a test, can anyone tell me if u are getting my emails?? Thank you

Re: [PHP] replace single and double quotes

2006-08-29 Thread Rafael Mora
Hi! i want to send a file or output stream in a .php, but first compress it, I tryed the example to compress files but how do i do to send as answer to the http request?? Rafa

[PHP] send a file or stream

2006-08-29 Thread Rafael Mora
Hi! i want to send a file or output stream in a .php, but first compress it, I tryed the example to compress files but how do i do to send as answer to the http request?? Rafa

[PHP] Re: string problem

2006-07-10 Thread Rafael
l_chassis.building, "tbl_chassis.other,tbl_chassis.status,tbl_chassis.chasis_eos,tbl_chassis.chasis_eol,tbl_chassis.chasis_user_field_1,tbl_chassis.chasis_user_field_2,tbl_chassis.chasis_user_field_3" "from tbl_chassis tbl_chassis,tbl_card tbl_card " "WHERE tbl_chassis.serial_no = t

[PHP] Re: comparing a string

2006-06-21 Thread Rafael
(inline --and last post on this thread) Adam Zey wrote: Rafael wrote: (inline) Adam Zey wrote: Rafael wrote: A single "=" it's an assignment, not a comparison; and though it sometimes work, you shouldn't compare strings with "==", but using string func

[PHP] Re: comparing a string

2006-06-20 Thread Rafael
(inline) Adam Zey wrote: Rafael wrote: A single "=" it's an assignment, not a comparison; and though it sometimes work, you shouldn't compare strings with "==", but using string functions, such as strcmp()... or similar_text(), etc. This is PHP, not C

[PHP] Re: comparing a string

2006-06-20 Thread Rafael
correct. echo "post equals".$_POST['x']." corect answer is".$correct_answers[$page-1]; -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Replacing text with criteria

2006-06-15 Thread Rafael
overlooking that someone can point out for me. -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: can I do this: update table while selecting data from table?

2006-06-14 Thread Rafael
SELECT" query, data are in buffer and I AM able to connect to the same table and do UPDATE, right? Thanks -afan -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Setting headers for file download [medium]

2006-06-14 Thread Rafael
nce both seem to be for e-mail usage (LOL) --and it's possible values are "quoted-printable" o "base64"--. Finally, "Content-Length" and "Content-Type" seem to apply only if "had the request been a GET". Interesting what you learn reading the RF

[PHP] errata

2006-06-13 Thread Rafael
2'*, that's why I said it does nothing. In the code sent, *strtoupper()* is passed as a (literal) string which, combined with the "e" modifier (at the end of the expression), gives the effect you were looking for (i.e. the "replacement string" is evaluated --as co

[PHP] Re: Setting headers for file download

2006-06-13 Thread Rafael
I can not find it. Anyone with experience of this? Best regards, Peter Lauri -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: preg_replace \\1 yIKES!

2006-06-13 Thread Rafael
ork. So I want to see if I'm in the right place: echo preg_replace('/(^)(.)(.*$)/', '\\1' . '-' . strtoupper('\\2') . '-' . '\\3', 'yikes!'); //outputs -y-ikes! So yea I've got it surrounded why now strtoupper: Yikes! -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How to re-order an array

2006-06-12 Thread Rafael
bute isn't even necessary, and like wise a post or get method). It's basically the same problem, you shouldn't rely on javascript for your page to actually do something. If I don't have JS enabled (for whatever the reason) I won't be able to do anything on it. JS sho

Re: [PHP] Re: How to re-order an array

2006-06-11 Thread Rafael
owsers), that way someone might be able to help you (I will if I can) -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to re-order an array

2006-06-10 Thread Rafael
se aren't supported in all the browsers that will potentially run the script. I might resort to using Ajax and let php keep track for me. But, then again not all browsers will do the Ajax either (as I understand it). -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailin

Re: [PHP] Getting totals

2006-06-07 Thread Rafael
+; } You've got the parameters mixed up. strstr is (haystack, needle) so you need strstr($address, $block). php.net/stristr. -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Getting totals

2006-06-06 Thread Rafael
usly So my code so far is: if (stristr($block,$address)) { $count_ip++; } $block would == 192.168.100 $address would == 192.168.100.0 - 255 Any help would be appricated. -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Rafael
ing similiar, but I can't find anything on Google. Can anybody point me to helpful information? -- Atentamente / Sincerely, J. Rafael Salazar Magaña -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RegExp for preg_split()

2006-04-29 Thread Rafael
est one. tedd wrote: A summation of entries. http://xn--ovg.com/a/parse.php neat! tedd -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Rafael
g my email there makes a lot easier for me to get (even) more spam PPS WTF is "IMALOOPHO"? Porpoise wrote: "Rafael" wrote in message news:[EMAIL PROTECTED] P.S. What, in your mind, is the advantage of replying after quoting the original message and not before? :)

Re: [PHP] PHP Standard style of writing your code

2006-04-28 Thread Rafael
intent of making code easier to read, so that seems like a use, not a waste. OK, OK, I'll stop. Think I'll go out and get wasted~ P. -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: RegExp for preg_split()

2006-04-28 Thread Rafael
keywords. while taking " " into account. From what I managed to find I can get all of the words into an array but I would like all of the words inside " " to be in the same array cell. -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 36

Re: [PHP] PHP Standard style of writing your code

2006-04-28 Thread Rafael
ur mind, is the advantage of replying after quoting the original message and not before? :) -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Re: unique array problem

2006-04-22 Thread Rafael
e any solution.i am breaking > my head for last 5 hours.i am waiting reply from any one -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Preg_match() regex

2006-04-21 Thread Rafael
"Foo-foo", "foo-Foo". I know in perl you can use the /i to specify "case insensitive" matching. Is there any such switch that can be used in preg_match() in PHP? -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext.

[PHP] Re: asociative array syntax

2006-04-21 Thread Rafael
=> $value, 'gm_CH' => $value, or $array['gm_GM'] = $array['gm_CH'] = $value; -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Form to page force download

2006-04-21 Thread Rafael
and call it whenever I need it in the 'main' page (no special page for download used) You may want to try yourself -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP Gener

[PHP] Re: 2 questions: Search in array and detect JS

2006-04-15 Thread Rafael
(of course, you're the only here who knows the reason) Second, you may encounter array_filter() useful, this function uses a callback user-defined function to "filter" the elements in a given array and build a second (which is the value it returns), so you may use this function alon

[PHP] Re: stripping enclosed text from PHP code

2006-04-09 Thread Rafael
s*)\(/Xi', $code, $arr_matches) ) { $result = $arr_matches[1]; } return $result; } // getFunctionCalls() I recommend you: -> http://php.net/pcre > http://php.net/manual/en/reference.pcre.pattern.syntax.php > http://php.net/manual/en/reference.pcre.pattern.modifiers.php -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Word to txt

2006-03-29 Thread Rafael
file and the script transforms the word to txt and saves to server, my site already can receive txt. Thanx to you all. -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (htt

Re: [PHP] Get class name in static method

2006-03-21 Thread Rafael
tp://passivedigressive.com/archives/2005-02/php-static-class-name-solution/ There are probably all sorts of issues with this approach, but it solved the problem at the time... -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-S

Re: [PHP] Converting a string

2006-03-17 Thread Rafael
them into human readable strings without having to manually create a new array. So far I have this $newKey = preg_split("/([A-Z])/", substr($key, 2), -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); Which returns; Array ( [0] => F [1] => irst [2] => N [

Re: [PHP] Converting a string

2006-03-17 Thread Rafael
one might be able to help you. -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: setcookie security concerns [medium]

2006-03-17 Thread Rafael
the reason, but this could be a valid one :) By the way, these are variables (arrays), so you should use square-brackets instead of parenthesis to specify an index (e.g. $_SERVER['SCRIPT_NAME']) -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 361

Re: [PHP] Re: setcookie security concerns [medium]

2006-03-16 Thread Rafael
you should care about ' and " (depending on which one are you using) Again, I read somewhere that the safest way is to use (emulated?) "prepared SQL statements", such the "?" SQL-parameters in ADODB, PEAR-DB and others. By the way, even causing an SQL error th

[PHP] Re: regular expressions and Phone validation

2006-03-15 Thread Rafael
these are what you're referencing via "(\\1) \\2-\\3" Though, there's something I don't get it: in your reg-exp your ignoring any non-numeric character, but you already got rid of them with ereg_replace()... (??) -- Atentamente, J. Rafael Salazar Magaña Innox - Innovac

[PHP] Re: REG-EXPR: Allowing limited number of special chars in usernames

2006-03-15 Thread Rafael
be. So how to limit the number of special chars? This function should just return fals if number of special chars > X -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: setcookie security concerns

2006-03-15 Thread Rafael
If so, what do I do to correct this? Many thanks for any replies. tedd -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is this password protection script secure?

2006-03-15 Thread Rafael
ovided by PHP or MySQL? i used the MySQL function because i didn't compile PHP with support for hash. The one in JavaScript :) AFAIK, every MD5 function is based on the MD5 algorithm, so the implementation is rather similar (if not the same) Of course, the result is always the same. -- At

[PHP] Re: Make all emails links

2006-03-08 Thread Rafael
-Ben With a RegExp ;) Something like this (yes my RegExp is bad): $message = preg_replace("[EMAIL PROTECTED]","href=\"mailto:$1\";>$1",$message); ?> -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 0

Re: [PHP] Calling Curt Z, Curt Z to the white courtesy phone please

2006-03-08 Thread Rafael
p://zirzow.dyndns.org/php-general/NEWBIE.orig Curt. -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: preg_replace problem (or possibly bug)

2006-03-08 Thread Rafael
o, but I see no reason why it could have started. All help will be greatly appreciated, you may use the username php and the password php to log on to do your own tests but please keep the testing to the topic (and the spam forum if necessary). Many Thanks, Michael Mulqueen -- Atentamente, J. Ra

Re: [PHP] Re: Converting HTML to BBCode [SOLVED]

2006-03-07 Thread Rafael
e to understand that code.. :D Good luck on that. Oh, a little correction: it should be PCRE not PREG, "preg_" is the functions prefix (my mistake, sorry) -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE h

[PHP] Re: Converting HTML to BBCode [medium]

2006-03-06 Thread Rafael
were anything between an img tag's 'src="{image}"' and ' border="0" />' that wouldn't be removed, and therefore provide me with a faulty link. Just to clarify the BBCode tags, they are: [url=http://link.com]Click this link[/url] [img]http://imagesite.com/image.jpg[/img] [b]_BOLD_[/b] [i]italicised[/i] [u]underlined[/i] I would really like to get this working, as it'll not only help me improve my PHP skills but also aid my tutorial conversions - it takes ages to do this by hand ;) Any help would be appreciated. Thanks in advance, -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Rafael
not reflect themselves on the function prototype --well, if you have a smart IDE/editor that understand PHPDoc comments (or something like that) and you do document their existance, it might not be that bad, but still try to avoid them. -- Atentamente, J. Rafael Salazar Magaña Innox

[PHP] Re: preg_replace problem

2006-03-01 Thread Rafael
le but with multi lines I'm having trouble: if the file has: 20060301 = 34 20060302 = 3 the file after script will be: 20060302 = 4 I want it to preserve the previous lines so output should be: 20060301 = 34 20060302 = 4 Help would be great, thanks Ben -- Atentamente, J. Rafael Salazar

Re: [PHP] Re: URL output query

2006-02-28 Thread Rafael
Chris wrote: Rafael wrote: Hi Chris, if the only thing you want is to get the domain (having the whole URL) you have more than one way to solve it. Chris -it's a little akward that Chris answered to Chris- already told you about parse_url(), and since we're talking about

[PHP] Re: Optional pass-by-reference parameters?

2006-02-27 Thread Rafael
nce. i.e. you can call the function w/o the variable. Basically, like how you don't need to pass $matches to the preg_match function. I've tried, function some_func(&$var = null) and this doesn't work. func_get_args only gets copies, does anyone have any other solutions? -- Atenta

[PHP] Re: URL output query

2006-02-27 Thread Rafael
ite.com in the browser address bar without the rest of the directory and filename appearing ? -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE [EMAIL PROTECTED] http://www.innox.com.mx -- PHP General Mailing List (http:

[PHP] Re: Request for views on ASP/PHP/ASP.NET - please!

2006-02-20 Thread Rafael
short questions (depending on answers to the other questions), all optional, just fill out as much as you can be bothered with, then click submit a few times until its saved. Thank you very much in advance! Simon -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33

[PHP] Re: regular pattern to match åäö

2006-02-18 Thread Rafael
t seem to work, anyone got any ideas? -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE [EMAIL PROTECTED] http://www.innox.com.mx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: "isset" or "array_key_exists"?

2006-02-18 Thread Rafael
hem though isset would give the same results as in the first pass. I think this happened to me once when I went through an array with isset or isempty or some such to make some calculations and then on the second pass, when I printed it, I got lots of empty cells that were created empty

[PHP] Re: "isset" or "array_key_exists"?

2006-02-18 Thread Rafael
return preg_replace('/^0(\.\d+) (\d+)$/X', '$2$1', microtime()); } ?> Nikolay Rastegaev wrote: Please, answer: what construction works faster: if ( isset ( $result [$i] ["key"] ) ) { do something; } or if ( a

[PHP] Re: menu Q

2006-02-17 Thread Rafael
font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; text-align: left; background-color: #CC; BORDER-RIGHT: #FF 1px solid; BORDER-TOP: #FF 1px solid; BORDER-LEFT: #FF 1px solid; BORDER-BOTTOM: #FF 1px solid; COLOR: #FF; } -- Atentamente, J. Rafael

Re: [PHP] "!" in front of a variable?

2006-02-17 Thread Rafael
mistake, to be sure. If $var2 is boolean it should pass the opposite of its current state. Is $var2 a boolean? It is being passed twice here, once AS and once AS NOT. -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE [EMAIL PROTEC

[PHP] Re: A quick Regex query

2006-02-16 Thread Rafael
f doing it? I think it is. IIRC what you define in a "class" (i.e. between square-brackets) is quite fast; e.g. "[ab]" fastest than "(a|b)", is that what you were asking? -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615

[PHP] Re: Parsing HTML

2006-02-16 Thread Rafael
d to parse the HTML data. I know how to use Regular Expressions, but I wonder if there are other ways to do that. -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE [EMAIL PROTECTED] http://www.innox.com.mx -- PHP Gener

[PHP] Re: session & languages array.

2004-03-29 Thread Rafael Cotta
> > please help > > vamp. Check wheter you have register_globals on or not (you can write a test.php with the line echo ini_get('register_globals'); if it shows '1', congratulations, your register globals is on). If that is the case, you are probably setting

[PHP] Re: An extension to CREATE zips??

2004-03-15 Thread Rafael Cotta
I already made something like this on Linux using the exec function and zip command. You'll need to find a command line zip utility for Windows. But be very careful on using data sent by the user for exec'ing. Regards, Rafael http://cifradasweb.net/ "Brian J. Celenza&quo

[PHP] thumbnail???

2004-01-20 Thread Rafael Alex Cremer
OK, but how? I already use GD, I need to now how to create a thumbnail, somebody now how to use the GD functions to create a thumbnail??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] thumbnail

2004-01-20 Thread Rafael Alex Cremer
How I can create thumbnail with php? using the GD libray? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] String parsing help

2003-08-20 Thread Rafael Zanetti
$vector=split( " ", $string, ); $City=$vector[0]; $State=$vector[1]; $Zip=$vector[2]: This will not work because there cases where the city name have more than 1 word you must get from end-to-begining i can't think about it now, but it's a tip anyway > $vector=split( " ", $string, ); > > > $Ci

Re: [PHP] How to find if a string is an integer?

2003-06-13 Thread António Rafael Paiva
Why don't you write your own test function since it's getting so hard to find one. All you have to do is check if the string only has number characters. I would say this is a simple task! Good luck, Rafael On Thu, 12 Jun 2003 13:13:28 -0700 (MST) "Alex Earl" <[

[PHP] Re: get the $email string

2003-01-16 Thread Rafael Rodrigo - NSI
I don't know how do you get this answer, but try this: name; ?> Rafael Rodrigo > Hi, > > i made a page to display some user details and then clicking on the user > name it goes to another page to send a mail via mail() function. > > here is the line of the first pa

[PHP] Stopping apache from sending HTTP headers

2002-10-01 Thread Thiago Rafael Becker
Hi, I'm new to the news. How can I stop Apache from sending HTTP headers when I execute a script. Who handle the HTTP headers, is Apache or PHP engine? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.282 / Virus Database: 150 -

[PHP] preg_replace_callback

2002-07-17 Thread Rafael Fernandes
First, sorry for my elementary english... I need a function made for PHP3 that works like preg_replace_callback... Sugestions??? -- Rafael Fernandes WebDeveloper - Aleph TI Ltda. / Matrix Internet Provider E-Mail: [EMAIL PROTECTED] Uin: 5551571 -- PHP General Mailing List (http://www.php.net

[PHP] Read a var from stdin

2002-05-18 Thread Rafael Perazzo
Is there any way to ask the user to type the value of a variable from stdin ? (like read in Pascal, or scanf in C). I'm using PHP from command line. Thanks Rafael Perazzo __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience

[PHP] Help need (Urgent)

2002-05-01 Thread Luiz Rafael Culik Guimaraes
riables dont have any values -- []´s Luiz Rafael Culik http://sites.uol.com.br/culikr begin 666 tes.htm M/$A434P^#0H\2$5!1#X-"B @(#Q4251,13Y'=65S="!";V]K(#PO5$E43$4^ M#0H@(" \3$E.2R!4251,13TB1W5E'0O:'1M M;#L@8VAA3X-"CPO:'1M;#X-"@T* ` end begin 66

Re: [PHP] creating MySQL Users

2002-03-29 Thread Rafael Perazzo
Try this query : $query = "GRANT SELECT,INSERT,UPDATE,DELETE,ALTER "; $query .= "ON $username "; $query .= "TO $username@localhost "; $query .= "IDENTIFIED BY '$password';"; Make sure that you put a blank space after each strin

[PHP] Attachments with mail() function

2002-01-29 Thread Rafael Perazzo B Mota
How can I send a simple file as attachment using the mail function ? Can anyone give me a simple example ? Thanks Rafael Perazzo _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General

[PHP] Re:[PHP] Changeing Dates.

2002-01-26 Thread Rafael Perazzo B Mota
ecs s"; //var to be returned return ret; } This funcion gets the date in the format you have and converts into a string the way you want. I hope this help. Rafael Perazzo "Philip J. Newman" <[EMAIL PROTECTED]> wrote on 26/01/02 14:35:30: > >I have had no

[PHP] PHP IDE

2002-01-25 Thread Rafael Perazzo B Mota
Who knows a good Php IDE for linux, like PHP Code ? Rafael Perazzo _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] Php.ini file missing

2002-01-13 Thread Rafael Perazzo
if it's working. If this do not work, write again, I'll be very happy to help the php community. Rafael Perazzo __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- PHP General Mailing

Re: [PHP] Development environment

2002-01-12 Thread Rafael Perazzo
I know two good IDEs for PHP: PhpEdit -> http://www.phpedit.com PhpCode -> http://www.phpide.de Have fun!! Rafael Perazzo --- Morten Nielsen <[EMAIL PROTECTED]> wrote: > Hi, > > Can anybody recommend a good development > environment? It should support PHP, > HTML

[PHP] Apostrophes and text fileds forms

2002-01-08 Thread Rafael Perazzo
>You need to apply addSlashes() to the text fields >before entering >them into the database. >Jason What is an addSlash ? How can I appy addSlashes ? Can anyone give me an example ? Thanks Rafael Perazzo __ Do You Yahoo!? Sen

[PHP] PHP] apostrophe's in PHP & MySQL

2002-01-08 Thread Rafael Perazzo
I have the same problem with the apostrophes in text fields form object. When I try to enter a string that contains ' the data is not entered in the database. I use PHP 4 and Mysql 3.23. How can I avoid this problem ? __ Do You Yahoo!? Send FREE v

Re: [PHP] file system question

2001-10-24 Thread Rafael Steil
Well, this is a problem.. with perl, you can use suidperl, but not with php.. the most easyest way is to give write permission to apache user to the directory you want to upload the files... Rafael Steil On Wednesday 24 October 2001 11:43, you wrote: > Hello- > > I'm t

[PHP] Error: 1 is not a valid mysql link resource

2001-10-24 Thread Rafael Steil
($sql, $GLOBALS["CONNECTION_ID"]) it is the same code that works with php 4.0.1,, The link resource is valid ( at least I think that ), because when I do echo $GLOBALS["CONNECTION_ID"]; the return is Resource id #1 does anyone knows the problem??? thanks anyway, Rafael Steil

[PHP] CORRECT sort

2001-06-24 Thread Rafael Faria
I have a list of nicknames inside my page $t®ike_19a M@x< ARNALDO_MOTA20 AXL-FUCKIN-ROSE AbAgUaLaDo Adolf Al_Cap0ne Anda_pelas_Sombr Anjo Tora Anjo_noturno Arcanjo_ Atras_E_AVANTE BHILL BRAIN_DAMAGE B

[PHP] ORDER PROBLEMS

2001-05-15 Thread Rafael Faria
Hello Guys, i'm with problems first i try to add a value like "8.55" into my sql data base that was set up to DOUBLE (10,0) and isn't work... i don't know how this work... but i'm here to ask for someone explain me. well... i did with varchar to add this value as i want to.. do i have a

  1   2   >