Re: [PHP] export mysql to excel

2004-05-14 Thread Marek Kilimajer
CurlyBraces Technologies ( Pvt ) Ltd wrote: hi , i want to export data in mysql to excel . but problem is mysql runs in the linux machine , How can i get that data from mysql-Linux machine to windows-Excel machine , plz help asap thanx in advance curlys There are few classes that can create

Re: [PHP] Not sure

2004-05-14 Thread Marek Kilimajer
Brent Clark wrote: Hi all I have the following php code: echotdnbsp;/tdtdinput type=\checkbox\ name=\frow\ value=\$var\/td\n; I now have the following javascript code: !-- From webmin-- a href='' onClick='document.frm.frow.checked = true; for(i=0; idocument.frm.frow.length; i++) {

Re: [PHP] Is it possible to pass arguements when using PHP before 4.3.n?[SOLVED]

2004-05-13 Thread Marek Kilimajer
Jay Blanchard wrote: Is it possible to pass arguements when using PHP before 4.3.n when doing command line stuff? I have built a small script that opens a file, reads from it, and returns some results. Instead of changing the fopen line each time I would just like to pass the name of the file to

Re: [PHP] site search engine.. not dynamic

2004-05-13 Thread Marek Kilimajer
Aaron Wolski wrote: Hi all, Can anyone point me in the direction of a site search engine that reads files in a directory find relevant results for an search term that a person might enter on a site? I need to build a site search engine but the problem is. the site isn't dynamic (yet) so I need

Re: [PHP] updating pdf

2004-05-13 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: hi, I'm working on a project and i need to modify some pdf files before printing them. In fact, i got some pdf models, and a database which contains informations to print. I want to add this informations in pdf files and then start printing. My problem at this time is

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Marek Kilimajer
Michal Migurski wrote: Isn't this potentially a DoS attack vector anyway? I don't need a server to accept or read my obscenely long POST requests to clog the pipes with them. Would the proper way to handle this risk be to disallow POST at the webserver level, or does turning

Re: [PHP] thumbnail problems

