[PHP] Re: Hidden Images.

2005-01-18 Thread M. Sokolewicz
Rob Adams wrote: I've been figuring out how to create hidden images. The concept is: when you highlight an image in Internet Explorer (and Mozilla too, though the grid is reversed) it puts a grid over the image. If you put another image in between what the grid covers, you can kind of hide the

Re: [PHP] Free library for PDF functoins ???

2005-01-18 Thread Matt M.
> Does anyone knows of a free library to compile PHP against and have PDF > functions support ? you could try this class http://www.fpdf.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SPL Exceptions

2005-01-19 Thread M. Sokolewicz
Gerard Samuel wrote: Does anyone know when the exception objects listed in item #6 at http://www.php.net/~helly/php/ext/spl/ will be available in base php5?? Thanks when you install the SPL extension :) I don't think it's planned for php5-source though -- PHP General Mailing List (http://www.php.

Re: [PHP] file upload

2005-01-20 Thread M. Sokolewicz
Anirudh Dutt wrote: On Thu, 20 Jan 2005 12:26:07 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote: akshay wrote: Hi all, I hv problem while file upload. I hv one server and multiple client. I want to upload a file from Server to client. how this is possible in PHP This is usualy called download. Is

[PHP] Re: php 5 interfaces

2005-01-20 Thread M. Sokolewicz
Sergio Gorelyshev wrote: Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash with message Fatal error: Access type for interface method MyInterface::myMethod() must be omitted in somef

[PHP] Re: [PHP-DB] checkboxes

