[PHP] PHP Ad or Image Rotator Script

2011-09-20 Thread Kim Briggs
ments, please CC my email address in the reply. Cheers, Kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] no-cache control

2010-04-06 Thread Kim Emax
st output you do, read more here. http://dk.php.net/manual/en/function.header.php -- Kind regards Kim Emax

Re: [PHP]Zip and text files generated are corrupted

2010-03-27 Thread Kim Madsen
Mike Roberts wrote on 25/03/2010 14:56: remove No :-) Use the proper unsubscribe method rather than spamming the list. -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_FILE array being truncated

2010-03-16 Thread Kim Madsen
g the same form at the same time. True. Instead make the upload with AJAX, so the file starts uploading when the field is changed (onChange()) or out of focus (is there such a function? onUnFocus()? :-)). See gmail attachment for an example. -- Kind regards Kim Emax - masterminds.dk -- PHP Gener

Re: [PHP] Change displayed file name to download

2010-03-14 Thread Kim Madsen
f you preferrer that) You'll need to detect $filetype from $filename to always have the same filename as the original file. /kim Php Developer wrote on 14/03/2010 21:29: Hi, I'm using the following code: $fp = fopen($filename, 'r+'); $content = fread

Re: [PHP] Anyone good with multiple SSL on Apache?

2010-03-08 Thread Kim Madsen
Skip Evans wrote on 08/03/2010 23:21: D'oh! ...and I suppose there is just no way around that, eh? two public IPs pointing to the same server? ;o) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Header function

2010-03-01 Thread Kim Madsen
still be correct? header('Content-Disposition: attachment; filename="PurchaseReq.doc"'); I'm using the same headers for downloads, allthough I use double qoutes for the header function aswell: header("Content-Disposition: attachment; filename=\"artist -

[PHP] Magento & SOAP2

2010-02-25 Thread Kim Madsen
on still is for 1.x only :-/ Documentation http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product#catalog_product.create Any ideas will be welcome :-) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] obj in array?

2010-02-24 Thread Kim Madsen
Kim Madsen wrote on 24/02/2010 14:02: how do I access for instance set_id in $my_array[0]? I tried declaring an instance of $my_array[0] but that fails too: "Fatal error: Cannot use object of type stdClass as array " $my_array[0]->set_id; did the trick -- Kind reg

[PHP] obj in array?

2010-02-24 Thread Kim Madsen
$my_array[0]? I tried declaring an instance of $my_array[0] but that fails too: "Fatal error: Cannot use object of type stdClass as array " -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Kim Madsen
int could be inserted as part of the statement: "price = 250" will do fine, but if price ain't entered "price = " will cause an error, while "price = ''" will not make the sql insert fail. Regarding SQL injection, run all inputs through the func

Re: [PHP] Advice on maintaining public and private files

2010-02-21 Thread Kim Madsen
gards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Advice on maintaining public and private files

2010-02-20 Thread Kim Madsen
data.txt since no one has suggested it then... if you're on an Apache webserver use a .htaccess file in data2 which contains: Deny from all Allow from none That will do the trick and PHP can still fetch the files in data2 and serve it to the user. -- Kind regards Kim Emax - mastermin

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread Kim Madsen
james stojan wrote on 11/02/2010 22:21: $query="INSERT INTO upload_history (v_id,hour,visits,date) VALUES (".$v_id.",".$hour.",".$visits.",'$date1'".");"; The ,'$date1'"." is not correct syntax, change it to ,

Re: [PHP] Magento shopping cart

2010-02-01 Thread Kim Madsen
good example: the "search" button is an image, so this is not translated into danish, that could be a potential design problem, if in thai search it translated to "rapapupapikiwikital" :-) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Upload

2010-01-30 Thread Kim Madsen
ad_tmp_dir? -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DirectoryIterator

2010-01-26 Thread Kim Madsen
once? On Linux with safe mode off you can call system("du -hcs THE_DIR") to get the size of all files, no iterations needed. Number of files could be a find command piped into wc -l, called from system(), like find . -name "*" | wc -l (but that would count dirs aswell)

Re: [PHP] SQL question

2010-01-26 Thread Kim Madsen
) function But Skip, as the others say, use a date class, since you're passing a php var on to the SQL anyway, then you could determine the exact days from start to end of donation. Combine this with to_days and you have your solution -- Kind regards Kim Emax - masterminds.dk -- PHP