2004-05-10 Thread Marek Kilimajer
Ninti Systems wrote: I've searched the archives on this and, while I have turned up some tips, they don't seem to solve my problem. I an building a website for an indigenous organisation where jpg images are uploaded, resized to a standard format, and thumbnails also generated at the same time (so

Re: [PHP] unsigned long int

2004-05-10 Thread Marek Kilimajer
René Fournier wrote: I don't know C, but I was wondering if it is possible to: 1. Define 32-bit integer in PHP, called $val (max value of $val); 2. Assign the value of 10 to $val. 3. Pack $val to a binary variable ($bin_var); ...such that $val is only equal to 10, but it is occupying 32-bits of

Re: [PHP] Complicated sql for search query ?

2004-05-10 Thread Marek Kilimajer
Something like: select , IF(title_keywords like \%$word1%\ or body_keywords like \%$word1%\, 1, 0) + IF(title_keywords like \%$word2%\ or body_keywords like \%$word2%\, 1, 0) as relevance .. ORDER BY relevance I hope you get the point. Dave Carrera wrote: Hi List, I think this a

Re: [PHP] Unline file...permission denied

2004-05-05 Thread Marek Kilimajer
http server needs write permission to the directory (../../secure/Admin/Orders/). Permission on the file do not matter. Aaron Wolski wrote: Hey all, I have a script that DDI work but for some reason it no longer does. It attempts to unlink a file before writing a new file. The code for it is:

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Marek Kilimajer
msa wrote: My date format is as aboveI am getting the following error message: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Y') . ' AND MONTH(date) = ' . date('m') . ' ORDER BY sort DESC' I changed your

Re: [PHP] Numeric Index of an array

2004-05-02 Thread Marek Kilimajer
Natascha Chrobok wrote: How can I get the numeric Index of an array when the index is a string? string indexes don't have numeric indexes. they are in order however, if you want to find the order of a value, use: echo array_search(array_search(my second value, $myArray), array_keys($myArray));

Re: [PHP] Setting fopen timeout ?

2004-05-02 Thread Marek Kilimajer
Dave Carrera wrote: Hi List, How can I set fopen to time out if a url is not reachable ? I have tried set_time_limit but that dose not seem to work. Thank you in advance for any help or pointers. Dave C I'm not sure it will help but try ini_set('default_socket_timeout', XX); --- Outgoing

Re: [PHP] php code in a .js file?

2004-04-29 Thread Marek Kilimajer
Craig Donnelly wrote: Why not just use a .php instead of a .js? script language=Javascript src=jsscript.php/script Regards, Craig That was what I meant ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Shared session ? (frames application)

2004-04-25 Thread Marek Kilimajer
Richard A. DeVenezia wrote: I am wondering if it is possible to let two or more scripts share a common session id ? I am guessing not, but would like to be proved wrong. I might get you wrong, but unless you take some precausions all scripts on a single domain share common session id. -- PHP

Re: [PHP] Call to external function

2004-04-25 Thread Marek Kilimajer
Jeff McKeon wrote: No... PHP and JavaScript are executing at different time and at different place. Besides, they are executed by different programs. Are you trying to measure execution time of a query?? Look at: http://www.php.net/microtime No, I'm trying to get a little animation on the

Re: [PHP] static __get function

2004-04-24 Thread Marek Kilimajer
I'm not sure if it will help but do't define the magic functions as public static, use just: function __get(...) The function is not public anyway, as it should no be called directly. And to my knowledge self:: references a class, not an object. You should use $this- instead. David Goodlad

Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Marek Kilimajer
Hmm, this will certainly slow down PHP5 acceptance. I cannot imagine a hosting company that will upgrade to PHP5 and break so many client's applications. Johannes Reichardt wrote: Hi there, i don´t know if this is the right place to ask but since there are a lot of cracks around i thought i

Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Marek Kilimajer
I just installed php5 (finaly :-)) and it does not throw any error nor warning. I think what you see is Notice, so the behavior did not change. Johannes Reichardt wrote: Hi there, i don´t know if this is the right place to ask but since there are a lot of cracks around i thought i throw this

Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Marek Kilimajer
Curt Zirzow wrote: Here is the offending situation: ?php /* E_NOTICE: undefined index, returns false */ unset($a); echo is_array($a['foo']['asdf']); /* returns false */ $a = 'asdf'; echo isset($a['foo']['asdf']); /* returns false */ $a = array('foo' = 'asdf'); echo is_array($a['foo']['asdf']);

Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Marek Kilimajer
Mark Charette wrote: From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Well, what I always know about my variables is if they are arrays or scalar ;) And I don't consider warning to be much nicer then error Hmmm ... my current methods and functions in PHP 4.x oftentimes adapt to the type passed

Re: [PHP] Escape problems...why?

2004-04-23 Thread Marek Kilimajer
Ryan A wrote: Hey John, Thanks for replying. I cant use strip slashes because there are a number of scripts doing DB things and searching for all of them and modifying things just for one client can be a royal PITA. I tried to use php_flag magic_quotes_gpc off in the *existing* .htaccess file like

Re: [PHP] Re: $PATH_INFO not working

2004-04-23 Thread Marek Kilimajer
Torsten Roehr wrote: Noel Da Costa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the thought... I was using getenv('PATH_INFO'). I tried $_SERVER['PATH_INFO'], but it didn't help. PATH_INFO is working, ie being filled, but Apache doesn't seem to know what to do with it.

Re: [PHP] Safe mode effect

2004-04-22 Thread Marek Kilimajer
Ravi kumar wrote: HI, goole.com found so many details about safe mode too much to understand. My hosting provider set php safe mode = enable . so iam unable to use so many scripts . can any one give good free image gallery software which will work under safe mode = enable . is it true that

Re: [PHP] Making comments on website items, etc...

2004-04-22 Thread Marek Kilimajer
Search for php tutorial Ashwin Purohit wrote: Hi all, I have a website where I have uploaded a few of my drawings, etc. I want to know how to write a simple php script so that people can post comments beneath the pictures for all to view. If somebody could point me to some tutorial or run me

Re: [PHP] TRUE or true?

2004-04-22 Thread Marek Kilimajer
Richard Davey wrote: Hi all, I know from a code point of view it makes no difference at all (i.e. they both work), but which format do you all use for booleans? TRUE / FALSE or true / false The PHP manual uses both :) Zend Studio tries to auto-complete to the lower-case variant. I'm not

