[PHP] Re: OOP in PHP 5 won't work under IIS 5.1

2004-09-05 Thread M. Sokolewicz
How does it not work? Does it show errors? or a blank screen? does IIS crash...? Felix Ang wrote: I installed PHP 5 and tried phpinfo(). It worked. But then I tried OOP sample from www.php.net , like: class MyClass { private $Hello = "Hello, World!\n"; protec

[PHP] Re: refresh withou erasing

2004-09-06 Thread M. Sokolewicz
You want to put information on a page. That's nice. You want to refresh every 5 minutes? that's also fine. You want it to refresh but to not refresh at the same time... somehow, magically, your browser should know that it only needs to add information... To avoid that issue, you could best store

[PHP] Re: Multi-User Text-Editing

2004-09-06 Thread M. Sokolewicz
Daniel Schierbeck wrote: I'm developing a site with information about songs, albums and artists. I would like to have the song lyrics as well, but i don't know how i should approach it. What i want is basically a way for many users to update, add or delete parts of a text (the lyric). It will p

Re: [PHP] gzip

2004-09-07 Thread Matt M.
> I have a file on my server that I want to compress in a php page i.e take file.txt > and add it to the archive file.zip. > > How the hell do I do it using gzip cant understand the manual, or is there another > way to create a zip file or other compressed file. > have you looked at http://pea

Re: [PHP] More on the credit card fraud

2004-09-07 Thread Matt M.
> The fraudulent orders that I receive on my site come with email > addresses of eight random alphanumerics @yahoo.com. preg_match('/[EMAIL PROTECTED]/', $email) should do the trick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() from addess problems

2004-09-07 Thread Matt M.
> How would I get this to change? I didn't see anything in php.ini or > httpd.conf. I've found it's not possible to do a header rewrite with > postfix either. There is examples in the manual http://us2.php.net/mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] foreach()

2004-09-08 Thread Matt M.
> Warning: Invalid argument supplied for foreach() in > c:\apache\htdocs\or_6.4.php on line 15 do a print_r on $_POST to see what is in the array. > > > BBQ Pork Bun > Chicken Bun > Lotus Seed Bun > Bean Paste Bun > Bird-Nest Bun > > > > > Selected buns: > > foreach ($_POST['lunch'] as $c

Re: [PHP] Users of RDBMS

2004-09-08 Thread M. Sokolewicz
John Nichel wrote: Joshua D. Drake wrote: PHP != MySQL MySQL != RDBMS Please tell me you're kidding. that's a funny one... could've sworn it actually was one... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with header("Location:home.php")

2004-09-09 Thread Matt M.
> the connection file I have included in every page. > why this error is occuring? check E:\PHPMySql scripts\bugtrack\connection.php for white space before or after -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array inside Class

2004-09-10 Thread M. Sokolewicz
Wouter Van Vliet wrote: On Fri, 10 Sep 2004 14:26:22 -0400, John Holmes <[EMAIL PROTECTED]> wrote: From: "dirk" <[EMAIL PROTECTED]> can anyone explain to me, why I can't resize an array inside a class? Sample Code: Output: Parse error: parse error, unexpected '(', expecting ',' or ';' in /srv/www/

Re: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread M. Sokolewicz
Why would you do such strange things? It's a lot more simple :P $now = time(); $plus7 = $now+(7*24*60*60); // 7 days, containing 24 hours each, containing 60 minutes each, containing 60 seconds each. echo 'Current Date: '.date('Y-m-d', $now); echo 'Date in 7 days

[PHP] Re: create and read array

2004-09-11 Thread M. Sokolewicz
Alexander Kleshchevnikov wrote: Maybe you want this: while ($data = mysql_fetch_assoc($news)) { $sql += "INSERT INTO newtable VALUES ($data['AUS'], $data['id']);\r\n"; } I seriously recommend using .= on strings instead of +=. += DOES work, that's true, but it's not INTENDED to be used on stri

[PHP] Re: Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread M. Sokolewicz
Nick Wilson wrote: Hi all, Say i have a php script like this: How come I dont see the html header (it's just a function that returns a string with the html up till ) before the entire script has run? This goes against my understanding, why might this be and what might i use to get some output be

[PHP] Re: getting number of unique values out of array

2004-09-12 Thread M. Sokolewicz
Merlin wrote: Hi there, I am wondering how to count the number of unique values inside an array. For example, there is an array named country and it containes 3 country names, where Germany is doubled. So I would like to know that there are 2 unique country names in the array. Has anybody an ide

Re: [PHP] Convert textarea post data from plain text to html using php..how?

2004-09-13 Thread M. Sokolewicz
Trevor Gryffyn wrote: Two options: 1. nl2br($posteddata) - This converts all the \r\n's to 's so that it comes out with the same carriage returns as the person who inputed it gave it It doesn't change \r\n to , it only changes \n to 2. Use HTML "" tabs to do the same thing. I think that's the tric

[PHP] Re: php.net code samples grey boxes

2004-09-13 Thread M. Sokolewicz
Greg Donald wrote: Is it just me or are the styles for the grey code sample boxes on php.net messed up? I can't see any of the code, it's just solid grey boxes from here. I am trying with Mozilla 1.6-5 and Firefox 0.8 on Debian sarge. Anyone else seeing this issue? The copy of the PHP manual I

Re: [PHP] syntax questoin

2004-09-16 Thread Matt M.
> $Msg .= "Test is complete" > > I'm thinking it means concatenate $Msg with "Test is complete" and then > store the new string into $Msg > > Am I right? you are correct, same as: $Msg = $Msg."Test is complete" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] sorting multidimensional array by a second level value

2004-09-17 Thread Matt M.
> > I'd like to sort the array based on one of the values in the field > > href, description, or time. Is there a canonical way of doing this? you might be able to use http://us2.php.net/manual/en/function.usort.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Re: math in PHP

2004-09-18 Thread M. Sokolewicz
$var = "1+2+3+4+5"; // should be 15 eval('$result = ('.$var.');'); echo $result; // returns 15 --- could also be written as: eval("\$result = ($var);"); but that's not the point ;) Whitehawk Stormchaser wrote: Hi! I have been trying to make some sort of calculator in PHP, but I have stumbled on a

[PHP] Re: use php to download mysql table

2004-09-18 Thread M. Sokolewicz
try: header('Content-type: application/vnd.ms-excel'); echo ''; $result = mysql_query('...'); while($row = mysql_fetch_array($queryResult)){ echo ''; foreach($row as $cell) { echo ''.$cell.''; } echo ''; } echo ''; exit; ?> Amc wrote: Hi, Does anyone have any sample code that wil

[PHP] Re: var references question

2004-09-19 Thread M. Sokolewicz
That's because you're moving the variable from the main scope to the function scope. When you're there, you import the VALUES (that is, make a COPY) of the variables supplised via the function call. If you change a variable inside the function, it will only be changed in the function scope, and

[PHP] Re: transfer coding

2004-09-21 Thread M. Sokolewicz
Qt wrote: Dear Sirs, I gave a post problem and can't solve last a couple of weeks. Todays I come some point but need to ask some thing. I have a destination server and configured to receive some datas. Owner of the server gives the same name of the different data. His idea is that let the internet

[PHP] Re: shuffling an array (array generated from records in a database)

2004-09-21 Thread M. Sokolewicz
Richard M Ongkiko wrote: I am trying to implement some sort of a shuffle. What I am trying to do is a random shuffling of an array whose contents were records from a database. I am basically trying to shuffle/randomize, questions, so that different users will have different versions of

[PHP] Re: ftp in php

2004-09-23 Thread M. Sokolewicz
Linda wrote: Hi, Does anyone know how to enable ftp in php without having to compile again as I get an error when I use the make command. I read something about making a change to the php.ini file: under Windows Extensions: extension=php_ftp.dll but where is this php_ftp.dll file located? how can

Re: [PHP] Need help... getting information from external xml document

2004-09-23 Thread Matt M.
> > > > can anyone help? start looking here http://us2.php.net/xml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread Matt M.
> >> I am new to php and xml and would like to know how I can set a > >> variable (i.e $terror_threat_level) equal to the value of > >> Threat_Advisory's Condition in the following that is available at > >> http://www.dhs.gov/dhspublic/getAdvisoryCondition ... > >> > >> > >> if you are using p

Re: [PHP] PDF from PHP generated HTML, possible?

2004-09-23 Thread Matt M.
> Is it possible to have PHP dynamically build an HTML page (from database > data etc) and provide an option to output the page as PDF without going > through all the database query routine again? you could use output buffering. If they choose output as pdf, capture the html that was produced, ru

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread Matt M.
> As John noted at the end... I do not have control over the format of > the XML... but thanks I will try... BTW i am using PHP4 is > SimpleXML able to be used and if so how? I would just use John's regex idea, I am guessing (i could be wrong though, I have been many times before) that the for

Re: [PHP] PDF from PHP generated HTML, possible?

2004-09-23 Thread Matt M.
> Thanks for that John, I think the big issue will be how to 'cache' my HTML > pages should I want to proceed down this route. BTW from memory I think the > 'product' was htmldoc, or similar. use output buffering, save the html into some kind of temp file -- PHP General Mailing List (http://www.

Re: [PHP] converting from name - id and PHP not seeing it?

2004-09-23 Thread Matt M.
> I jsut finished converting my pages to be W3C compliant... > One of the recuring 'errors' I had was my form elements were all using the > 'name' atrtribute... > apparently, this is bad, and I was suggested to switch them ti use the > 'id' attribute... if you want the info to be posted to the pag

[PHP] Setcookie doenn't work

2004-09-24 Thread pete M
I've got this function in a class object, however the cookie does not set even though £ok returns true !!! I've got cookies enables on all my borswers (firefox, mozilla, opera , IE).. any ideas !! function updateClient($arr){ extract($arr); //print_r($arr); $sql = "update clients set n

Re: [PHP] Setcookie doenn't work

2004-09-24 Thread pete M
doh!! ta ;-) S ilvio Porcellana wrote: $ok = setcookie("client_id", "argh", 259300); //* expire in a month ish Nope, it expired a long time ago... :-) Read the manual for setcookie: http://php.libero.it/manual/en/function.setcookie.php (mainly the part about the "expire" parameter) HTH, cheers Silv

[PHP] Re: A few questions about system requirements

2004-09-24 Thread M. Sokolewicz
Steven wrote: Howdy, I'm going to be writing an app for our company that handles the day-to-day processes here and I have a question for the experienced devs out here that would know the ins and outs of working with CMS and good stats on what is needed for a server. I wa

[PHP] Re: how to retrieve path to web server files

2004-09-25 Thread M. Sokolewicz
$path = getcwd(); Amc wrote: Hi, How can I get the string that is the path to the directories on my web server? I need to upload some files, but don't know what to supply for the destination path. In asp I used server.mappath, but I'm new to php. Thanks, -- PHP General Mailing List (http://www.php.

[PHP] Re: mail function and qmail

2004-09-26 Thread M. Sokolewicz
Php Mysql wrote: mail function in php requires to use 'sendmail'. But I have only 'qmail' on the box. How I can send email in PHP? Thanks just pretend it doesn't say sendmail but qmail. It works on both :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] Re: no reload

2004-10-10 Thread M. Sokolewicz
t the headers control the browser's caching? Gal wrote: add the following headers. Important: Make sure they are located in your script before you print to the browser !!! // always modified header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // HTTP/1.

[PHP] Re: If statement question...

2004-10-10 Thread M. Sokolewicz
Gh wrote: I would like to know how I can code the the following conditional check if the $_GET['api'] does not exist, or is either set and has no length or is set and is not an integer. I am drawing a blank on the if statement to use if(!isset($_GET['api'] || strlen($_GET['api']) == 0 || !

[PHP] Re: If statement question...

2004-10-10 Thread M. Sokolewicz
M. Sokolewicz wrote: Gh wrote: I would like to know how I can code the the following conditional check if the $_GET['api'] does not exist, or is either set and has no length or is set and is not an integer. I am drawing a blank on the if statement to use I meant to say the

Re: [PHP] Encoding Question for getting pages

2004-10-11 Thread Matt M.
> Mozilla%2F4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.1%0A > > that one is using rawurlencode() but it's just as bad with urlencode - > How *should* I be doing this? is this how you tried to do it? $userAgent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; curl_setopt($c

Re: [PHP] spaces in select

2004-10-11 Thread Matt M.
> I have a select/option that gets populated with countries. The value of > these option are also set to the country name. The problem i have is > that some countries have spaces in them > > eg: United States of America. what doe your select loo like? something like this should work United Sta

Re: [PHP] Problem of varible

2004-10-11 Thread Matt M.
> When disable the globals varibles function, the following php can't be > good for working : this should point you in the right direction http://us2.php.net/manual/en/features.file-upload.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about array_search

2004-10-11 Thread Matt M.
> Say I'm trying to add a value to an array, only if it's not already in > there somewhere; so I do an array_search to see. The problem is that if > the item is at index 0 in the array, array_search gives the same answer > as if it's not in there at all. How does one circumvent this potential > pit

Re: [PHP] Working out the image path...partly solved, please have a look at my code

2004-10-11 Thread Matt M.
> > $url='http://www.textx.com/t1/t2/t3/blah.html'; > > function ret_url($rel_path, $base = '') > { > $base_path = substr($base, 0, strpos($base, '/',7)); > > if(substr($rel_path,0,1)=='/' && > !strpos($rel_path,'/../')) > { return $base_path.$rel_path; } > > elseif(strpos($rel_pat

[PHP] Re: B/W Image

2004-10-12 Thread M. Sokolewicz
Ulrik Witschass wrote: Hello List, I browses the PHP Manual for some time now but didn't find exactly what I was looking for. I need to turn images uploaded by a user to b/w images to use them in pdflib, the resulting PDF has to be black and white. Now my question: a) is this possible? yes, it is.

[PHP] Re: B/W Image

2004-10-12 Thread M. Sokolewicz
M. Sokolewicz wrote: Ulrik Witschass wrote: Hello List, I browses the PHP Manual for some time now but didn't find exactly what I was looking for. I need to turn images uploaded by a user to b/w images to use them in pdflib, the resulting PDF has to be black and white. Now my question: a) is

Re: [PHP] Working out the image path...partly solved, please have a look at my code

2004-10-12 Thread Matt M.
> /../imgs/blah.jpg should return > http://www.textx.com/t1/t2/imgs/blah.jpg > > but its returning: > http://www.textx.com/t1/t2/t3/imgs/blah.jpg > > and this: /../../imgs/blah.jpg > should return: http://www.textx.com/t1/imgs/blah.jpg > > but its returning: > http://www.textx.com/t1/t2/imgs/bla

Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread Matt M.
> $filepath = "bla/bla/files/"; > $filename = "file.zip"; > $fullpath = "$filepath/$filename"; > > header( ' Pragma: '); > header( ' Content-Type: application/force-download' ); > header( ' Content-Type: application/octet-stream ' ); > header( ' Content-length:'.(string

[PHP] Re: Exporting HTML to Excel

2004-10-12 Thread M. Sokolewicz
Philip Thompson wrote: Hi all. This may not be completely a PHP question, but hopefully you will be able to provide some insight. I have a table in HTML that I want to export to an excel spreadsheet. Using PHP, I can create an excel document - however, it's empty/blank. I think I am just doing i

Re: [PHP] detecting ssl

2004-10-13 Thread Matt M.
> It worked for me, for thousands of others, but not for everybody. Some people > just could not use the site anymore. So I guess the SERVER_PORT var can not > necessarily be count on. > > Has anybody an idea how to overcome this? try if ( !isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS'

Re: [PHP] reg. expressions

2004-10-13 Thread Matt M.
> on one place I have string "something (something_2)" > I have to take out of the string everything in brackets and brackets as > well. > probably I will need to use Regular Expression Functions but I'm really > bad with them :) $string = "something (something_2)"; $pattern = "/\(.*\)/"; $replace

Re: [PHP] .htaccess and .htpasswd

2004-10-13 Thread Matt M.
try an apache mailing list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Knowledgebase/Troubleshooter

2004-10-14 Thread pete M
goto sourceforge.net there's tons of stuff there.. No need to reinvent the wheel ;-))) pete Lee Standen wrote: Hi Guys, I was wondering if anyone knows of a project for creating a troubleshooting wizard, much like in the Microsoft help. I've managed to make something which kind of works myself,

Re: [PHP] Re: Determine variable with the lowest value?

2004-10-14 Thread Matt M.
On Thu, 14 Oct 2004 10:52:20 -0500, BOOT <[EMAIL PROTECTED]> wrote: > OK thanks but I guess I didn't explain what I am trying to do properly. > > I need to be able to identify the variable name as well as pick the variable > with the lowest value. > > Something like this: > > Whose turn is it to

Re: [PHP] Referring Page

2004-10-14 Thread Matt M.
> I am trying to set up a script that will do different things based on the > reffering page, without having to include the information in the URL. Does > PHP have a built in variable or function that would tell the rest of the > script what page the user came from? Any help is much appreciated.

Re: [PHP] Referring Page

2004-10-14 Thread Matt M.
> >> I am trying to set up a script that will do different things based on > >> the > >> reffering page, without having to include the information in the URL. > >> Does > >> PHP have a built in variable or function that would tell the rest of the > >> script what page the user came from? Any help

Re: [PHP] throw me a bone for a regexp please.

2004-10-15 Thread Matt M.
> Also if someone could direct me to a site that explains how to use and > create regexp in a small minded manor since I have been unable to > grasp the concepts. the regex coach has been a big help to me http://www.weitz.de/regex-coach/ you might find it useful -- PHP General Mailing List (h

Re: [PHP] Help with parsing result code

2004-10-15 Thread Matt M.
> I'm setting up a credit card payment app. When I send the information > through the form I get a result similar to this: > > NOT CAPTURED:00:428930479495:NA:1015:9755676331042890:1:1 > > This is the only data in the result page. > > I have never done parsing, and I have no idea of how

Re: [PHP] Help with parsing result code

2004-10-15 Thread Matt M.
> http://us2.php.net/manual/en/function.preg-split.php > > should do it also http://us2.php.net/explode -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_num_rows()

2004-09-27 Thread M. Sokolewicz
tting the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /Library/WebServer/Documents/limiteduse.net/dumptoday.php on line 56 I¹m not clearly sure why. I¹m running PHP5 with mySQL 4 ... Is there a compatibility issues somewhere? -- PHP General Mailing List (htt

[PHP] Re: blank emails

2004-09-27 Thread M. Sokolewicz
Actually, most of the times I encountered this "problem" was when I was sending "complicated" mime email. PlainText emails are built up of headers, and the plaintext message. More complex emails use MIME to seperate multiple things, eg. attachments, different versions of the text (some send bot

[PHP] Re: grabbing information from websites

2004-09-28 Thread M. Sokolewicz
help. p.s. try and keep the answers fairly straight forward as i am new to this instead of the POSIX regexp, tr using PERL style RegExps (www.php.net/pcre) Once you've done that, you can add the pattern modifier 'm' to allow multilines . -- PHP General Mailing List (http:/

[PHP] Re: Shell command in php script

2004-09-28 Thread M. Sokolewicz
Vincent Fonteneau wrote: Hi, I'm trying to find how to execute a shell command in a php script, I meen I would like for example to stop services like ssh or others in /etc/init.d with command stop and start it again. I've tried some commands without success, and I've missed something like script ow

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread M. Sokolewicz
I thought I clearly stated that for the m modifier you need to use PCRE functions! eg: preg_match('/username=champinoman&category=13.*align="right">(.*)/mi', $text, $out); Champinoman wrote: so does this look right: eregi ("username=champinoman&category=1

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread M. Sokolewicz
ugh, obviously I'm a bad typer :) The code should be: preg_match('#username=champinoman&category=13.*align="right">(.*)#mi', $text, $out); Or using any other patterndelimiter... ;) M. Sokolewicz wrote: I thought I clearly stated that for the m modifier you

Re: [PHP] Make cron file

2004-09-28 Thread M. Sokolewicz
Jay Blanchard wrote: [snip] I need make a cron file, for example a .job file: #mi hodimeseq jobcomment 45 11** 0-5 php -q /home/test/test.php # Make backup How can make it?. [/snip] Type crontab -e and the cron file will be openedunl

[PHP] Re: Need some ideas

2004-09-28 Thread M. Sokolewicz
Yoed Anis wrote: Hi guys, OK I need some ideas. Somebody created the stupidest XML file I've ever seen. And of course they can't change it, and I *must* be able to read it. I'm all out of brain power on thinking how to go about reading it. I typically use simplexml to read xml and that's w

Re: [PHP] splitting string into array

2004-09-29 Thread Matt M.
> Example, > A12B05C45D34 > > I need to split this into chunks of three A12,B05,C45..etc? not sure if your string will always be the same patter but this might work $string = 'A12B05C45D34'; $array = preg_split ( '/([a-zA-Z]\d{2})/', $string, -1,PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE );

[PHP] Re: World time convertor

2004-09-30 Thread M. Sokolewicz
Phpu wrote: Howdy Is there a time convertor written in php? I mean to convert a specific hour/date in all world countries. convert... in what way?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: include_path and safe_mode in virtualhost

2004-09-30 Thread M. Sokolewicz
Christian Ista wrote: Hello, I have a didecated server (linux redhat + apache 1.31.x and PHP 4.3.x). I'd like for a specific virualhost, set the include_path and safe_mode To do that, I did : . php_admin_value safe_mode on php_admin_value include_path ".:/design:/home:/manager:/login:/style"

Re: [PHP] Session Variable Security

2004-09-30 Thread Matt M.
> Can anyone tell me how secure a session variable is. I realize that if > someone wanted to take the time to break into my site they will eventually > succeed, but I dont want to make it too easy. I have a database that stores > a username and an encrypted password which both are verifyed when t

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Matt M.
> I'm glad to hear that, cause some of them did seem a bit difficult. I > understood perfectly after seeing the correct answer and the > explanation, but they were a little tricky. I would be interested in feedback on the exam. I am looking into taking the test, just hoping Zend runs the $100 d

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Matt M.
> You can win a free pass to take the exam by being the first to solve this > puzzle: > > http://shiflett.org/archive/55 > > Enjoy. :-) I think I have it, why dont you email me the answer and I will double check that against what I got. -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Matt M.
> This is just too easy: > > The shown times are posting-times for one day on this list, for posts > regarding mysql. ah ha. could also be unsubscribe emails -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image Manipulation

2004-10-01 Thread Matt M.
> I would like to know if there is a way to have PHP determine the > dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide > or height have it scale it down proportionally to that width or > height? look at http://us4.php.net/gd -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP Host with PayFlow Pro

2004-10-01 Thread Matt M.
> I'm trying to locate a PHP web host, preferably one running PHP 5, that also > supports the PHP payflow pro binaries? Anyone have any recommendations? have you tried google? http://www.google.com/search?hl=en&lr=&ie=UTF-8&client=firefox-a&q=PHP5+hosting+payflow&btnG=Search also, search the mai

[PHP] Re: Newbie needs help with MySQL and multiple databases

2004-10-03 Thread M. Sokolewicz
Matthew wrote: Hi, im fairly new to php and mysql and need a little help. im running a forum community and would like to have it run on multiple databases because of performance issues others have encountered using the same software on on database. My question is is it possible to have the software

[PHP] Re: different behaviour converting float to integer

2004-10-04 Thread M. Sokolewicz
You might want to ask this on the internals list (cc'd) Tomas Kuliavas wrote: When php 5.0.2 converts float to integer, it uses biggest possible integer value. Other php versions overflow and use negalive integers. How to reproduce it: echo (int)0xde120495; Expected result (php 5.0.1, 4.3.9 and 4.1

Re: [PHP] Parse file and input into DB

2004-10-04 Thread Matt M.
> What I would like to do is upload a file and have PHP parse the file and > dump the information into a MySQL database, putting the information into > select tables. I believe I can do everything EXCEPT parse the page. > Anyone have some insight (or direct links) to some examples on what to > use

[PHP] Re: Math problem with modulus

2004-10-05 Thread M. Sokolewicz
Christoph Schwadorf wrote: Hello. I have some problems with basic math in the function below. function Custom_Round($Digit, $Divisor) { return (($Digit / $Divisor) - (($Digit % $Divisor) / $Divisor)); } Custom_Round(23, 10) returns float(2) as expected. Same for Custom_Round(22, 10). BUT when

[PHP] Re: PEAR & Auth

2004-10-05 Thread M. Sokolewicz
Pahlevanzadeh Mohsen wrote: I was working with Auth class.That was working good. But i receive following errror: Fatal error: Undefined class name 'db' in /var/www/html/votting/Auth/Container/DB.php on line 130 Please guide me. = -DIGITAL SIGNATURE--- ///Mohsen Pahl

Re: [PHP] pdf_open_pdi_page

2004-10-06 Thread Matt M.
> *Fatal error*: PDFlib error: [2016] PDF_open_pdi: PDF import (PDI) not > supported in this configuration in > *d:\worksheet-server\wss\html\pdf\test2.php* on line *7* I could be wrong but I think you need a special license for this functionality. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Referencing a "constant" class variable

2004-10-06 Thread M. Sokolewicz
Chris Boget wrote: I believe you can make the property static (at least in PHP5): class MyClass { public static $myClassVar = "Bob"; } echo MyClass::$myClassVar; // Bob Unfortunately, in PHP4.3.2 that doesn't seem to be working... :( Does anyone know how I can access a class' variable w/o having t

Re: [PHP] Push file to FTP Server

2004-10-06 Thread Matt M.
> Does anyone know how I might be able to have php push a file to an FTP > server? did you look in the manual or even try google? http://us4.php.net/ftp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting rid of NOTICE

2004-10-07 Thread M. Sokolewicz
Marek Kilimajer wrote: Roger Thomas wrote: I dont know how to explain this but when you work with an ldap attribute, they are case sensitive. jpegPhoto was what the schema was written with. However when you retrieve that into PHP, you accessed them with all lower case. So accessing userPassword

[PHP] Re: [PHP5] How to knwo object class name in a function called statically

2004-10-07 Thread M. Sokolewicz
Frédéric hardy wrote: Hello - I have this code : abstract class foo { private __construct() {} public static getInstance() { static $instance = null; if (is_null($instance) == false) return $instance; else { $class = __CLASS__; return new

Re: [PHP] Re: [PHP5] How to knwo object class name in a function

2004-10-07 Thread M. Sokolewicz
Marek Kilimajer wrote: M. Sokolewicz wrote: Frédéric hardy wrote: Hello - I have this code : abstract class foo { private __construct() {} public static getInstance() { static $instance = null; if (is_null($instance) == false) return $instance; else

Re: [PHP] Set up cron using PHP

2004-10-07 Thread M. Sokolewicz
Petar Nedyalkov wrote: On Thursday 07 October 2004 13:17, Sheni R. Meledath wrote: Hello: We need to set up a cron to send an automated email at regular intervals. For this I need to execute a PHP file which retrieves the required information to be mailed. On my virtual server PHP is loaded

Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Matt M.
> Do you have a source for your assumption ? to use pdi you need PDFlib Personalization Server (PPS) http://www.pdflib.com/products/pdflib/pps.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Set up cron using PHP

2004-10-07 Thread M. Sokolewicz
Petar Nedyalkov wrote: [snip] Your way is better for cronjob use, mine is better if the user needs to deploy the script not only as a cronjob. [/snip] I agree ;) [snip] This workaround is fine, but I think using lynx or any similar browser can save the "rm -f" part. [/snip]yes... but wouldn't you

[PHP] Re: Muti-Dimensional Array Help Please

2004-10-07 Thread M. Sokolewicz
Nick Wilson wrote: hello all, I have some text files in a directory that contain newline delimited IP addresses. Here is what i would like to do with them, and what i have achieved so far: I read the files into a multi-dimensional array like: (pseudo code) array(IP_blocks) = ( File_number[1] = ar

Re: [PHP] Re: Muti-Dimensional Array Help Please

2004-10-07 Thread M. Sokolewicz
Nick Wilson wrote: * and then M. Sokolewicz declared However, if it does matter, then I suggest a different way. This would Yes, it does matter, a *lot* ;-) I have to hit each machine in order, choosing an IP from that machine and using it do 'do_stuff()' order them by their 2nd

Re: [PHP] Re: Muti-Dimensional Array Help Please

2004-10-07 Thread Matt M.
>$max = ($max >= count($ips) ? $max : count($ips)); if ($max >= count($ips)) { $max = $max; } else { $max = count($ips); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Matt M.
> I was on that page. > There's nothing which comes close to your assumption. sorry, wrong link you dont need PDFlib+PDI. Is that the license that you have? here is an assumption. I assumed you would read the pdflib manual, did you see? Note All functions described in this section require PDF

Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Matt M.
> sorry, wrong link you dont need PDFlib+PDI. Is that the license that you have? I mean you "do need" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matt M.
> My boss recently called PHP "good for hobbyists" but REAL sites have to > be done with Microsoft technologies. He wants to use Sharepoint for a > wiki type site because of versioning. :) real sites use iis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] Re: Sessions not destroyed

2004-10-08 Thread M. Sokolewicz
are you using the default PHP sessions? or are you using a custom session handler? Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend

Re: [PHP] fopen and http://

2004-10-08 Thread Matt M.
> But I don't understand why I am getting that error about failed to open > strem: HTTP request failed, when I can bring up the links fine in a > browser on the server running the php script. So can anyone help me out? > Thanks do you have allow_url_fopen enabled? http://us4.php.net/manual/en/r

Re: [PHP] Sessions not destroyed

2004-10-08 Thread M. Sokolewicz
Hendrik Schmieder wrote: Graham Cossey schrieb: [snip] If you are right, then this is a severe design bug. Depends on your point of view. It is a sideeffect of loading current session (and thus accessing it) before the session gc is called. So the question is, should the session module give

Re: [PHP] URL verification

2004-10-08 Thread Matt M.
> how can i check in the page if the user is accessing the the site via SSL ?? > or i have to put a redirect in the page anyway, whether the user is > alredy accessing the page via SSL? if it has to be https, why not just use mod_rewrite to make sure it is. With php you could check $_SERVER['SERV

Re: [PHP] Grab an array from a cookie without throwing errors?

2004-10-08 Thread Matt M.
> $cookie = $_COOKIE['bookmarks']; > if(unserialize($cookie) == true) { > $bookmarks = unserialize($cookie); > } else { > $bookmarks = array(); > } if (isset($_COOKIE['bookmarks'])) { $cookie = $_COOKIE['bookmarks']; if(unserialize($cookie) == true) { $bookmarks = unserializ

<    1   2   3   4   5   6   7   8   9   10   >