Re: [PHP] preg_replace help

2010-01-26 Thread Kim Madsen
that and I can't for the life of me find it now. Just use the function nl2br() If you wanna match "\n", you need to add a backslash before the backslash: "\\n" -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread Kim Madsen
pick out a blue dress for her upcoming wedding anniversary. The class worked out the problem with a OOP solution. Don't forget to throw an exception if another woman shows up in the same dress and color at the wedding! That would make you OOPD crash totally! ;-) -- Kind regards Kim Emax - ma

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Kim Madsen
etc.. Get PHPmailer and make a gmail account that you connect to and mail through. -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POLL: To add the final ?> or not...

2010-01-14 Thread Kim Madsen
) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POLL: To add the final ?> or not...

2010-01-14 Thread Kim Madsen
have been sent, so you can't use different headers in your script. Hmm... you could be right. I guess I just never made that mistake :-) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POLL: To add the final ?> or not...

2010-01-14 Thread Kim Madsen
John Corry wrote on 12/01/2010 17:04: I leave ?> out. I'm pretty careful about my code formatting and whitespace. It's my opinion that if I can eliminate a potential problem by not including an optional closing tag...there's really no reason why I shouldn't. What is the difference between: W

Re: [PHP] POLL: To add the final ?> or not...

2010-01-14 Thread Kim Madsen
yway. I don't see your argument. PHP generates HTML or XML files. When you're aware of the XML tag of course you make sure the XML file generated is valid. Why would you ever add PHP code to a HTML file (other than for documentation, examples etc.)? -- Kind regards Kim Emax - mast

Re: [PHP] strtotime

2010-01-14 Thread Kim Madsen
ee for instance http://php.net/microtime), I've never heard of the other dates you mentioned. My guess is the time, date or GMT is wrong for Johns setup and that's why he get 1969 and not 1970, cause something is seting time in the past -- Kind regards Kim Emax - masterminds.dk --

Re: [PHP] Display just 1 record in a query

2010-01-12 Thread Kim Madsen
g what I wanted. I don't really get the "like just the 2nd record only", but again, from the material we've seen it's hard to give the right advice -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Display just 1 record in a query

2010-01-12 Thread Kim Madsen
t var and show only data if count == 2 '. $row_cur['tid'] .'   '; } } while ($row_cur = mysql_fetch_assoc($cur)); ?> Another thing: drop the do and use this syntax instead, it's more readable: '. $row_cur['tid'

Re: [PHP] PHP uploaded files logs

2010-01-01 Thread Kim Madsen
a zip header, in that case you can't print to the screen, so putting debug info in a php generated logfile is a easy way to move on... -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP uploaded files logs

2010-01-01 Thread Kim Madsen
27;name'] and $_FILES['uploaded_file']['size']) into a logfile, note there's an error variable too. -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Merry Christmas!

2009-12-25 Thread Kim Madsen
Rene Veerman wrote on 25/12/2009 17:04: +1 from Amsterdam :) & a happy, productive & profitable new year to all a ya. Copenhagen sents kind regards too, may you all have some swell days. And C U at Queensday? :o) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing Li

Re: [PHP] Checking for internet connection.

2009-12-23 Thread Kim Madsen
Kim Madsen wrote on 23/12/2009 17:01: Okay, explanation excepted, E-mails can easily be misunderstood :-) May you have a merry Christmas (grab another cup of choco, just in case ;-)) correction: accepted Now _I'M_ gonna get a cup of chocolate :-) -- Kind regards Kim Emax - mastermin

Re: [PHP] Checking for internet connection.

2009-12-23 Thread Kim Madsen
t completely awake yet. Okay, explanation excepted, E-mails can easily be misunderstood :-) May you have a merry Christmas (grab another cup of choco, just in case ;-)) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking for internet connection.

2009-12-23 Thread Kim Madsen
e it all came from. Well, because _you_ don't wanna follow proper netetiquette doesn't mean everyone else should violate those rules, does it? :-) And a merry christmas to you. -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking for internet connection.

2009-12-22 Thread Kim Madsen
xists? -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Highlighting image map on load

2009-12-16 Thread Kim Madsen
at fits your needs. Happy hacking. -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysterious include problem

2009-12-10 Thread Kim Madsen
ith a lot of include files I agree, in small sites this solution gives me an overview of the setup. In this case I have an idea that the RegEx solution could be another problem for Allen, but it's just an idea :-) -- Take Care Kim Emax - master|minds - Vi tænker IT for dig... Konsulentbista