Re: [PHP] user inputs in infinite php loop

2004-04-22 Thread Marek Kilimajer
casi wrote: Hi guys, I have a php site running in an infinite loop in order to have a permanent tcpip connection with fsockopen to another server. Now the user should be able to make an input. As the php is running in the infinite loop, the html form variable is not refreshed. Is there a

Re: [PHP] eval() question

2004-04-21 Thread Marek Kilimajer
OrangeHairedBoy wrote: I would like to use eval() to evaluate another PHP file and store the output of that file in a string. So, let's say, for example, that I have a file called colors.php which contains this: pColors: ? echo Red, Yellow, Green, Blue; ?/p Then, in another file, I have this:

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi there I was wondering how people usually turn the app off during system maintainance. During the hours of 6-7 the database goes down for backing up, the users therefore keeping trying to get into the system, i get an error that the database is down when i know it should

Re: [PHP] Bookmark server

2004-04-18 Thread Marek Kilimajer
Chris W wrote: Justin French wrote: On 18/04/2004, at 10:35 AM, Chris W wrote: So now I am out of ideas and was wondering if anyone here had any. We're getting a little OT, but it's possible that a bookmarklet (a JavaScript bookmark) installed on all browsers you use could act as the method

Re: [PHP] why doesn't this work ?

2004-04-18 Thread Marek Kilimajer
Pooya Eslami wrote: Yes, the server supports php, and I don't want to make it into a php file because its a big html file and I just need this little script on it. Why cannot I embed php in html files? The server does not parse html files for php so that it does not waste CPU on parsing files

Re: [PHP] FPDF Help

2004-04-16 Thread Marek Kilimajer
Nathan Mealey wrote: Anyone who is familiar with using FPDF to generate PDFs, I'd really appreciate some suggestions here: I am using the following code, virtually identical to that used in the FPDF tutorial examples. But I keep getting a parse error for the first line containing the

Re: [PHP] Custom session functions

2004-04-16 Thread Marek Kilimajer
I found only one problem - you must lock the session file when the session is open and unlock it when closed. There is a user note in the manual that explains it. Will wrote: Hello all, Due to my need to have the whole session data file encrypted. I am thinking about using custom session

Re: [PHP] session timeout

2004-04-16 Thread Marek Kilimajer
pete M wrote: Am trying to increae the session lifetime to 8 hours ish using this code ini_set('session.gc_maxlifetime',28800); does not work ? any ideas Pete There are 3 conditions that must be met: 1. You must set it before session_start() 2. No other application can access your session

Re: [PHP] binary data in php