2005-01-21 Thread M. Sokolewicz
Joe Harman wrote: Well.. i just got done doing something like what you are trying to accomplish... you will need to name your check boxes like so : name="completed[]" when the form is submitted, I use something like this and shove it into a field in the database: if($_POST['completed'] <> NULL) { /

[PHP] Re: [PHP-DB] checkboxes

2005-01-21 Thread M. Sokolewicz
M. Sokolewicz wrote: Joe Harman wrote: Well.. i just got done doing something like what you are trying to accomplish... you will need to name your check boxes like so : name="completed[]" when the form is submitted, I use something like this and shove it into a field in the database:

[PHP] Re: nl2br misprint

2005-01-21 Thread M. Sokolewicz
Scott DeMers wrote: From the function page on php.net ( http://us4.php.net/manual/en/function.nl2br.php ): "Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions before 4.0.5 will return string with '' inserted before newlines instead of ''." Is this a misprint, ot does the revised

[PHP] Re: end of array

2005-01-22 Thread M. Sokolewicz
Raj Shekhar wrote: Jeffery Fernandez <[EMAIL PROTECTED]> writes: Hi all, I have a foreach loop on an array and within that loop I need to find if the array has reached the last pointer. I have tried if (next($row)) { } but that advances the pointer. Any tips on finding out if the array pointer has

[PHP] Re: end of array

2005-01-22 Thread M. Sokolewicz
Raj Shekhar wrote: "M. Sokolewicz" <[EMAIL PROTECTED]> writes: Raj Shekhar wrote: $n_elts = count($myarray); for ($i=0; $i< $n_elts ; $i++) { if ($i = $n_elts -1) ^^^ Use of == required to make it work { ec

Re: [PHP] Re: Classes and parents.

2005-01-22 Thread M. Sokolewicz
Jochem Maas wrote: Dmitry wrote: Thanks, but I think that this code more easy. class a { function say() { echo "A"; } function run() { $this->say(); } } class b { function say() { echo "B"; } function run() { $a = new a; $a->run(); for starters b doesn't even extend a and secondly the

[PHP] Re: array search

2005-01-23 Thread M. Sokolewicz
Malcolm wrote: Hello All, I've been trying for days now to make this work. I'm trying to search my array for a value and return the key. I get the visitor's IP and try this -- this is the latest, I've tried a few functions to echo the name associated with the viz_ip. $viz_ip= $_SERVER['REMOTE_A

[PHP] Re: Getting two queries into one result set

2005-01-26 Thread M. Sokolewicz
Shaun wrote: Hi, I have a query where I select all table names where the table name has PID_1 in i.e. SHOW TABLES LIKE '%PID_1%'; However there may be cases where I need to search for tables where the table name is PID_1 or PID_2. In MySQL this can't be done in one query, so how can I do two qu

[PHP] Re: round

2005-01-26 Thread M. Sokolewicz
use number_format() Blackwater Dev wrote: Hello, I have these values: 8.26456 9.7654 3. 5.2689 and I want them rounded to two decimal places so I use the round : round($value,2) which gives me, for example: 8.26 But, it also gives me 3 instead of 3.00. How can I round but retain the 0's? Thank

[PHP] Re: Call-time pass-by-reference ??

2005-01-27 Thread M. Sokolewicz
Michael Gale wrote: Hello, I am trying to start a small php ncurses app but the documenatation is not helping. What does the following mean: PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the decla

Re: [PHP] PHP5 Class problem

2005-01-28 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: 1. you are calling the method on a object (i.e. not as a static call like SessionHandler::getOrgSession()) 2. the function (method) you are calling is _NOT_ defined as static. in your case you have defined all your methods as static so the engine will not make $this ava

[PHP] Re: Troublesome Code.

2005-01-31 Thread M. Sokolewicz
Chris Knipe wrote: Lo everyone, Can someone please perhaps just indicate to me what is wrong with the below code? I am getting SQL Result errors, but all the queries executes successfully. Errors in browser: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in

[PHP] fsockopen

2005-02-01 Thread pete M
am not having a lot of success with opening a socket to a secure domain (php 4.3.8 - apache - openSSL) $fp = fsockopen($url , 443 ,$errno, $errstr, 30); have tried the following $urls --- $url = 'domain.net'; Bad Request Your browser sent a request that this server could not u

[PHP] Re: how create system users with php

2005-02-02 Thread M. Sokolewicz
shell_exec('pw useradd username -g groupname -d /home/username -m'); however, you'd need to be running as root, or atleast need to su to root; which is quite a security hazard Umar Draz wrote: Hi dear members!! i want a script that i can add system user through php. For

[PHP] Re: What's wrong with this rewrite rule?

2005-02-02 Thread M. Sokolewicz
the problem is actually really easy You're not asking it on an apache list (this is a PHP list... so why should anyone here know anything about mod_rewrite for apache?) sorry if I sounded rude, but that's just the way I feel about it Chris W. Parker wrote: Hello, I've been messing with a cert

Re: [PHP] How to make binary strings useful?

2005-02-03 Thread M. Sokolewicz
Richard Lynch wrote: Jerry Miller wrote: Is there an example of the UNIX od utility written in PHP? I dunno. Goodle for "PHP octal dump" Is such a useful task even possible?? Certainly it's possible, though I'm not sure why you wouldn't just USE the existing 'od' utility. From what I've seen o

Re: [PHP] How to make binary strings useful?

2005-02-03 Thread M. Sokolewicz
actually, ignore that... I didn't read carefuly enough *sighs* M. Sokolewicz wrote: Richard Lynch wrote: Jerry Miller wrote: Is there an example of the UNIX od utility written in PHP? I dunno. Goodle for "PHP octal dump" Is such a useful task even possible?? Certainly it's

Re: [PHP] novice: how to run .sql script from php?

2005-05-29 Thread M. Sokolewicz
tony yau wrote: I realised that there is a fundamental problem with using mysql_query( ...) to run a .sql script to setup a database, and that was the database needs to be there in the first place for php to connect to! also there was a lot of comment lines in the script that was causing problem.

Re: [PHP] Dummy question about gettion "select option" choosen

2005-05-30 Thread M. Sokolewicz
Kim Madsen wrote: -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, May 30, 2005 10:28 AM To: Mário Gamito I now have this code in a form: --- 1 2 3 (etc...) if the form containing this element is posted then the following will s

Re: [PHP] php + cvs

2005-05-31 Thread M. Sokolewicz
Marcus Bointon wrote: On 31 May 2005, at 09:58, Jochem Maas wrote: Also I hear lots of good things about subversion (SVN), which is a newer alternative for version control - some even say its better. I can definitely vouch for Subversion. I'm using it for all my PHP stuff. I'd not used cvs

Re: [PHP] Japanese with UTF-8 and mysql

2005-06-02 Thread M. Sokolewicz
Mark Sargent wrote: Richard Davey wrote: Hello Mark, Monday, May 30, 2005, 4:18:20 PM, you wrote: MS> I have my settings in php.ini set for UTF-8, and the encoding for MS> the mysql database table's column that is using Japanese to UTF-8. MS> Now, if I view the data stored in that column in p

Re: [PHP] Parsing wml files as php

2005-06-05 Thread M. Sokolewicz
Dotan Cohen wrote: On 6/5/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: On 6/5/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: I have gone over and over through google and various archives, but cannot come up with a solution even though I am convinc

[PHP] Re: looping through an array problem

2005-06-05 Thread M. Sokolewicz
Jack Jackson wrote: This is something dumb I am doing but: Trying to pull all names of publishers in db. This sql: SELECT art.art_id,art.publisher_id,publisher.publisher_name, FROM art LEFT JOIN publisher ON publisher.publisher_id=art.publisher_id pulls (in phpmyadmin) four rows: artID pubI

Re: [PHP] looping through an array problem

2005-06-05 Thread M. Sokolewicz
Jack Jackson wrote: Thanks for all the replies. Jochem, thank you for this code, which will take me all night to understand (though I bet it works). I also note that SELECT DISTINCT worked here, too Also as many of you noticed before me, the art_id was in there as a fly in the ointment. by th

[PHP] Re: form inside an email

2005-06-14 Thread M. Sokolewicz
Ross wrote: Hi, I would like to send a form to customers to get some information. The form will be a HTML email and collect a few bits of data...name. age etc. Can I put this inside an html email so customers do not have to open an external webpage to fill in the fields. How can this then b

Re: [PHP] comparing two texts

2005-06-19 Thread M. Sokolewicz
jenny mathew wrote: Untested, very crude: $text1[$i]|$text2[$i]"; } ?> donot you think you program will just bring the server to its foot ,if the text message encountered is very large of order of 40 KB or larger.isthere any other efficient method. 40KB isn't large... now

Re: [PHP] comparing two texts

2005-06-19 Thread M. Sokolewicz
Robert Cummings wrote: On Sun, 2005-06-19 at 09:22, M. Sokolewicz wrote: jenny mathew wrote: Untested, very crude: $text1[$i]|$text2[$i]"; } ?> donot you think you program will just bring the server to its foot ,if the text message encountered is very large of order of

[PHP] Re: SFTP problems

2005-06-19 Thread M. Sokolewicz
Lowell Allen wrote: I need to use SFTP to send text files and binary files from one server to another, but I'm unable to use fopen on the remote server, and if I send with ssh2_scp_send the files are truncated. I'm assuming the libssh2-PECL/ssh2 installation isn't the problem because I'm able

Re: [PHP] Re: SFTP problems

2005-06-19 Thread M. Sokolewicz
Lowell Allen wrote: On Jun 19, 2005, at 12:37 PM, M. Sokolewicz wrote: Lowell Allen wrote: I need to use SFTP to send text files and binary files from one server to another, but I'm unable to use fopen on the remote server, and if I send with ssh2_scp_send the files are truncated

[PHP] Re: editor in WEB PAGE

2005-06-20 Thread M. Sokolewicz
Denyl Meneses Guillén wrote: Hello I want to use a RTF editor within a web page like the Hotmail or Yahoo where when writing the content of the email him can be put format like Bold, fonts, etc. I'll like to find how to do. Thanks for your helps Denyl. JavaScript; this has nothing whatsoev

[PHP] Re: Question to eregi Syntax

2005-07-07 Thread M. Sokolewicz
janbro wrote: Hi List, my research hasn't turned anything useful up. Probably 'cause I don't have enough info. I've been playing around with the ereg function. What I was wondering is what is the ^ for like in the below example? ereg('[^[:space:]a-zA-Z0-9_.-]{1,}', $name) thx janbro it deno

Re: [PHP] Re: Question to eregi Syntax

2005-07-07 Thread M. Sokolewicz
Philip Hallstrom wrote: janbro wrote: Hi List, my research hasn't turned anything useful up. Probably 'cause I don't have enough info. I've been playing around with the ereg function. What I was wondering is what is the ^ for like in the below example? ereg('[^[:space:]a-zA-Z0-9_.-]{1,}',

[PHP] Re: how to delete lines in a txt file using php.

2005-07-12 Thread M. Sokolewicz
babu wrote: Hi i have a txt file like [SUBSTRAT] TYP=25x25_10 SUBSTRATNAME=S112 PIXEL=5 OPERATOR=Zi KOMMENTAR=dunkel INTENSITAET=1000.00 [MESSUNG] DATUM=03.01.2005 UHRZEIT=11:22 MESSUNG=SWEEP_UI i want to delete lines which start with '[' and 'TYP'. i have multiple such files.i have used

[PHP] Re: how to delete lines in a txt file using php.

2005-07-12 Thread M. Sokolewicz
M. Sokolewicz wrote: babu wrote: Hi i have a txt file like [SUBSTRAT] TYP=25x25_10 SUBSTRATNAME=S112 PIXEL=5 OPERATOR=Zi KOMMENTAR=dunkel INTENSITAET=1000.00 [MESSUNG] DATUM=03.01.2005 UHRZEIT=11:22 MESSUNG=SWEEP_UI i want to delete lines which start with '[' and 'TYP&#x

Re: [PHP] zlib.output_compression

2005-07-12 Thread M. Sokolewicz
Is your browser sending an accept-encoding header containing gzip? (eg. Accept-Encoding: gzip,deflate). If not, then PHP will reason it should not send gzip-encoded content because the browser won't understand. - tul LacaK wrote: Thank you, I know this technique : ob_start('ob_gzhandler'); b

[PHP] Re: Call to Static Method PHP5

2005-08-19 Thread M. Sokolewicz
how about using: return call_user_func(array($object1, 'do_static')); I've also modified your code so it works with both an object and a class: Adrian Cid Almaguer wrote: Hi: I had the fallowing trouble while using a static method call on php5. Here's my solution, i will really apreciate if

[PHP] Hardware Detection

2005-08-19 Thread Saenal M
Hi, Can we get information about hardware on client's PC. (e.g. hard disk, processor, keyboard, etc).? And How? anyone knows? please reply back. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Saturdays and Sundays

2005-09-01 Thread M. Sokolewicz
since only the total number of saturdays/sundays is what he wants to know, you can use some clever math. Basically, the amount of saturdays in a year is: floor(365 (+1 if it's a leap year) (-days from january first to first saturday) / 7); and sundays = saturdays (-1 if the modulo from the top

[PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-02 Thread M. Sokolewicz
hello, I'm writing a socket approach to send email directly via an SMTP server (since some hosts block sendmail trough php due to abuse). Now, I have the code, attached below: I have cut it down slightly so it would still be readable though. I'm very sure that none of the stuff I removed actua

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread M. Sokolewicz
hello, thank you for the help, but I've tried your code, and it returns the exact same thing :( the error #11 temporarily unavailable. If I remove non-blocking, or change the error to ignore to 11 (10035 in your code example) it simply "hangs" doing nothing *at all*... I'm stumped; really..

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread M. Sokolewicz
file permissions on what? These are sockets :( - tul As the wise Gustav Wiberg <[EMAIL PROTECTED]> said: Hi there! Can't it be anything with filepermissions? Just a clue... /G @varupiraten.se - Original Message ----- From: "M. Sokolewicz" <[EMAIL PROTECTED]>

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread M. Sokolewicz
t... thank you all for the help/support though! - tul M. Sokolewicz wrote: file permissions on what? These are sockets :( - tul As the wise Gustav Wiberg <[EMAIL PROTECTED]> said: Hi there! Can't it be anything with filepermissions? Just a clue... /G @varupiraten.se -

[PHP] Re: apache (root) + php4

2005-09-03 Thread M. Sokolewicz
the one you posted is created with crypt() (see crypt in the php manual) Michelle Konzack wrote: Hi Rory, Am 2005-09-03 17:04:19, schrieb Rory Browne: I'm not totally sure on the format of the passwords in /etc/shadow, but can you do anything with php's md5 function? If not, then perhaps the

Re: [PHP] Integer - boundary?

2005-09-07 Thread M. Sokolewicz
Brian P. O'Donnell wrote: ""Gustav Wiberg"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] - Original Message - From: "Shaw, Chris - Accenture" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" Sent: Wednesday, September 07, 2005 5:03 PM Subject: R

Re: [PHP] incrementing in a for loop

2005-09-12 Thread M. Sokolewicz
Stephen Johnson wrote: On 9/12/05 12:39 PM, "Peppy" <[EMAIL PROTECTED]> wrote: for ($i = 1; $i <= 6; $i++) { Is it possible to increment $i by 5? for ($i = 1; $i <= 6; $i+5) { that won't work; have you tried it? Because $i++ assigns the result of $i+1 to $i, while yours does not assign

[PHP] Re: Accessing images in a protected directory

2005-09-13 Thread M. Sokolewicz
Brian wrote: I haven't used .htaccess before and am currently having an issue with it. I have a site that has photos from various events on it. Some of the events need to be password protected to view the photos. They enter a password, it gets checked in the MYSQL database and then the php p

Re: [PHP] Re: Mail-format...

2005-09-22 Thread M. Sokolewicz
Gustav Wiberg wrote: - Original Message - From: "joshua may" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 9:50 AM Subject: [PHP] Re: Mail-format... I was having the same issue with one of my clients just today in fact. We just filtered the email addresses to ensure they'

Re: [PHP] Two MySQL connections in one script not working as expected

2005-09-27 Thread M. Sokolewicz
Charles Kline wrote: On Sep 27, 2005, at 3:42 PM, Andy Pieters wrote: Hi Without you actually showing us these class files we can only guess but a common mistake is this: mysql_open(connection details) mysql_query(query) In those cases the last opened handle is used. To prevent this,

[PHP] Re: Array: If i'm in the child array then how I tell the parent's key name..

2005-09-30 Thread M. Sokolewicz
Let me reply with a question first :) how do you get *to* the child? ;) post some code so we know. In 99.99% of the cases, the way you get to the child includes a way to find out the parent key (usually you foreach() to it, or something similair). - tul Scott Fletcher wrote: Suppose that I'm

Re: [PHP] convert array to HTML GET request

2005-10-02 Thread M. Sokolewicz
Jasper Bryant-Greene wrote: Martin van den Berg wrote: How does one convert an array into a HTML GET request easely? Are there any standard functions? Same for HTML POST requests. HTTP GET and POST requests are formatted the same, just sent in different ways. I don't know if there's a func

Re: [PHP] Get Mac Address

2005-10-09 Thread M. Sokolewicz
That will give you the *local* mac address, not that of the user visiting your page. The problem is the fact that the mac address is not sent as part of the REQUEST. As such it's not possible for PHP to find out what it is. So, unfortunately, no. (Though it's a very common question on this list

Re: [PHP] Printing to a buffer

2005-11-13 Thread M. Sokolewicz
call me stupid, but why don't you do it like this: $buf = "This is a test"; header("Content-type: text/plain"); header("Content-Length: ".strlen($buf)); header("Content-Disposition: attachment; filename=sfyc.html"); echo $buf; ?? looks easier to me... no output buffering required... Todd Cary w

[PHP] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread M. Sokolewicz
I'm pretty sure something like this already exists. Why? because I know somebody who uses it. Ok, so it's written in asp (by MS if I'm not mistaking), still... I wouldn't know why you'd want to write a new one in php... seems hard to make to me; might be wrong though. anyway, good luck bala c

Re: [PHP] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread M. Sokolewicz
Robert Cummings wrote: On Sat, 2005-11-26 at 11:09, M. Sokolewicz wrote: I'm pretty sure something like this already exists. Why? because I know somebody who uses it. Ok, so it's written in asp (by MS if I'm not mistaking), still... I wouldn't know why you'd want t

Re: [PHP] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread M. Sokolewicz
Robert Cummings wrote: On Sat, 2005-11-26 at 14:03, M. Sokolewicz wrote: Robert Cummings wrote: On Sat, 2005-11-26 at 11:09, M. Sokolewicz wrote: I'm pretty sure something like this already exists. Why? because I know somebody who uses it. Ok, so it's written in asp (by MS

[PHP] Re: Intersecting Dates

2005-11-26 Thread M. Sokolewicz
Shaun wrote: Hi, Given a start day and month and end day and month (i.e. 01-01 to 31-03) how can one check if another set intersects these dates? Thanks for your advice one possibility is to change the dates to timestamps, then check if the starting date (to intersect) is > $start or < $en

[PHP] Re: question

2005-11-27 Thread M. Sokolewicz
I see by your questions that you lack the basic insight into what is what exactly in the php/ICT/etc.-world. This is obviously not a bad thing(tm), all of us started with no knowledge and slowly grew into it. So, I hereby will give you a couple of links: * http://en.wikipedia.org/wiki/Server wi

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread M. Sokolewicz
Jason Petersen wrote: On 12/6/05, Jeff McKeon <[EMAIL PROTECTED]> wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? Vim is my editor

[PHP] Re: MIME E-mail message

2005-12-14 Thread M. Sokolewicz
hi, Oli Howson wrote: I'm working on a private webmail (and other) system, and am struggling a little with MIME mails. I've got a script to save all the attachments, but the thing I can't figure out is how I decide which "part" is the main email message itself (and hence which to display). Usual

[PHP] Re: [PHP-DEV] why is '01' == '1.'?

2005-12-15 Thread M. Sokolewicz
actually, you're right in that (colder.ch) since what happens here is a conversion. This applies to all these 'logic cases' posted. When something is converted to something else, as part of a process, you can't state that the process returns unique results (meaning the result always points back

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread M. Sokolewicz
Aside from the 20 suggestions you've already got, let me add this one: elseif( ($page != "one") or ($page != "two") or ($page != NULL) ) { Echo "Undefined!page isn't defined correctly!"; } is useless code. Why? $page = null; never happens (you made sure of that further up the page). $page

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread M. Sokolewicz
Actually, I disagree with the explenation here. The reasoning behind it is correct, but the explenation contains a number of incorrect statements. The = (a single '=') is the so-called assignment operator. This operator assigns the right-hand value to the left-hand variable. So, when you write

[PHP] Re: High load Forum?

2005-12-22 Thread M. Sokolewicz
it all depends on the setup you're using. How well the code is written, how much fluff it has (eg. a lof of bbcode parsing makes the forum a lot slower), and a few more factors like that. If you're going to have a very big / active forum, I would suggest not to use a package as provided by mult

[PHP] Re: Default charset

2005-12-27 Thread M. Sokolewicz
at the top of your script you could add a: header('Content-Type: text/html; charset=UTF-8'); that would work aswell (according to RFC 2616: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17) ;) - tul Graziano Liberati wrote: Hi, I need to set the default charset for my applicat

[PHP] Re: mysqli module in php 4

2005-12-28 Thread M. Sokolewicz
Bagus Nugroho wrote: Hi All, Is mysqli module enable by default on php 4 as mysql module. no If not enable by default, where I can get this module(hopefully a direct link to download) you can't, it *requires* PHP 5 Thanks in advance -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: mysqli module in php 4

2005-12-28 Thread M. Sokolewicz
John Nichel wrote: M. Sokolewicz wrote: Bagus Nugroho wrote: Hi All, Is mysqli module enable by default on php 4 as mysql module. no If not enable by default, where I can get this module(hopefully a direct link to download) you can't, it *requires* PHP 5 I've been runn

[PHP] Re: operators

2005-12-28 Thread M. Sokolewicz
please read http://www.php.net/manual/en/language.oop.php explaining what Objects are exactly (since it's looping over an object property which just so happens to be an array) http://www.php.net/manual/en/control-structures.foreach.php explains what => is (part of foreach()) - tul Henry Krinkl

Re: [PHP] php / JS / DOM question

2005-12-29 Thread M. Sokolewicz
which is not part of the standards. It's accepted by most browsers because a lot of sites use it (due to the fact that IE is so popular), but it's *NOT* standard. So, don't do it! Dan showed the correct way. - tul [EMAIL PROTECTED] wrote: Add the "value" property: document.forms['query_form']

[PHP] Re: ternary operator in heredoc string

2005-12-31 Thread M. Sokolewicz
dev lamp wrote: Hi I am trying to use the ternary operator inside heredoc string to select the bgcolor based on the flag value, but it does not seem to work. $summary=<< $reqno STR; I looked up php documentation but could not find any details. What would be an optimal way to write the code

[PHP] Re: thought stdin was supposed to default open

2006-01-08 Thread M. Sokolewicz
matt V wrote: hello, I read that in the cli version of php, the 3 files, sterror, stdout and stdin are already open thus saving having to open them and close them each time. Well, I decided to test that idea and it appears that stdin infact is not pre-opened, but my code may be wrong too, who

[PHP] Re: strip leading zeros

2006-01-08 Thread M. Sokolewicz
Ross wrote: Is there a PHP function to strip the leading zeros from a number/string. R. try casting it to an (int) (if it's a number) and you'll have stripped the 0's (or to a (float)/(double) if it's not an integer) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] The meaning of and "@"

2006-01-09 Thread M. Sokolewicz
and it's used wrongly in 99.99% of the cases. David Grant wrote: Todd, The @ operator suppresses error messages. http://www.php.net/manual/en/language.operators.errorcontrol.php David Todd Cary wrote: I have not been able to find in the Online Manual the use of the "@" symbol as in while

Re: [PHP] php + mysql - timstamp - calculate hours remaining

2006-01-10 Thread M. Sokolewicz
David Grant wrote: Gregory, David Grant wrote: Gregory Machin wrote: I have a table with a timestamp column and would like to use his to calculate the age of the record . how would i go about this... I would also like to exicute a mysql stament that pasess the tables and removes fields older

Re: [PHP] test variable value?

2006-01-11 Thread M. Sokolewicz
remember though that if(!$x) { echo 'nothing here'; } will also output 'nothing here' when provided with the string '0'! - tul Rodolfo Andrade wrote: I do use if(!$var) for simple application. Only _IF_ I need to know if the $var is defined but empty or so I would use especific functions. -

[PHP] Re: Image size?

2006-01-11 Thread M. Sokolewicz
zerof wrote: William Stokes escreveu: Hello, Can I get pixel sizes from a uploaded web applicable image with PHP? I mean width and height as pixels. If so How? Thanks -Will -- http://www.educar.pro.br/abc/mathgd/index.php?xyz=30 zerof what would the chance be that the OP actu

Re: [PHP] test variable value?

2006-01-11 Thread M. Sokolewicz
Gerry Danen wrote: On 1/11/06, M. Sokolewicz <[EMAIL PROTECTED]> wrote: remember though that if(!$x) { echo 'nothing here'; } will also output 'nothing here' when provided with the string '0'! That's because (!$x) means ($x == false) and '0&

[PHP] Re: Help taking a string from a file

2006-01-14 Thread M. Sokolewicz
rn to strip stuff away and just get specific parts as well. I never know which of the str functions to use. $photo = file_get_contents("http://www.flickr.com/badge_code_v2.gne? count=1&display=latest&size=m&layout=h&source=user&user=91667218% 40N00"); //get rid o

Re: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread M. Sokolewicz
I'm confused... why does everyone use a refresh??? According to me, that's not what a refresh is supposed to be used for (!). Why don't use a header('Location: http://www.domain.com/start.php?page=home'); for it? It's more in-line with RFC's - tul Ray Hauge wrote: You could also check to see

[PHP] Re: Recursive array_push?

2006-01-26 Thread M. Sokolewicz
Kim Christensen wrote: Has anyone out there stumbled over the issue of making multi-dimensional arrays out of bracket-separated strings? In a less fuzzy way of putting it: $str = "[layer1][layer2][layer3][layer4]" would become $str_array = Array( [layer1] => Array( [layer2] => Array( [layer3]

[PHP] Re: query regard forms in PHP

2006-01-29 Thread M. Sokolewicz
look Suresh Kumar, you came to this list about 2 weeks ago stating "i am working as a web designer in PHP & Mysql.i know the basics of PHP & Mysql". Since that post, you've posted the following questions: 1. i dont know how 2 store images in gif/jpeg format in Mysql Database.i also want 2 know

[PHP] Re: Class/functions question

2006-02-12 Thread M. Sokolewicz
Paul Goepfert wrote: Hi all, I building a website with PHP. I am going to be using functions to deal with vaildation. I am putting all the methods in a class called Validation. My problem is I do not know how to call the function. Well I shouldn't say that. I know how to call functlions, I

[PHP] Re: Finding out DPI using GD

2006-02-14 Thread M. Sokolewicz
Karuna wrote: Hi. Is it possible to find out the dpi of an image (preferably jpeg) in php? I can't seem to find any function to do this. Cheers, Karuna. you can't find the "dpi of an image" because that depends on the medium used to display it. If your printer prints it with a dpi of 1000,

[PHP] Re: A quick Regex query

2006-02-16 Thread M. Sokolewicz
hi, have you tried [^0-9][0-9]{4} [A-Za-zÅØ]{2,20} ? - tul phplists wrote: Hi, I am using the following: [0-9]{4} [A-Za-zÅØ]{2,20} to extract data like: 1000 Øslo How can I alter the above to limit to ONLY 4 digits, or in other words exclude: 11000 Beograd Please note that what I am extra

[PHP] key pairs

2002-12-17 Thread Ashley M. Kirchner
: Address: City: Boulder State/Province: CO Zip/Postal Code: 80303 Country: USA BILL TO: Business Name: Contact Name: Ashley M. Kirchner Day Number: 303 4426410 Evening Number: Fax Number: 303 442-9010 Address: 3550 Arapahoe Avenu

Re: [PHP] key pairs

2002-12-17 Thread Ashley M. Kirchner
mind; it's backed up on tape somewhere. +---- Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.

Re: [PHP] key pairs

2002-12-17 Thread Ashley M. Kirchner
y mind; it's backed up on tape somewhere. +---- Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . .

[PHP] HTTP_IF_MODIFIED_SINCE

2002-12-31 Thread Ian M. Evans
Are there any settings I need to change in order to get the HTTP_IF_MODIFIED_SINCE variable set when applicable? I saw some threads on google about session_cache_limiter() but even after following that, I still don't get access to the HTTP_IF_MODIFIED_SINCE variable when revisiting a page with the

[PHP] Re: [PEAR-DEV] Announcing open CVS for phpDocumentor project

2003-01-03 Thread Jesus M. Castagnetto
27; cvs [server aborted]: read lock failed - giving up ... Seems like the repository is messed up. = --- Jesus M. Castagnetto ([EMAIL PROTECTED]) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __ Do you Yahoo!? Yaho

[PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-17 Thread Ian M. Evans
Does anyone have a quick PHP function for converting accented characters to their non-accented forms? It would really help a lot with Amazon searches, etc. For example something that can turn: Renée Zellweger into Renee Zellweger Along that same vein, turning Renée Zellweger into Renee Zellwege

RE: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Ian M. Evans
Rene: Thanks for the response. I guess I wasn't too clear in my original post. I'm not looking to turn an accented letter into its numeric equivalent, I'm looking to strip the accent so that Renée Zellweger becomes Renee Zellweger. Any thoughts there? -- PHP General Mailing List (http://www.ph

RE: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Ian M. Evans
Ernest E. Vogelsinger suggested: >$chars_in = array('Á',''á','É','é'); // you get it >$chars_out = array('A','a','E','e'); // this too >preg_replace($chars_in, $chars_out, $string_to_parse); I initially got a 'no ending delimiter' error but after adding /'s to the $chars_in it was just what the

RE: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Ian M. Evans
>return strtr($string, "SOZsozY... Just curious why the search starts with unaccented "SOZsozY"? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] whois script or class

2003-01-18 Thread Ashley M. Kirchner
I'm looking for a script, or class, that I can feed a domain name to and get back whois information, preferably already parsed into things like, the registrar, the registrant, ns servers, created/expire dates... Regardless of who the registrar is. Anyone? -- M | I haven't lo

[PHP] Using PHP with SAPI 5.1 or COM objects

2003-01-23 Thread Joseph M. Londa
I have reached the end of my research and reading and I am stuck. Can anyone help me understand why I am not able to SET the voice of my choice with the following PHP code? Everything else works just fine. I should say that I am a novice at both PHP and SAPI so please excuse my simplistic approach

[PHP] dealing with accents in your databases (or to entity or not to entity...)

2003-02-03 Thread Ian M. Evans
This hasn't come up too much yet in one of the databases on my site, but as I get closer to starting a big project, I thought I'd get an idea of how the rest of you handle this. How do you handle accented words and other problematic symbols on your database-driven sites? If you need to store one,

<    5   6   7   8   9   10   11   12   13   14   >