Re: [PHP] mysterious include problem

2009-12-10 Thread Kim Emax
files I agree, in small sites this solution gives me an overview of the setup. In this case I have an idea that the RegEx solution could be another problem for Allen, but it's just an idea :-) -- Take Care Kim Emax - master|minds - Vi tænker IT for dig... Konsulentbistand, programm

Re: [PHP] Browsing PHP documentation from Emacs

2009-12-09 Thread Kim Emax
/ It is released with GNU GPLv3 license and it might be integrated with existing php-mode implementations. Looking forward to hear feedback from you. Interesting stuff, is this against the php.net documentation? And do you believe it would be possible to do the same from Vim? -- Take Care Kim

Re: [PHP] mysterious include problem

2009-12-07 Thread Kim Madsen
ml/user/default.php* on line *89* But if I use "user/default.php?page=default" I get the correct content. It's acting as if page is set, but set to NULL, and then trying to find an include at path "content/.inc" what's going on?? -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] logic operands problem

2009-12-07 Thread Kim Madsen
and time fields instead, maybe by creating a bunch of free slots and then a booked field with a default of "0", changed to "1" when booked) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Compatiabilty issues

2009-12-02 Thread Kim Emax
hat I do when I have issues with Apache, CSS, Ajax, Javascript, Unix etc. -- Take Care Kim Emax - master|minds - Vi tænker IT for dig... Konsulentbistand, programmering, design & hosting af websites. http://www.masterminds.dk - http://www.emax.dk Køb din vin online på http://www.gmvin.dk --

Re: [PHP] Emergency! Performance downloading big files

2009-12-02 Thread Kim Madsen
SUBSTANTIALLY faster way to download and save these files? Keep in mind the client's requirements cannot be changed. Thanks for any suggestions. try readfile() -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mod_rewrite...https index page -> http index page

2009-12-01 Thread Kim Emax
se to what you want here: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html, so maybe it´s not possible? or you do this: RewriteRule ^(.*)$ https://yoursite.com$1 This should catch everything in the query_string and save it in $1, maybe that works? Kind regards Kim

Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Kim Madsen
} else form(); With a 50 field form this is a nice approach for me :-) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exec() problem

2009-11-14 Thread Kim Madsen
ou recieve... -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP: creating combobox in excel sheet?

2009-11-13 Thread Kim Madsen
Jim Lucas wrote on 2009-11-13 17:06: Kim Madsen wrote: Hey I'm working on creating excel sheets from these classes: http://articles.sitepoint.com/article/pear-spreadsheet_excel_writer/3 http://pear.php.net/package/Spreadsheet_Excel_Writer/download/ Does anyone know how to create a comb

[PHP] PHP: creating combobox in excel sheet?

2009-11-13 Thread Kim Madsen
box I mean the / dropdown box in HTML. -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] It's not behaving. Error reporting, that is

2009-11-03 Thread Kim Madsen
Hi Philip Try to post a link to a page, that prints phpinfo() -- Kind regards Kim Emax Philip Thompson wrote on 2009-11-03 17:11: Hi all. This seems like a trivial issue to fix, but I'm having issues. I'm running a script via command line and it's throwing out PHP "not

Re: [PHP] PHP String convention

2009-10-28 Thread Kim Madsen
; \n\t \n\t\t$data \n\t"; or print ' '.$data.' '; I remember benchmark testing it afterwards back then and there was clearly a difference. -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Issues with MySQL connectivity ... on only one machine, and for a while now

2009-10-26 Thread Kim Madsen
, which occured some months ago at an ISP i'm using, but you're writing "all over localhost"? -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to pronounce PHP code over the phone?

2009-10-24 Thread Kim Madsen
y, "Listen up duder. When I say 'arrow-thingy' you make hyphen and a greater-than sign. Capiche?" Problem solved. ;-) That is what was done, but I wanted to know if there was already some agreed-upon language. There is... It's called a Fax ;-) -- Kind regards Kim

[PHP] using mysql_close() = best practice?

2009-10-24 Thread Kim Madsen
dding a end_mysql() or page_end() to all pages and put whatever is needed into that function (mysql_close, mysql_free_result, etc) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions seems to kill db connection

2009-10-24 Thread Kim Madsen
ect.php Thanks, that explained the www-data user -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fedora 11 PHP install problems