2004-04-16 Thread Marek Kilimajer
Anthony Ritter wrote: Any other thoughts? Best... TR ... ? if ($submit) { You said register globals are off, didn't you? Where is the above variable set then? :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] binary data in php

2004-04-16 Thread Marek Kilimajer
Anthony Ritter wrote: However when clicking the getdata.php link - the file does not appear on the screen. The code is below. Thank you for your time. TR . //getdata.php ? if($_GET['id']==1) { @myql_connect(localhost,root,mypass); Remove @'s while debugging.

Re: [PHP] Syntax error (missing operator) in query expression

2004-04-15 Thread Marek Kilimajer
This answers it all: http://sk.php.net/addslashes#28429 AgfTech Lists wrote: Hi All Following is the INSERT statement I am executing, snip INSERT INTO customer (email, password, handle, fname, lname, company, tax_id, addr1, addr2, city, state, zipcode, country, dayphone, evephone, fax,

Re: [PHP] remote files handling

2004-04-14 Thread Marek Kilimajer
Red Wingate wrote: http://de.php.net/filemtime [quote] As of PHP 5.0.0 this function can also be used with some URL wrappers. Refer to Appendix J for a listing of which wrappers support stat() family of functionality. [/quote] -- red As you likely don't have PHP5 installed, use fsockopen,

Re: [PHP] require_once '../config.php'; doesn't work?

2004-04-09 Thread Marek Kilimajer
Mike Zornek wrote: Is it true I can't include a file up a dir like this: require_once '../config.php'; This seems to work though: require_once 'settings/db.php'; Strange. Both works as long as other settings permit it - file permission and owner, safe mode restrictions -- PHP General

Re: [PHP] PHP - Basic Auth - Cpanel

2004-04-08 Thread Marek Kilimajer
Ryan A wrote: Hi, A client is selling hosting from his site, and _his_ clients get their own control panel from CPanel, for the sake of understanding I will name my client A and his client(s) B. When B needs to log into his cpanel he basicially goes to his a url like this:

Re: [PHP] assigning NULL to a variable

2004-04-07 Thread Marek Kilimajer
William Lovaton wrote: El mar, 06-04-2004 a las 07:41, Marek Kilimajer escribió: Andy B wrote: how would you assign NULL to a variable if its original value is ? otherwise leave it with its value... if($var === '') $var = NULL; what about: if ($var == '') unset($var); No - NULL

Re: [PHP] assigning NULL to a variable

2004-04-06 Thread Marek Kilimajer
Andy B wrote: how would you assign NULL to a variable if its original value is ? otherwise leave it with its value... if($var === '') $var = NULL; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sorting array of objects

2004-04-05 Thread Marek Kilimajer
Richard Harb wrote: Hi there, Supposed I have an array of objects, like: $this[$i]-property1 $this[$i]-property2 is there any 'cheap' way to sort the array according to the values of property1? http://www.php.net/usort Example: function cmp($a, $b) { if ($a-property1 == $b-property1) {

Re: [PHP] how to reset PHP_AUTH vars

2004-04-03 Thread Marek Kilimajer
Nitin Mehta wrote: Hello all, I'm facing this problem and tried many solutions with no success. How do I reset the value of PHP_AUTH_USER and PW. I've tried session_destroy(), but as I'm not starting any session at all, it's not worth. I've tried using random value to include in header. Now

Re: [PHP] php_admin_value's from httpd.conf Override'd in .htaccess files

2004-04-03 Thread Marek Kilimajer
Juan Velasquez wrote: so, if I set php_admin_value open_basedir in httpd.conf, and I give .htaccess AllowOverride permissions, can users Override the open-basedir I set? No And, how can I give out some Override's, but not php_admin_value's? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] upload file

2004-03-30 Thread Marek Kilimajer
Ketvin wrote: Dear list, I'm using squirrelmail php as my webmail interface, my php.ini have the option of upload_max_filesize = 10M but i'm having problem for adding attachment more than 400k, where the page will hang. is there any recommended things for me to check? post_max_size,

Re: [PHP] slow script

2004-03-28 Thread Marek Kilimajer
Luis Gustavo Faccioni Barcellos wrote: We notice that while the php is running, anything happens and suddenly(after ~70 seconds) the page arises. Do you have gzcompression enabled in apache or php? If so, disable it, it is useless for localhost requests. -- PHP General Mailing List

Re: [PHP] Attach Image to email

2004-03-24 Thread Marek Kilimajer
Use this class, there is even an example of the feature you want: http://www.phpclasses.org/mimemessage Mike Mapsnac wrote: Hello I know how to use mail function in php to send an email with text. But I want to add new feature to my website that allow to send email with attachment ( image).

Re: [PHP] 9 Months Ago

2004-03-21 Thread Marek Kilimajer
Jeff Oien wrote: When I do this: $lastmonth = mktime(0, 0, 0, date(m)-9, date(d), date(Y)); this will not work most of the year, if current month is August or less, the month value will be negative. Use strtotime('-9 months') instead. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Image size ??

2004-03-20 Thread Marek Kilimajer
http://www.php.net/getimagesize Tom Wuyts wrote: Hi, Is there any way to know the size of an image ?? Thanx in advance, RCTycooner - Admin of The Silver Luna Forums http://www.wuyts.org/tom/phpbb2/ [EMAIL PROTECTED] - --

Re: [PHP] Re: ip to country

2004-03-20 Thread Marek Kilimajer
Manuel Lemos wrote: On 03/20/2004 06:48 PM, Enda Nagle wrote: I have a site that will have different pricing by world region / country and also offer different currencies. Presently, the user has to select their country from a select menu and submit the form, but I would like to eliminate this

Re: [PHP] Thank you, Microsoft! Now I need an alternate loginmethod

