Re: [PHP] mysqli - mysql

2004-10-06 Thread Marek Kilimajer
http://bugs.php.net/bug.php?id=29860 Whitehawk Stormchaser wrote: Hi! I have a trouble with building MySQL and MySQLi support together with PHP... Basically my config says: ../configure --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config (and other switches) but I get this:

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Marek Kilimajer
Angelo Zanetti wrote: Here is the OT part. how do I reference the checkboxes in javascript if the chkmodels[] is used? I have tried many things like: myCheckboxArray = document.forms[0].elements[chkmodels[]]; The above should work. Is it really the first form on the page? -- PHP General Mailing

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Marek Kilimajer
] document.forms['formName'] thank again. Angelo Marek Kilimajer [EMAIL PROTECTED] 10/5/2004 1:52:02 PM Angelo Zanetti wrote: Here is the OT part. how do I reference the checkboxes in javascript if the chkmodels[] is used? I have tried many things like: myCheckboxArray = document.forms[0].elements[chkmodels

Re: [PHP] Can anyone help me with Attachments?

2004-10-05 Thread Marek Kilimajer
PHP Junkie wrote: Ave, I didn't find any php warnings... Instead there was a whole bunch of coding much of which seemed like junk. I ran a search but no php warnings anywhere.. When I open the pdf in a text editor. Send a text file as an attachement, it will be easier to spot the error. You can

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread Marek Kilimajer
PHP Junkie wrote: Ave, On a hunch.. I uploaded my original php script AND the php mime class to a normal linux server with Apache web server... And all the scripts are running fine! The PDF attachments go through fine. So I finally found out.. It's a MAC issue! Using my scripts on the MAC server

Re: [PHP] session timeout

2004-10-04 Thread Marek Kilimajer
Philip Thompson wrote: Hi all. I have users log into my site to perform certain actions. However, I want to create a timed session so that it automatically logs them out after a certain amount of time. I am using `session_set_cookie_params()` to create the amount of available time that the user

Re: [PHP] objects - is that possible at runtime in php4 or php5 ?

2004-10-04 Thread Marek Kilimajer
Alawi Albaity wrote: I want to create and defined variables of an object in runtime , is that possible ? I can do that with arrays but I want the access it as variable from obbject it self and not like member of an array are defined on object before I load it ! What about trying it before asking?

Re: [PHP] Session.gc_maxlifetime?

2004-10-04 Thread Marek Kilimajer
Suhas wrote: Hello, I just want to make sure that I understand this concept. When i read thr' docs, session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up and default value is 1440. My guess is : A. 1440 seconds from last visit to the page

Re: [PHP] Can anyone help me with Attachments?

2004-10-04 Thread Marek Kilimajer
PHP Junkie wrote: Ave, I'm trying to send Attachments via a mail script... The only problem is, my attached files go corrupted or damaged, and I don't understand why! Can anyone help me? I've already made 2 posts earlier with my code and all and no one responded. Really need some help here. View

Re: [PHP] Including function libraries

2004-10-03 Thread Marek Kilimajer
Jasper Howard wrote: it seems possible that this is the problem, you called it, checkLoggedIn() in your script then tried to call, checkloggedin(). Notice the caps aren't there when you tried to call it. Case does not matter for functions. Only for variable names. -- PHP General Mailing List

Re: [PHP] Retrieving large results from a database ends in memory error.

2004-10-03 Thread Marek Kilimajer
Use mysql_unbuffered_query() RaTT wrote: Hi Guys I am trying to retrieve over 5000 rows from a mysql database, i have to use a SELECT * query as i am required to use all the fields for display. Everytime i try to run the code below i get a Allowed memory size of 10485760 bytes exhausted (tried

Re: [PHP] How to install php5 on Fedora Core2

2004-10-03 Thread Marek Kilimajer
Teng Wang wrote: I have some difficulties when installing php5.0.2 on FC2 I used the default settings: ./configure --with-apxs2=/usr/sbin/apxs build build install The installation is complete but when I test phpinfo() in a .php file from browser, the browser says Can't find the server Can't find

Re: [PHP] How to install php5 on Fedora Core2

2004-10-03 Thread Marek Kilimajer
Teng Wang wrote: Finally I succeeded on the installation. Just manually add all --with-EXTENSIONS and remove all unvailable ones. The procedure is too completed. I hope there should be some scripts which automatically check the availability of each extension and generate the configuration file.

Re: [PHP] Why my browser always chooses UTF-8 charset?

2004-10-03 Thread Marek Kilimajer
Teng Wang wrote: Although I have included charset (GB2312) information in my html/php files. meta http-equiv=Content-Type content=text/html; charset=gb2312 And my browser has Auto-select settings. How to make the browser select charset correctly, W3C: Conforming user agents must observe the

Re: [PHP] Detecting Mysql server is running

2004-10-02 Thread Marek Kilimajer
barsalou wrote: I know I can see if php has the ability to talk with the Mysql server, but is there a way to determine if the Mysql server is running. In some cases, I wouldn't have passwords, so a mysql_connect wouldn't work. I'm sure, at any given time, there is a mysql server running somewhere

Re: [PHP] How to load another php page?

2004-10-02 Thread Marek Kilimajer
Arnold wrote: This (header() function) works only if this is the first output sent to browser so later in the script this doesnt work anymore, i've tried that. After that you get error messages like: Warning: Cannot modify header information - headers already sent by (output started at

Re: [PHP] How to load another php page?

2004-10-02 Thread Marek Kilimajer
Arnold wrote: Ok, i can live with it, include works but this doesnt replace the whole running script, only the rest of the script (what is still coming), so if a few things have been written in a.php, when include('b.php') is executed, this b.php does not replace all the (allready written) output

Re: [PHP] list of Months

2004-10-01 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi, to create a list of all months in drop-down menu I use this code: ?php $month_names = array(1='Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); ? select name=QuoteMonth option value=/option ?php for($i=1; $i=12; $i++) { if(date('m')

Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Olaf van der Spek wrote: Hi, What is the PHP policy regaring crashes and fatal errors? Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? No -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Christophe Chisogne wrote: Olaf van der Spek wrote: Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? Oh yes, at least with php4 as an apache module :( On a Debian Woody server, php4 (4.1.2) sometimes crashes at logrotate time (with apache doing gracefull restart) with the

Re: [PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Manuel Lemos wrote: Hello, On 10/01/2004 11:44 AM, Olaf Van Der Spek wrote: But this does mean the policy does allow scripts to crash the engine/server. The way I see it, calling exit() is not a crash. If the code was Indeed, I should've added or fatal error. But from the script's point of

Re: [PHP] set multiple variables

2004-10-01 Thread Marek Kilimajer
Joe Szilagyi wrote: Hi, I have this working: if ($REMOTE_ADDR == 212.3.54.65) { header(Location: http://www.google.com/search?q=huzzah;); Redirect browser exit; } But I want to specify multiple IPs. What's the best recommended way for doing that? There was one request for

Re: [PHP] refresh page automaticly on PHP

2004-09-30 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] how to make my page refresh automaticly? Can i use PHP function? what is it? [/snip] You cannot do it with PHP, you use a meta refresh tag (http://www.w3.org) Or header refresh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Test - Is the list working?

2004-09-30 Thread Marek Kilimajer
Jay Blanchard wrote: Odd stuff this morning. I think it's overloaded with unsubscribe requests. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread Marek Kilimajer
GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread Marek Kilimajer
GH wrote: On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread Marek Kilimajer
:27:52 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: GH wrote: On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have

Re: [PHP] Stored procedures in Mysql

2004-09-30 Thread Marek Kilimajer
Ed Lazor wrote: -Original Message- Not Really. Are you sure? http://dev.mysql.com/doc/mysql/en/Stored_Procedures.html snip Stored procedures and functions are a new feature in MySQL version 5.0. /snip That means you can only experiment with them, not realy use them in your projects. --

Re: [PHP] Escaping Regex Chars with addcslashes()

2004-09-29 Thread Marek Kilimajer
Nick Wilson wrote: Hi all, If i want to find a url on a page, there are some chars i need to escape right? like '/' and '?' do i also need to escape '.'? Are there any other things that might pop up in a url that I can escape with addcslashes()? Much thanks Don't use posix regexp, but use

Re: [PHP] splitting string into array

2004-09-29 Thread Marek Kilimajer
blackwater dev wrote: How can I take a string and create an array? Example, A12B05C45D34 I need to split this into chunks of three A12,B05,C45..etc? Thanks! $chunks = preg_split('/(.{3})/', $str, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); -- PHP General Mailing List

Re: [PHP] Input to PHP from Java

2004-09-29 Thread Marek Kilimajer
Rajesh Batchu wrote: Hi, I have a page with SSL enables as below. https://email.website.com/usrfolder/one.php For this page, my customer is posting some XML data using a java output stream as below. ( pseudo code) URL url = new URL(_url); _httpsConnection=

Re: [PHP] safe mode?

2004-09-29 Thread Marek Kilimajer
blackwater dev wrote: Hello all... I finally have an upload script partly working but am not running into this problem. I have this code which executes when the user visits the image upload page: snip if (!file_exists(../images/property_$id)){ mkdir(../images/property_$id, 0700);} $upload_dir =

Re: [PHP] safe mode?

2004-09-29 Thread Marek Kilimajer
, 29 Sep 2004 21:48:05 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: blackwater dev wrote: Hello all... I finally have an upload script partly working but am not running into this problem. I have this code which executes when the user visits the image upload page: snip if (!file_exists(../images

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Marek Kilimajer
% operator: http://www.php.net/operators Nick Wilson wrote: hi everyone, I have a simplified bit of code below: ?php foreach($someArray as $someVal) { //do some stuff } ? What i'd like to do is have a count inside that loop that will trigger some action every 20 iterations of the

Re: [PHP] poor image quality in php

2004-09-27 Thread Marek Kilimajer
Mike wrote: hi! I have a problem with the imagejpeg() function - or related. I must specify that I'm a newbie with image handling with php and that a piece of advice would really help me right now. The deal is that I want to create a (smaller) resized copy of a certain image using this code:

Re: [PHP] OT - HTML Terminal ?

2004-09-26 Thread Marek Kilimajer
Dave Restall - System Administrator,,, wrote: Hi, this is severely off topic so please feel free to ignore it :-) I have an intranet application that currently is accessed using a browser, no problems there, however I have been asked if I can get rid of the browser so that the user's are not

Re: [PHP] Conceptual ?: using 'multi-purpose' form for validation

2004-09-26 Thread Marek Kilimajer
Whil Hentzen wrote: I can get a single form to call itself again if there's nothing fancy going on. This code will prompt the user for their mail if it doesn't already exist, and if the email does exist, provides some data out of database. ?php $email = (isset($_POST['email']) ?

Re: [PHP] What's going on?

2004-09-26 Thread Marek Kilimajer
Phpu wrote: For the last 2 days i haven't received emails. What's going on with this mailing list? It might have something to do with the fact your clock is 2 days behind. Have you been time travelling? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] GLOBAL reserved word

2004-09-26 Thread Marek Kilimajer
Pahlevanzadeh Mohsen wrote: Dears,We can introduce a external variable to our function with GLOBAL reserved word.same following : ? $n=3 function nn() { global $n; echo $n; }//end of func ? But i need to introduce a array.Name of my array is month. I typed global $month;.But it didn't

Re: [PHP] php security on shared hosts

2004-09-26 Thread Marek Kilimajer
Tim Traver wrote: Chris, I believe that is the reason that the PHP group came up with the open_basedir directive. The open_basedir prevents you from looking into anything higher than a particular directory tree using PHP. So, a combination of safe_mode and open_basedir should prevent your

Re: [PHP] Best way to save preferences?

2004-09-26 Thread Marek Kilimajer
Pahlevanzadeh Mohsen wrote: You should use XML files,But XML files will be lock when you want to multiuser read it. It's not necessery to lock files for reading. Also arrays is having overhead for your server.Best way is using databses. Yours,Mohsen. --- Victor Spng Arthursson [EMAIL PROTECTED]

Re: [PHP] Version Controlling

2004-09-26 Thread Marek Kilimajer
Stephen Craton wrote: This is slightly off topic, but I feel it's a little something that's worthy of discussion here. I've been interested in running CVS for a while now, but being on a Windows machine is holding me back somewhat, and I'm not entirely sure CVS is even something I need. Basically,

Re: [PHP] Best way to save preferences?

2004-09-26 Thread Marek Kilimajer
Pahlevanzadeh Mohsen wrote: Dear,I mean that you can't read XML file in multiuser mode. Can you elaborate? And what about other files? Are they different? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: hi again all, I cant find any functions that might help me test the response of a proxy server b4 attempting to use it. Do i need to use exec() with ping? Anyone know how to do that? (if that's the case...) mucho grassy arse.. What kind of response? If the server is alive, if

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared I cant find any functions that might help me test the response of a proxy server b4 attempting to use it. Do i need to use exec() with ping? Anyone know how to do that? (if that's the case...) What kind of response? If the server is alive

Re: [PHP] PHP Counter?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: Hi all, I have a script that at the present just outputs '$count .'br /'' after each iteration of a foreach() loop. I have set implicit_flush so that this works. That's clearly monkey poo though eh? :-) Do I have to get into unkown waters and try and make PHP talk to JS to

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared OPTIONS * HTTP/1.0 More at http://www.freesoft.org/CIE/RFC/2068/63.htm oookay... i think i understand the page, but how would i imlement that $fp = fsockopen (proxy.server.net, 8080, $errno, $errstr, 30); if (!$fp) { echo $errstr

Re: [PHP] php upload script problems

2004-09-25 Thread Marek Kilimajer
AMC wrote: Hi, I have the following php page. The page just opens up blank and I assume I made an error I cannot see. I'm new to php and any help would be greatly appreciated: What is your register_globals and display_errors setting? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Parse Error... can not find cause of error....

2004-09-25 Thread Marek Kilimajer
GH wrote: Greetings... I am getting a parse error (line 45) and I do not know what is causing it... since I have the same code with minor changes nyc_ renamed to fed_ and it works... can someone please assit. code is also available at http://www.phpaste.com/536 File:

Re: [PHP] Problems installing smarty on a shared host

2004-09-25 Thread Marek Kilimajer
Pablo Gosse wrote: Hi folks. I've recently moved my site to a shared host, and this is the first time I've had to set up my site in a really restrictive environment, and I'm running into problems getting smarty installed. Using the basic example set up from the Smarty docs, when I run the file I

Re: [PHP] Problems installing smarty on a shared host

2004-09-25 Thread Marek Kilimajer
Pablo Gosse wrote: I tried that and got the same error. I'm trying to place the smarty directories outside my webroot to minimize security risks, however given my experiences thus far, I don't really see that being possible. It should not matter, unless open_basedir is in effect, but that would

Re: [PHP] ftp_put Problems

2004-09-25 Thread Marek Kilimajer
Julian wrote: Hello, I need to use FTP to upload a local file to a server. The uploads must be done through FTP and not HTTP. Unfortunately, the example in the manual is not working for me. If someone has any suggestions I would really appreciate it. Not much information. There is not error

Re: [PHP] Problems installing smarty on a shared host

2004-09-25 Thread Marek Kilimajer
Pablo Gosse wrote: [snip] It should not matter, unless open_basedir is in effect, but that would be another error. I would check if the directories are right, you can start by using relative path. [/snip] Just the relative path from smarty.php, ../../../home/pablogosse/smarty/Smarty.class.php

Re: [PHP] ftp_put Problems

2004-09-25 Thread Marek Kilimajer
Julian wrote: i am trying to get a file from my local c drive to my server using something other than a form. Hmm, you can run an ftp server on your local machine and use php script on the server to retrieve the files. http server will work just as well. Is this what you want? thanks, julian

Re: [PHP] ftp_put Problems

2004-09-25 Thread Marek Kilimajer
Julian wrote: well, i suspect i am at a dead end. here is the layout of things. we want to put up an internet kiosk at certain thoroughbred auctions to allow people to send ecards as well as contact associates. we have a web cam on the kiosk and a partner came up with the idea of letting them

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Marek Kilimajer
Divick Kishore wrote: Hi, I am a newbie to php so pls be gentle. I am having problems while downloading a file via this script. I am sending the following headers and then a call to readfile function in the swcript. This leads to opening of a download popup but the file name being shown is the

Re: [PHP] HTML in Download data?

2004-09-24 Thread Marek Kilimajer
Thomas Hochstetter wrote: Hi there, I am (again) trying to download a file from off the server and force it to use the download dialog box. I have been trying pclzip.lib for compression and used my own headers (as depicted below). This version did zip nicely and the files were intact in the tmp

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Marek Kilimajer
Divick Kishore wrote: Indeed you figured it right. I do have a new line at the top of the ?php tag. Removing that has solved the problem partially at least the newline is not being appended. But the problem of file name is still there. The download popup asks for the file name as

Re: [PHP] HTML in Download data?

2004-09-24 Thread Marek Kilimajer
Thomas Hochstetter wrote: Should I redirect after the reading of the file? This somehow does not make much sense ... I first need to let the user decide to download the file or not. No, you should output a html page containing: a href=downloadzip.php?file=somefile.pdfdownload/a Then, in

Re: [PHP] Using '

2004-09-23 Thread Marek Kilimajer
John Taylor-Johnston wrote: addslashes() It iscapes also double quotes, which might be not what you want. Juan Pablo Herrera wrote: Escape it: \' It must be somewhere in the manual, I think. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Lock or critical section

2004-09-23 Thread Marek Kilimajer
Jean-Yves wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Curt Zirzow) wrote: http://php.net/semma Hi Curst, It doesn't seem that the link is correct!? Thanks anyway! He meant semaphores: http://php.net/sem However, this extension is not usualy enabled on hosts and does not work on

Re: [PHP] FDF PDF and PHP

2004-09-23 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] Can fpdf create a new pdf based on a another pdf form and importing fdf data into it? [/snip] I am sure, if properly programmed, it could. no, it cannot. http://fpdf.org/en/FAQ.php#17 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] [php5] configure --with-xsl getting error

2004-09-23 Thread Marek Kilimajer
Gerrit P. Haase wrote: Hello all, configure --with-xsl: Getting this error: /php/php-5.0.1/ext/xsl/xsltprocessor.c:275: undefined reference to `_dom_object_get_node' ext/xsl/.libs/xsltprocessor.o(.text+0x78a):/php/php-5.0.1/ext/xsl/xsltprocessor.c:187: undefined reference to

Re: [PHP] Open a PDF in the mode https://....

2004-09-23 Thread Marek Kilimajer
Andre wrote: Hello When I try to open a PDF file in the https://localhost mode it opens a Save File window. When I am on the http://localhost mode the problem does not exist. How can I solve this? This is a browser issue. What browser are you using, what headers are you sendng, are you using

Re: [PHP] Open a PDF in the mode https://....

2004-09-23 Thread Marek Kilimajer
Andre wrote: Yes I am using sessions? Use session_cache_limiter('private_no_expire'); IE needs it. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 23 de Setembro de 2004 18:28 To: Andre Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Open a PDF in the mode

Re: [PHP] Any idea how this is done?

2004-09-23 Thread Marek Kilimajer
Mag wrote: Hi, I was just looking at the demo of Comus Thumbs at http://nibbi.net/scripts/comus_thumbs.php and I see he has an option there to lighted/darken/sharpen/resize/thumb images dynamically on the page (the image gets lightened etc without reloading the page) any idea how? its listed

Re: [PHP] Any idea how this is done?

2004-09-23 Thread Marek Kilimajer
Marek Kilimajer wrote: He also has an option to thumb an image, where you click on the image and a rectangle appears, then when you accept it, it cuts the image exactly according to the rectangleI am not too familier with imagemagik..is this easy to do? DHTML should be able to do this. I just

Re: [PHP] alternative to mysql_field_name()

2004-09-22 Thread Marek Kilimajer
Luke wrote: hi there, i am currently using the following code to loop through the results of a sql query and extract the field names ($export contains the query results from the database). the script goes on to place the results in an excel file. for ($i = 0; $i $fields; $i++) { $header .=

Re: [PHP] Re: Does PHP need another mailing list???

2004-09-22 Thread Marek Kilimajer
Gerard Samuel wrote: Niklas Lampén wrote: It's wrong to think people here don't know how to code object oriented. You can do that with PHP4 too - and you should in many cases. In some time PHP4 will be old school and PHP5 will be the general one. In my oppinion, it's good for not-OO ppl to see

Re: [PHP] Appended [PHP] Solved [PHP] ASP guy needs help.

2004-09-22 Thread Marek Kilimajer
LW Ellis wrote: LW Ellis wrote: Never mind... As usual, about the time you ask for help, the brain gets unstuck and you find the solution. You should post back with a solution (append SOLVED to your subject) so that it becomes part of the thread (and archived). This way, next time someone

Re: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: here is the whole query: $query = INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix', firstname='$firstname', lastname='$lastname', job_title='$jobtitle', company_name='$company', no_of_employees='$employees',address_1='$address1',address_2='$address2',

Re: [PHP] implode errors if array empty

2004-09-22 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: resolved with if(empty()) - apologies. isset() is more apropriate as $enterprise is not defined at all, empty() will issue a notice. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] header(Location: ) problem

2004-09-22 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: hi, is there a way of setting a target property for header(Location: thanks.htm)? my form is in an iframe so when i hit submit, my php page redirects the user to thanks.htm but this is rendered within the iframe not in a fresh page. No, you have to use target in the form -

Re: [PHP] Using '

2004-09-22 Thread Marek Kilimajer
Juan Pablo Herrera wrote: Hi! i have: $html = ' html MY HTML /html '; Inside of my html i used ', this produced a parse error, how can i solved it?. Escape it: \' It must be somewhere in the manual, I think. -- PHP General Mailing List

Re: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Marek Kilimajer
Pablo Gosse wrote: Jay Blanchard wrote: [snip] Does anyone have any idea why I might be getting these errors? The code above, to me at least, doesn't look like it should be throwing parse errors. The script which is called by my crontab to start this process executes every minute, so I find it

Re: [PHP] menu mouseover using php and javascript

2004-09-22 Thread Marek Kilimajer
web_singer wrote: I am using an array to create a menu and the code to change an image on mouseover. I would also like to change some text on mouseover. While i can do it using a swtich in javascript it requires that I hard code all the different options in. My whole reason for using the php in

Re: [PHP] Cannot write data in session file

2004-09-22 Thread Marek Kilimajer
Bo Deng wrote: I just move the web pages from windows to linux. But the session variable doesn't work. And I found that in the \tmp directoy, it has sess_(MD5) file,but with empty contents,just 0 byte. BTW, I run a linux virtual host under IBM s390. the code works well in windows and other

Re: [PHP] Differences between echoing the output gradually or returning it.

2004-09-22 Thread Marek Kilimajer
Eduard Duran i Rosich wrote: Hi, I just wanted to know what are the main pros and cons between echoing the output some PHP script as it process the data and returning the whole output to echo it at once. I find the second way to be useful when I want to add a header() line without concerning

Re: [PHP] problem with header-dispotition in IE

2004-09-21 Thread Marek Kilimajer
adwinwijaya wrote: The error that I got just IE cannot download download.php from mysite.com .. IE was not able to open this site and bla bla bla. No hint in the error. I think the problem that I faced is with SSL. I try http://www.wazzup.co.nz/tutorials/protect_pdf/index.php and it didnt work on

Re: [PHP] HTML Frames and PHP Sessions

2004-09-21 Thread Marek Kilimajer
Nick Patsaros wrote: Are PHP sessions compatible with frames in HTML? I'm trying to pass a user name through a session and my individual frames aren't receiving the variable. It worked prior to migrating to frames so I don't think it's my PHP that is the problem. Is there a target function

Re: [PHP] transfer coding

2004-09-21 Thread Marek Kilimajer
QT wrote: When I use this html with internet explorer, I have no problem to post data. But when I use following post method, I can not send data. I think I need to do something more for message transfer coding such as use some charecter between same data to let destination server understand. I try

Re: [PHP] Parsing a File

2004-09-21 Thread Marek Kilimajer
Harlequin wrote: Hi all. I've been through the PHP manual and wonder which file option will best suit my needs. I basically want to take a file that the user uploads and parse it into a variable or string so I can insert it into a field in my database. Do I use: File() creates an array

Re: [PHP] Lock or critical section

2004-09-21 Thread Marek Kilimajer
Jean-Yves wrote: Hi, Is there a documented way to create in PHP a critical section: I want a piece of code to not be executed in the same time several times? www.php.net/flock -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: transfer coding

2004-09-21 Thread Marek Kilimajer
M. Sokolewicz wrote: $p = POST /httppp/servlet/ppp HTTP/1.0\r\n; actually, specifying the same name for all 3 just makes PHP overwrite the string each time it notices a new one. It's posted to jsp, not php. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] RE: **[SPAM]** [PHP] file creation date

2004-09-21 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] is it possible, to get the creation date of a file? So even if it's modified, to get the date it was created the first time? [/snip] Reading http://www.php.net/stat I don't think so. Unix filesystems don't store file creation time. And there is no function to

Re: [PHP] unexpected $ error

2004-09-21 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: hi, i get the following error when trying to run this code (see below): Parse error: parse error, unexpected $ in /full path form.php on line 59 // if the submit buttons has been pressed if (isset($_POST['submit])) missing single quote if (isset($_POST['submit'])) // more

Re: [PHP] php parses but no data inserted

2004-09-21 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: hi there, the following code runs but no message is displayed from the if then else statement at the end of the script. also, nothing is written to the database. i have checked the insert statement and the login credentials are correct.does anyone know what might be

Re: [PHP] inserting timestamp into mysql field

2004-09-21 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Subject: inserting timestamp into mysql field hi there, i need to insert a current timestamp into a mysql field when a form is posted. can anyone suggest a simple way of doing this? i would like to set a variable in my php script to add into the insert statement. it needs

Re: [PHP] choose upload folder

2004-09-21 Thread Marek Kilimajer
Joerg P wrote: I have to be more specific: I dont want the file, I want the folder. This happens on the client side, it has nothing to do with php. You could possibly do it with signed java applets or activex scripts. Joerg Greg Donald wrote: On Tue, 21 Sep 2004 23:05:17 +0200, Joerg P [EMAIL

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

2004-09-21 Thread Marek Kilimajer
Ongkiko, Richard M 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

Re: [PHP] problem with header-dispotition in IE

2004-09-20 Thread Marek Kilimajer
adwinwijaya wrote: Hi all ... I have script that looks like : if(file_exists($filename)){ $len = filesize($filename); //header(Content-type: attachment/pdf); header('Content-Type: application/pdf'); //header(Content-Type: application/octet-stream);

Re: [PHP] follow-up readdir behavior I cannot understand

2004-09-20 Thread Marek Kilimajer
Jason FB wrote: PHP General List, Regarding my the previous post -- the script had another bug in it which I felt silly for having posted since it's so obvious at the very top (a misisng = sign). However, I am still having a problem with this script practically copied and pasted from the PHP

Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Marek Kilimajer
Daniel Guerrier wrote: I'm using this code to dynamically retrieve windows media files and send it to the browser. I thought the cache header would prevent the file from being cached. The only problems is the .wmv file still ends up in my IE temp files folder. How can I prevent this from

Re: [PHP] Re: How can I re-code?

2004-09-20 Thread Marek Kilimajer
John Taylor-Johnston wrote: No one? Noone knows the structure of your table. Is the table properly normalized? From the original array it seems you need at least 2 tables to properly hold the information. I had an $array, with a list of authors and an entry number. Below is the code I used.

Re: [PHP] Yet another Apache 2 question

2004-09-20 Thread Marek Kilimajer
Duncan Maitland wrote: I'm currently using a PHP/Apache 2.0 (prefork) combination which seems to be running reasonably well, however I've just become familiar with the potential issues with PHP/Apache 2.0 so I intend to roll back to Apache 1.3 some time soon. I have a question about a

Re: [PHP] Creating Dropdown Menus From Tables

2004-09-20 Thread Marek Kilimajer
Living in the past? Harlequin wrote: Hi all. Hoping this might be relatively easy... I'm wondering if I can create a dropdown menu (optionABCDE/option) by using a select statement and then populating this using PHP...? Yes, it is relatively easy, and it is answered in virtualy every PHP book. I

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Marek Kilimajer
Afan Pasalic wrote: also found this: ... Extensions listed here are (or will be soon) available as external modules. To install one or all of these, use urpmi php-EXTENSION_NAME : mysql pgsql sqlite gd ... then do it: # urpmi php-gd -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Marek Kilimajer
play around with popen() and stream_select() John Wards wrote: Hi, I have a bit of a cold today so I probably would have figured this out for myself eventually but hey ;-) Right I have a script that I need to run around 90 times thru a cron job but passing a different i.d. to it each time. I have

Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Marek Kilimajer
Daniel Guerrier wrote: And how would I do 1. Configure webserver to send the right headers for .wmv files. Depends on your webserver. For apache, place .htaccess file to the media directory with some Header directives, more here or on apache mailing list:

Re: [PHP] External Files (take 2)

2004-09-20 Thread Marek Kilimajer
GH wrote: Hi... Sorry about the last post... did not realize i hit the wrong button Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the connection/login to

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