2009-10-23 Thread Kim Madsen
gured out what was going on + i LOVE the tab completion in the MySQL commandline tool -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions seems to kill db connection

2009-10-23 Thread Kim Madsen
Kim Madsen wrote on 2009-10-22 17:51: Hi PHPeople I have an odd problem at my new work and wonder if it's some sort of odd setup that is causing this problem when using sessions: Like I said, my new work and odd setup, an include file had a mysql_close() in the bottom Speaki

Re: [PHP] Create a screenshot of a website

2009-10-22 Thread Kim Madsen
f you mean you wanna rip a website and use it in your own then there's two functions to check: readfile() which reads the whole site and outputs this again. fopen() where you can read an URL line by line and easy do some alterations to the line if you like. I hope this will help you on the

[PHP] Sessions seems to kill db connection

2009-10-22 Thread Kim Madsen
$r) . " rows"; } } if $test is true it´s okay, if it´s false, this error occurs: Db error: Access denied for user 'www-data'@'localhost' (using password: NO) WTF? I´m not using a user called www-data for MySQL connections, but apache runs as this user. I've

Re: [PHP] how call a variable in a text

2009-10-21 Thread Kim Madsen
Ashley Sheridan wrote on 2009-10-21 22:56: Try this though: Print "This is different from your previous example :-)"; -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how call a variable in a text

2009-10-21 Thread Kim Madsen
call, haven't seen the error in quite a while): $text = "this is $var['0']."; In that case the solution is the curly brackets: $text = "this is {$var['0']}."; -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Spam opinions please

2009-10-20 Thread Kim Madsen
spam script. But if you wanna improve the solution using a time check you could save a microtime() value in the session and the test it against current time on the form page and the have a min. threshold that is accepted. -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List

Re: [PHP] Please don't kick me!

2009-10-20 Thread Kim Madsen
ll, you're always welcome to contribute to an open source project you take advantage of ;o) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Spam opinions please

2009-10-20 Thread Kim Madsen
#x27;m pretty happy with the solution, no spam for 3 years :-) -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sanitizing potential MySQL strings with no database connection

2009-10-20 Thread Kim Madsen
missing, and even though I cannot make use of it at least I know in general what needs to be done. if(@mysql_real_escape_string($variable) === false) Well? -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Header problem - SOLVED

2009-10-19 Thread Kim Madsen
This has been solved today. Talawa had a similar problem and came up with a solution to his problem, namely using session_write_close() before creating the headers. That stunt also solved my problem :-) -- Kind regards Kim Emax Kim Madsen wrote on 2009-10-03 13:30: Hi PHP people I have a

Re: [PHP] Please don't kick me!

2009-10-19 Thread Kim Madsen
7;ve been using fpdf for 4-5 years for invoices among others and are very happy with that. -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Blocking video streaming

2009-10-19 Thread Kim Madsen
either the headers, a caching problem or latin1/utf-8 What does your headers look like? (firefox has a lovely plugin "live http headers") Which character encoding do you use? Show us code bit from fopen to fclose -- Sincerly Kim Emax -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Sanitizing potential MySQL strings with no database connection

2009-10-19 Thread Kim Madsen
Dotan Cohen wrote on 2009-10-18 21:21: I thought that one could not test if a database connection is established or not, this is the most relevant thing that I found while googling that: http://bugs.php.net/bug.php?id=29645 from http://www.php.net/manual/en/function.mysql-connect.php $link =

Re: [PHP] Sanitizing potential MySQL strings with no database connection

2009-10-18 Thread Kim Madsen
versa) or on a string for that matter. It lies in the naming of the function what it's designed to do and work on. If you want a general function to sanitize an input, make your own function sanitize_input() based on ereg_* and/or str_replace and the likes. -- Kind regards Kim Emax -- P

Re: [PHP] Header problem - "solved"

2009-10-16 Thread Kim Madsen
e zipfiles outside webscope, but still...) -- Kind regards Kim Emax -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need unrounded precision

2009-10-15 Thread Kim Madsen
trim($num), $regs); if($regs[1]) $digit = $regs[1]; else print "no digit found"; -- Kind regards Kim Emax -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [Fwd: [PHP] Sessions in databases]

2009-10-06 Thread Kim Madsen
ions which time out anyways. I know Alfio don't have access to the php.ini file, but if you do and have the above setup, consider using a tmp dir like /phptmp and have one root server and mount the other servers /phptmp to the root servers /phptmp Kind regards Kim Emax Il pinguin