2004-03-19 Thread Marek Kilimajer
Chris de Vidal wrote: I searched this group and someone suggested disabling Apache's keepalives but I don't have root on this box so that option is out. Try to send Connection: close header, then the connection will be terminated by the client. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Thank you, Microsoft! Now I need an alternateloginmethod

2004-03-19 Thread Marek Kilimajer
Chris de Vidal wrote: Can you confirm GET strings are also encrypted? I'm sure they do. But try to clear the URI from IE's history (using javascript), both username and password will be there. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] too much trimming

2004-03-19 Thread Marek Kilimajer
Ivan Sergio Borgonovo wrote: I've simple code like this: -- begin -- #!/usr/bin/php -q ? $pippo='goofy' ? hey my name is ?= $pippo ? and I feel good -- end -- newlines are ignored after php block end tags (?) -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Mysql look up and then rename

2004-03-19 Thread Marek Kilimajer
Brent Clark wrote: Hi all for some reason I seem to be having a problem having to do a look up in a mysql table and the take the result of that query and then perform the right action. Basically I need to do a look up for a file for example 10006547.pdf. I then need to: if no letter

Re: [PHP] how does array_multisort work?(!??)

2004-03-19 Thread Marek Kilimajer
David T-G wrote: Hi, all -- I have an array like $a = array ( 'key' = array ( 'title' = Topic Title, 'content' = Topic Content, ), ... ) ; and I'd like to sort the whole thing not on the keys but on the titles. It sounds

Re: [PHP] Thank you, Microsoft! Now I need an alternate loginmethod

2004-03-19 Thread Marek Kilimajer
Chris de Vidal wrote: Marek Kilimajer said: I searched this group and someone suggested disabling Apache's keepalives but I don't have root on this box so that option is out. Try to send Connection: close header, then the connection will be terminated by the client. I don't understand... would

Re: [PHP] Javascript Mouseover Help

2004-03-18 Thread Marek Kilimajer
Jake McHenry wrote: Hi everyone, How can I get around my problem? I have a couple pages that I would like to have buttons where the button and background changes when the javascript mouseover event happens. My code works fine if the page is .html, but when I try it as php, the mouseovers no

Re: [PHP] numeric to day name in various languaes

2004-03-18 Thread Marek Kilimajer
Diana Castillo wrote: Is there anything built into php that would do something like this , but in all of the possible languages? What do you want to do? Do you want to assign $restriction_day a list of weekday in ALL 6000+ languages? :-) Why don't you keep $restriction_day numeric and display

Re: [PHP] current url function

2004-03-16 Thread Marek Kilimajer
Luis Mirabal wrote: i checked http://sk2.php.net/manual/en/features.http-auth.php, but it doesnt shows how to see if i passed user:pass in the url. i try http://user:[EMAIL PROTECTED]/ and dumped globals, and there is nothing... any ideas? variables $_SERVER['PHP_AUTH_USER'] and

Re: [PHP] Presence of a program (PHP)

2004-03-16 Thread Marek Kilimajer
Brent Clark wrote: Hi there I have to make use of embedded pdf files in my page (management decision, please dont argue with me on this one, not my choice). I there a function or somthing to detect the presence of adobe reader to make sure the client has it installed, before continuing with

Re: [PHP] concatenating 2 resultsets

2004-03-15 Thread Marek Kilimajer
Angelo Zanetti wrote: Hi all, is it possible to concatenate two resultsets, to form a big resultset. What database are you using? both resultsets will return the same columns. eg query 1 returns NAME| ADDRESS| EMAIL query 2 returns NAME| ADDRESS| EMAIL but they have different data however

Re: [PHP] Printing landscape

2004-03-15 Thread Marek Kilimajer
Lou Apolonia wrote: Is there a function/parameter that tells the printer to print in landscape? I believe I've searched through the Printer Functions and haven't encountered such a thing. Any help is appreciated. L Do you mean how is the output printed on the client machine? Then use css:

Re: [PHP] current url function