Re: [PHP] Header problem

2009-10-05 Thread Kim Madsen
file = $_REQUEST['zipfile']; if($DOWNLOAD_OK) { include "inc/connect.inc"; include "inc/functions.inc"; include "inc/default_functions.inc"; As you said earlier, spaces could do wierd stuff to a header Also switching between utf-8 and latin-1 character sets can

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
magic behaviors" ... you need to download? Well, create a file which aims id to download and nothing else, or you gonna constantly find these kind of problems in your applications. I believe the testpage does forfill that request? Or do you mean otherwise? Kind regards Kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
siple to determine the length of the zipfile, when creating the file in memory. Instead I'm now writing the file to disk and uses filesize on the zipfile to get the length for Content-Length, then I use readfile("zipfile.zip") instead of echo $zip->file(); But the result is still

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
nt; filename="Maxwell - Bad Habits (Remixes).zip" Content-Transfer-Encoding: binary Keep-Alive: timeout=15, max=96 Connection: Keep-Alive Content-Type: application/zip So I think my problem is cache related in some way. Kind regards Kim > Date: Sat, 3 Oct 2009 13:30:38 +0200

[PHP] Header problem

2009-10-03 Thread Kim Madsen
(jaunty) Shiretoko/3.5.2 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://lps.netlinq.dk/?action=download&t

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-06 Thread Kim N. Lesmer
/file.php" a "./" means "current working directory". I hope I make sense. If you haven't already take a look at: http://php.net/manual/en/function.include.php > ("../" I know) > > -G --- Mange venlige hilsner/Best regards Kim Naim Lesmer

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-06 Thread Kim N. Lesmer
T'] . "/incl/myfile.php"); Unless the file needs to be kept outside of where the webserver serves files. > -Govinda > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > --- Mange venlige hilsne

[PHP] Plotting Tool

2008-10-07 Thread Liz Kim
Hi, Anyone have any suggestions on a plotting package for PHP? Nothing too crazy and fancy - just easy to read plots/graphs. We were using PHPlot on our old server but it's requiring too many lib's/util's to install on a new server. TIA.

Re: [PHP] SQLExtendedFetch

2008-09-18 Thread Liz Kim
thanks for all your input. unfortunately, i cannot set up a new database as it is being used by other applications/websites. the versions of odbc, php and apache are all the same... please do let me know if you have any other suggestions! thanks On Wed, Sep 17, 2008 at 5:48 PM, Chris <[EMAIL PRO

[PHP] SQLExtendedFetch

2008-09-17 Thread Liz Kim
I've posted this already but I thought a new subject might help.. I have a script which connects to a MS SQL database, executes a query then displays the result. There are two identical Apache web servers and one MS SQL database server. When the script is ran on web server #1, all the results are

Re: [PHP] SQL outer join problem

2008-09-17 Thread Liz Kim
. > > Thank you, > Micah Gersten > onShore Networks > Internal Developer > http://www.onshore.com > > > > Liz Kim wrote: > > have a very simple script which connects to a database, execute a query > > then displays the result. > > This script use

[PHP] SQL outer join problem

2008-09-16 Thread Liz Kim
have a very simple script which connects to a database, execute a query then displays the result. This script uses odbc_connect and functions. There are two identical Apache web servers and one MS SQL database server. When the script is ran on web server #1, all the results are returned correctly

[PHP] Open MSSQLCE database file on desktop

2008-09-07 Thread Kim Tse
Hi all, Is there a way to open Mssql database file foo.sdf on desktop, not through the Mssql server or ODBC source, suppose the codes like below: $link = open_datafile('uri:file:///somepath/foo.sdf'); $query_result = query('some sql query',$link); thanks for your help :D -- get along unaided.

Re: [PHP] php_mssql.so

2008-03-27 Thread Liz Kim
AIL PROTECTED]> wrote: > Liz Kim wrote: > > We have a set of PHP files which uses "dl()" to load the extension > > "php_mssql.so" at runtime. > > These were running on a server with PHP 4.3.9 and have been recently > moved > > to a new server with

[PHP] php_mssql.so

2008-03-27 Thread Liz Kim
We have a set of PHP files which uses "dl()" to load the extension "php_mssql.so" at runtime. These were running on a server with PHP 4.3.9 and have been recently moved to a new server with PHP 5.1.6 (both RedHat). I have tried to simply copy the file "php_mssql.so" file to the directory of PHP mod

[PHP] Regular expressions

2007-12-11 Thread Liz Kim
I am trying to do a password match with php.. It needs to be at least 6 characters, contains 2 alphabets and at least 1 number or a special character... if (!preg_match("/^.*(?=.{6,})((?=.*\d)|(?=.*[,[EMAIL PROTECTED]"\/'+\*\?\.\[\]\^$\(\){}\|\\&:;'<>~`#%_-]))([a-zA-Z]{2,}).*$/", $pw1)) {error m

[PHP] [mssql_connect error] Changed database context to..

2007-08-23 Thread Liz Kim
Did anyone else run into this problem? PHP fails to connect to MSSQL7 with mssql_connect with the message: Changed database context to ''. I've been searching around but did not find a good solution for PHP. I did find this link: http://support.microsoft.com/default.aspx?scid=KB;EN-US;197459 But

[PHP] [mssql_connect] Interfaces File?

2007-08-23 Thread Liz Kim
Hello, I am trying to connect to a mssql server from php 4.3.9. mssql_connect('IP_ADDRESS:PORT_#',LOGIN,PASSWORD) or die("Could not connect to the mssql server"); is failing... after doing a little bit of research, I found this on php.net *"mssql_connect()* establishes a connection to a MS SQL s

[PHP] Recompiling PHP with mssql

2007-08-22 Thread Liz Kim
Hi, I am trying to install Microsoft SQL server functions to PHP 4.3.9 on redhat. When PHP was first installed, it was not configured to include the MSSQL functions. I would like to only add these functions and not touch what is already there... How do I proceed? Any help would be greatly apprecia

[PHP] Size Limit PHP + MSSQL

2007-02-23 Thread Liz Kim
Is there size limit for select queries in php? I am trying to grab a very long string that exists in the database. When I do a select and print it out, php keep truncating the string - only outputing the first half or so when the string is too long. I have checked the actual database and the stri

[PHP] Magic Quotes

2007-02-23 Thread Liz Kim
I've got all three Magic Quote directives turned off... When I use sql query to grab any string from a database, it still spits out the \ in front of the special characters.. Any ideas? thanks

[PHP] PHP + SQL..

2007-02-22 Thread Liz Kim
I am storing a lot of text into my mssql database. Are there any special characters I should watch out for? I think so far I've got ' covered. Also, when I retrieved the string later on... The ' is printed out with a \ in the front. How do I get rid of the \? When I try to get a really long strin

Re: [PHP] regular expression to extract from the middle of a string

2006-07-14 Thread Kim Christensen
=([^,]+)/"; preg_match($pattern, $string, $matches); print_r($matches); Voila! (Untested for now, I'm pretty drunk so sorry if it ain't workin out like you want to) -- Kim Christensen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PAGE TURNED BECOME SOURCE CODE VIEW..

2006-07-14 Thread Kim Christensen
e code samples to get things going, preferrably the GD part which seems to be the issue :-) Best regards -- Kim Christensen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdf

2006-06-29 Thread Kim Steinhaug
really whatever you need. The other class people mentions are free, but far from as advanced as pdflib. Grab it here : http://www.pdflib.com/ regards, Kim Steinhaug http://www.steinhaug.no/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regular expressions or something else?

2006-04-12 Thread Kim Christensen
ledge if you're a programmer. $text = "this is where the contents of your search result page goes"; preg_match_all('|]*href="([^"]+)"[^>]*>([^<]+)<\/a>|U', $text, $links, PREG_SET_ORDER); print_r($links); -- Kim Christensen [EMAIL PROT

Re: [PHP] Classes and OOP

2006-03-07 Thread Kim Hunter
PHP5 Objects, Patterns and Practice 1590593804 - Matt Zandstra - Apress This is a good way to get a good grasp of object-oriented programming covers the basics of uml as well as using decent examples to explain the use of objective programming (unlike all the web sites out there that i tried to

Re: [PHP] php+ ajax

2006-02-21 Thread Kim Christensen
On 2/21/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > Kim do the escaped sqaure brackets work in all majors browsers as > far as you know? "Major browsers" as in Firefox and IE for PC/Mac works great, yes - haven't had the chance to try Opera or Konqueror yet, maybe so

  1   2   3   4   >