2004-03-15 Thread Marek Kilimajer
Luis Mirabal wrote: hey! i am working in an open source development, and have done a function that gives me the current url, but i need it to work always, everywhere, in every server with all browsers, could you tell me if you think it will or if you have any suggestions? here is the code: /*

Re: [PHP] Get nice variables from POST

2004-03-11 Thread Marek Kilimajer
Mike Mapsnac wrote: I have about 10 fields in the form. And I get the fields through POST: //Get Variable from the form $username = $_POST['username']; $password = $_POST['password']; $password2 = $_POST['password2']; $email = $_POST['email']; $email2 = $_POST['email2']; $nickname =

Re: [PHP] Very, very wiered problem - Part 2

2004-03-09 Thread Marek Kilimajer
') in /home/vhosts/dte/ticct/object/renderer.php on line 21 But the file complete_url is in it's place. Any ideas ? Warm Regards, Mário Gamito -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 11:34 PM To: Mário Gamito Cc: [EMAIL PROTECTED] Subject

Re: [PHP] Very, very wiered problem - Part 2

2004-03-09 Thread Marek Kilimajer
Mário Gamito wrote: Hi, Is /home/vhosts/dte/ticct/include/complete_url.php readable for the apache process? Sure :-) Warm Regards, Mário Gamito What is the request uri? Remember that include/require path is based on the file requested by the browser, not on the path of the including file.

Re: [PHP] SQLite Support is library call?

2004-03-09 Thread Marek Kilimajer
DAvid Jackson wrote: Howdy -- SQLite supported by a direct call the sqlite library? As apposed to calling the executable? Could I use ini_set(include_path=) to tall PHP where the SQLite lib is located? TIA, David I have never worked with SQLite but I bet you cannot. 1. the library is linked at

Re: [PHP] writing meta information into png

2004-03-08 Thread Marek Kilimajer
http://www.phpclasses.org/browse/package/1042.html, but I don't know if the class supports pngs. p80 wrote: is there a class or a function that makes it possible to write meta information into a png or jpeg image? any suggestion? thanx in advance -- PHP General Mailing List

Re: [PHP] Very, very wiered problem

2004-03-08 Thread Marek Kilimajer
Mário Gamito wrote: Hi, I have this site at http://www.dte.ua.pt/ticct I don't know why, but it has a very strange behaviour. If you visit it and make a few reloads or browse through the site you'll see that *randomly* it shows only a blank page or an error saying it cannot find file

Re: [PHP] Mail fifth parameter

2004-03-06 Thread Marek Kilimajer
Enrico Comini wrote: I have to send a email to a server where is very important the Return-Path to match the identity. If I use mail([EMAIL PROTECTED], object, $message,From: [EMAIL PROTECTED]. Reply-To:[EMAIL PROTECTED] .Return-Path: [EMAIL PROTECTED]); I see in the received message that

Re: [PHP] about image

2004-03-04 Thread Marek Kilimajer
Did you restart your webserver after changing its configuration? Kenneth wrote: dear all, additional to the previous post, I was told that for later version of php, there is already GD with it, and what should i do is just uncomment the php_gd2.dll line...i've tried this also, but it still

Re: [PHP] about image

2004-03-04 Thread Marek Kilimajer
BTW there is no image() function, but there are plenty of functions that start with image, try one of those, e.g. $im = imagecreate(100, 100); Kenneth wrote: dear all, additional to the previous post, I was told that for later version of php, there is already GD with it, and what should i do is

Re: [PHP] php session ID attached to URL

2004-03-04 Thread Marek Kilimajer
matthew oatham wrote: Hi, I have a quick question about PHP session. In my website I have included the command session_start(); at the top of every page. Firstly is this correct? Yes, this makes sure you don't lose the session somewhere. Secondly when I visit the website the first link I click

Re: [PHP] my checkbox array striped ?

2004-03-03 Thread Marek Kilimajer
adwinwijaya wrote: Hi all, I have a script like this: in html form name=form action=process.php method=post input name=type[] type=checkbox id=type[] value=1 checked input name=type[] type=checkbox id=type[] value=2 input name=type[] type=checkbox id=type[] value=3

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Marek Kilimajer
serialize(), unserialize(), watch out for escaped quotes, you propably need to stripslashes() before unserialize(), then addslashes on each variable. Charlie Fiskeaux II wrote: I'm creating a form with 170 fields, and I'd like to create an intermediary page so the user can review their info

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Marek Kilimajer
Let's not make it complicated: confirmation.php: input type=hidden name=post value=?php echo htmlspecialchars(serialize($_POST)); ? email.php: $_POST = unserialize(stripslashes($_POST['post'])); Daniel Clark wrote: You could loop throught the $_POST[] data and create 170 hidden fields with

Re: [PHP] Obtaining the image size with gd library

2004-03-02 Thread Marek Kilimajer
Todd Cary wrote: I have created a barcode with the gd library and I wish to use it directly with PDFLib. If I write the image to file and then read it in, all works well. However, PDFLib has a Virtual File System. To use it, I need the size of the image in bytes (the file size). Is there a

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Marek Kilimajer
Chris Shiflett wrote: --- Marek Kilimajer [EMAIL PROTECTED] wrote: Let's not make it complicated: confirmation.php: input type=hidden name=post value=?php echo htmlspecialchars(serialize($_POST)); ? email.php: $_POST = unserialize(stripslashes($_POST['post'])); I think the other person's

Re: [PHP] Math weirdness with doubles...

2004-02-27 Thread Marek Kilimajer
jon roig wrote: Ok... It's Friday and maybe my brain is dead, but I'm having a weird problem with some basic math. Here's a little snippet of the code I'm working with: --- echo pCurrent:$currentAmount:.gettype($currentAmount). - Paid:$paidAmount:.gettype($paidAmount)./p;

Re: [PHP] passthru and GET parameters

2004-02-23 Thread Marek Kilimajer
put quotes around: passthru(htmldoc -t html --quiet --jpeg --webpage --footer --bottom 0.2cm --left 1.78cm --right 1cm --top 0.2cm '' $options '$filename'); Guillouet Nicolas wrote: Hi all, I am trying to use htmldoc with passthru function : passthru(htmldoc -t html --quiet --jpeg --webpage

Re: [PHP] Detecting Binaries

2004-02-23 Thread Marek Kilimajer
Generally, binaries have \0 in them, but it is not necessery. Axel IS Main wrote: Guys, this isn't THAT stupid of a question is it? From my perspective, the way PHP seems to see it is that I should already know what kind of file I'm looking at. In most cases that's not an unreasonable

Re: [PHP] delete a function

2004-02-22 Thread Marek Kilimajer
Sztank Demeter wrote: Hello! Is there any way to delete (unset) a function? I want to write some function with one constantyl defined name, then call a function_manager function, that will gice this function an unique name, than delete the original function, so I can start the process from the

Re: [PHP] Local define?

2004-02-22 Thread Marek Kilimajer
1. Don't hijack threads. Always start with new message if you want to ask a question, do not reply to an existing message. 2. Do some research before posting, you already wrote almost the whole example, so run it an see for yourself. Robin 'Sparky' Kopetzky wrote: Greetings!! If you define a

Re: [PHP] Safe Mode

2004-02-21 Thread Marek Kilimajer
Lucas Gonze wrote: On Saturday, Feb 21, 2004, at 20:17 America/New_York, [EMAIL PROTECTED] wrote: Lucas Gonze wrote: On Saturday, Feb 21, 2004, at 09:18 America/New_York, [EMAIL PROTECTED] wrote: Is it possible to set Apache in such a way that everyting is run under safe-mode, except for a

Re: [PHP] PROBLEM: Explorer trying to save my *.php files...

2004-02-20 Thread Marek Kilimajer
What installation instructions did you follow? wrote: Now, my problem is next: When I tryin' to view my phpinfo.php file, Internet Explorer is invite me to save it to disk Not To Open Why? I have 11 files in my PHP directory: LICENSE MSVCRT.DLL php4ts.dll php4isapi.dll

Re: [PHP] display a hiddenfield

2004-02-20 Thread Marek Kilimajer
Dominique ANOKRE wrote: I use a simple form like this : print(form method=\post\ action=\image.php\\n); print(input type=\hidden\ name=\hiddenField\\n); This will result in input type=hidden name=hiddenField That is a hidden field without a value. This will get to the browser.

Re: [PHP] checking users have the latest version of a file

2004-02-19 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I dont understand what you are doing with the md5, and i assume YOU will know which file is the latest version. this is what i have to try and find out to prevent that. How could i check for date modified on an uploaded file ? Not possible. Uploaded files have

Re: [PHP] PHP PDFs...

2004-02-19 Thread Marek Kilimajer
Russell P Jones wrote: Is there any way to deal with PDFS using PHP and not installing PHPlib? I simply need to pull the first page of a PDF document and print it out using PHP. (Like a PDF preview of sorts)... Any ideas? Russ Jones Do you want to print the pdf on the server? PHPlib would not

Re: [PHP] include a file

2004-02-16 Thread Marek Kilimajer
Angelo Zanetti wrote: Hi, is it possible to include a file from when a select's onChange is called ie: select name=prospects onChange=include(editBottom.inc); if its possible what would be the best way to do this?? thanx It is, but you have to reload the page and pass the filename as

Re: [PHP] problems with spam

2004-02-16 Thread Marek Kilimajer
mayo wrote: Has anybody else been getting spammed with penis and breast enlargeners to their listserv email? I use [EMAIL PROTECTED] solely for listservs and in the past week I've started getting 5-10 spams a day. Gil Midonnet Set up a filter that will delete all emails not containing [PHP],

Re: [PHP] empty file's content?

2004-02-16 Thread Marek Kilimajer
Mike Mapsnac wrote: How can I empty a file's content through php defined functions? Thanks _ Check out the great features of the new MSN 9 Dial-up, with the MSN Dial-up Accelerator.

Re: [PHP] An HTML alternative to submit button to look like anchor??

2004-02-16 Thread Marek Kilimajer
Scott Fletcher wrote: Hi! I'm wondering if there is such a thing as an alternative to the HTML submit button that would instead look like an anchor and yet act like a submit with POST action. Just wondering... Scott F. Instead of javascript and image magic, I would style the button to look

Re: [PHP] An HTML alternative to submit button to look like anchor??

2004-02-16 Thread Marek Kilimajer
Scott Fletcher wrote: Hi! I'm wondering if there is such a thing as an alternative to the HTML submit button that would instead look like an anchor and yet act like a submit with POST action. Just wondering... Scott F. Instead of javascript and image magic, I would style the button to look

Re: [PHP] How many days between two dates

2004-02-16 Thread Marek Kilimajer
Shaun wrote: Hi, how can I check how many days are between two given dates? Thanks for your help There are many ways, it would help if you tell us what form are the dates in - timestamp, formated string, sql date column ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Opening a popup window?

2004-02-16 Thread Marek Kilimajer
Shaun wrote: Hi, I have a form on a page. If certain options are selected on that page I need a popup window with a select option on there to appear. How can I make this happen with PHP, or do I need to use some JavaScript? Thanks for your help javascript -- PHP General Mailing List

Re: [PHP] How many days between two dates

2004-02-16 Thread Marek Kilimajer
Shaun wrote: Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shaun wrote: Hi, how can I check how many days are between two given dates? Thanks for your help There are many ways, it would help if you tell us what form are the dates in - timestamp, formated string, sql

Re: [PHP] phps and iis

2004-02-15 Thread Marek Kilimajer
Anders Gjermshus wrote: Hi. Is it possible to get IIS 6 to show php sources. ( phps files ) And how do I do that, I have not found anything about it on php.net or www.google.com http://www.google.com/ Regards anders Is it possible to set a custom 404 handler in IIS? Than you can set it

Re: [PHP] include result from script in midle of other script

2004-02-14 Thread Marek Kilimajer
Boneripper wrote: hi, im trying to do this: ... BR ? if ($_SESSION['valores_relativos']) echo 'img src=./5_grafico_total.php'; else include (./5_grafico_total.php);? /FONT ... and it works perfectly, BUT if i wanna send vars with GET like: ... BR ? if ($_SESSION['valores_relativos']) echo 'img

Re: [PHP] Hard links

2004-02-13 Thread Marek Kilimajer
BAO RuiXian wrote: Ryan A wrote: [snip...] the source and target files are on the same filesystem. My (simple) question is: What is hard links? never really heard of it and googles no help either. Am I missing something? A link is called hard link when its system-file-identifier (SFID) is

<    3   4   5   6   7   8   9   10   11   12   >