[PHP] Re: [modauthkerb] Cannot retrieve KRB5CCNAME if logged in with kerberos ticket

2012-08-28 Thread Benjamin Kahn
On Tue, 2012-08-28 at 09:07 -0400, Mauricio Tavares wrote: > > https://bugzilla.redhat.com/show_bug.cgi?id=687975 > > mod_auth_kerb using krb5passwd and keepalive and credential delegation > > loses delegation after first request on connection > > > Good question, because it sure looks rather

[PHP] Re: [modauthkerb] Cannot retrieve KRB5CCNAME if logged in with kerberos ticket

2012-08-27 Thread Benjamin Kahn
Maybe you are hitting this bug? https://bugzilla.redhat.com/show_bug.cgi?id=687975 mod_auth_kerb using krb5passwd and keepalive and credential delegation loses delegation after first request on connection On Mon, 2012-08-27 at 17:29 -0400, Mauricio Tavares wrote: > Quick-n-easy question: I have

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-12 Thread Benjamin Hawkes-Lewis
m better handled by a tool than switching away from autoloaders. Exuberant Ctags is your friend. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [php] static html search engine for php static html site

2011-12-26 Thread Benjamin Hawkes-Lewis
ss you could generate its indexes as part of a static build process. Solr and Sphinx would be examples of FOSS search engines you could use: http://lucene.apache.org/solr/ http://sphinxsearch.com/ -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Alternative session control system

2011-12-26 Thread Benjamin Hawkes-Lewis
sts going to your server; if that's not the case, then I think we need a much clear description of your setup. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP page source charset

2011-12-19 Thread Benjamin Hawkes-Lewis
y ideas? If you're looking up line references from a W3C validator in your PHP code, then you're doing something very wrong and are perhaps fundamentally confused. You need to distinguish between the PHP code itself and the HTML that it generates and dispatches over the wire to

Re: [PHP] Local variable protection

2011-10-13 Thread Benjamin Coddington
On Oct 13, 2011, at 5:05 AM, Stuart Dallas wrote: > On 12 Oct 2011, at 21:06, Benjamin Coddington wrote: > >> Are there any assurances that function local variables are protected from >> code calling the function? >> >> For example, I would like to provide some c

Re: [PHP] Local variable protection

2011-10-12 Thread Benjamin Coddington
On Oct 12, 2011, at 4:24 PM, Ken Robinson wrote: > Quoting Benjamin Coddington : > >> Are there any assurances that function local variables are protected from >> code calling the function? >> >> For example, I would like to provide some cryptographic fun

[PHP] Local variable protection

2011-10-12 Thread Benjamin Coddington
Are there any assurances that function local variables are protected from code calling the function? For example, I would like to provide some cryptographic functions such as function org_secure_string($string) { $org_key = "a very random key"; return hash($string, $key); } func

Re: [PHP] Issues with simplexml_load_string()

2011-10-06 Thread Benjamin Hawkes-Lewis
''; > > yields the following output : > > Array > ( >   [message] => lkjlkjklj >   [buttons] => Array >       ( >           [button] => This is my free form text >       ) > ) > > So I get the CDATA but I don't get the "name" attri

Re: [PHP] Installing extensions

2011-09-18 Thread Benjamin Hawkes-Lewis
namically loaded. It does not dictate which extensions it loads at startup - that's "extension". http://php.net/manual/en/ini.core.php http://www.php.net/manual/en/install.pecl.intro.php -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Benjamin Hawkes-Lewis
on a form field ("input", "textarea", "select", etc) is different to the "name" attribute on a "a" or "form" element, so this rule does not apply to it. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML id attribute and arrays

2010-12-17 Thread Benjamin Hawkes-Lewis
id" attributes do not have to be the same. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Auto-generating HTML

2010-09-21 Thread Benjamin Hawkes-Lewis
On 20 Sep 2010, at 22:02, Bastien Koert wrote: > The standard suggests that double quotes are to be used for HTML > attributes. Where? -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML DOM

2010-07-21 Thread Benjamin Hawkes-Lewis
(x[i].getElementsByTagName("street2")[0].childNodes.length > 0) ... 2. Use the "textContent" and "innerText" properties to get the text of all/any child nodes. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Malformed UTF-8 Data in JSON [SOLVED]

2010-07-14 Thread Benjamin Hawkes-Lewis
re > what's going on there, so obviously more experimentation is needed. Presumably, thanks to your PHP settings, you need stripslashes() on all $_GET, $_POST, and $_COOKIE input. http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc This does not apply to input from

Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis
. 2) Whether you've made any errors when modifying your HTML, which I can't see either. If you provided test cases, I could see these things and answer your questions. Trying to describe the problem rather than /showing/ the problem is very inefficient. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis
is the logic here? Without seeing some clear test case links that reproduces the problem for us, I really can't comment about that. It seems to me that what I am trying to do is logically and intuitively clear > and simple. What you're trying to do really isn't clear to

Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis
n that HTML/XML "id" attributes may not /begin/ with a number. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis
general, I'd suggest creating page-specific style variations by sticking a class on the body (e.g. ) and using that as a hook to modify the styling of the class whose formatting you want to be different. .thing { font-weight: bold; } .article .thing { font-style: italic; } for

Re: [PHP] Re: -less layouts; Ideas welcome

2009-05-21 Thread Benjamin Hawkes-Lewis
ntational table markup for grid layout. Fast forward a decade, and authors are getting another tool in our toolbox, not a million miles away from your 'class="layout"'. I don't think it's very well specified yet, but: http://www.w3.org/TR/wai-aria/#presentation -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Benjamin Hawkes-Lewis
ct users to parse linearized "div" elements. Some useful discussion at: http://www.joedolson.com/articles/2006/10/describing-a-semantic-calendar/ http://diveintoaccessibility.org/day_19_using_real_table_headers.html http://georgiatechcatea.wordpress.com/2007/01/16/accessible-calen

Re: [PHP] CSS & tables

2009-05-18 Thread Benjamin Hawkes-Lewis
gn link above. Again, I hope that helps. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: CSS & tables

2009-05-18 Thread Benjamin Hawkes-Lewis
r example, from the table: CountryPopulation France65 million United Kingdom61 million A user agent can extract the population of France. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CSS & tables

2009-05-18 Thread Benjamin Hawkes-Lewis
or better than for HTML 4.01. Also, the fact that CSS2.1 implementation is not complete has not dissuaded browser vendors from experimenting with implementations of CSS3 drafts (e.g. "border-radius", "text-overflow"). -- Benjamin Hawkes-Lewis -- PHP General Mailing List (ht

Re: [PHP] CSS & tables

2009-05-17 Thread Benjamin Hawkes-Lewis
On 17/5/09 22:43, Paul M Foster wrote: *Except* in IE6, which is what probably most of the world is using. Probably "a lot" rather than "most". http://www.upsdell.com/BrowserNews/stat.htm --- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] CSS & tables

2009-05-17 Thread Benjamin Hawkes-Lewis
ou mention, you've "managed to do some pages with CSS" - maybe you just need pointing in the right direction. :) It's worth raising your question even if you won't have time to apply the answer to this particular project. Before consulting such a forum, I'd r

Re: [PHP] How about a saveXHTML for the DOM?

2009-04-09 Thread Benjamin Hawkes-Lewis
s compatible with HTML 4.01 and which may also be labeled as text/html." http://www.ietf.org/rfc/rfc2854.txt (I'm not saying it's a good idea, mark you! http://hixie.ch/advocacy/xhtml ) -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing HTML href-Attribute

2009-01-18 Thread Benjamin Hawkes-Lewis
d other illegal characters) in HREF values. The HTML5 draft proposes an algorithm for parsing and resolving HREF values that includes such error handling: http://www.whatwg.org/specs/web-apps/current-work/#parsing-urls http://www.whatwg.org/specs/web-apps/current-work/#resolving-urls -- Be

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Benjamin Hawkes-Lewis
e semantic meaning _is_ intended by bold or italic but that meaning is _not_ stress, it's best to use relevant specific elements ("code", "var", "cite", "q", "kbd", "samp", etc.?) or failing that class names that express meaning not

Re: [PHP] What does

2008-12-28 Thread Benjamin Hawkes-Lewis
On 28/12/08 16:47, Jim Lucas wrote: short tags are enabled. Disable them in your php.ini file and you will be good. Alternately: '; ?> -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] table mixing PHP, javascript, ajax and CSS

2008-12-28 Thread Benjamin Hawkes-Lewis
the table it self (in terms of columns amount, of presented data record,...) the user will have only to run a js function which will include the frame.php file into his own webpage with the template given as parameter. The use of JS as an include mechanism is largely pernicious. Couldn't t

Re: [PHP] Curl with asp pages....

2008-12-17 Thread Benjamin Hawkes-Lewis
n Rails: http://dev.rubyonrails.org/ticket/6645 IIRC there's nothing in the URI, HTML, or CGI specs that enforces how these should be interpreted. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IE8 and HTML5

2008-12-04 Thread Benjamin Hawkes-Lewis
in beta when Chrome was released, standard support in IE8 is mostly a product of decisions taken before that time. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript mailing list

2008-08-30 Thread Benjamin Hawkes-Lewis
Richard Heyes wrote: Can anyone recommend a good Javascript related mailing list? http://lists.evolt.org/mailman/listinfo/javascript perhaps. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Version Control Software

2008-08-07 Thread Benjamin Darwin
On Thu, Aug 7, 2008 at 10:02 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote: > Robert Cummings wrote: > >> On Thu, 2008-08-07 at 09:43 +1000, Ross McKay wrote: >> >>> On Wed, 6 Aug 2008 16:42:23 -0400, "Benjamin Darwin" wrote: >>> >>> [

[PHP] Version Control Software

2008-08-06 Thread Benjamin Darwin
After reading a topic on the list here about someone losing their website, and having a minor mistake on my own that cost me a week's work on a file (basically, tested the file, then uploaded to the live site and took the daily backup off the live site.. only to find the file was messed up.. and ha

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Benjamin Hawkes-Lewis
at text happens to be a form. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remembering where the user is on the page??

2008-08-02 Thread Benjamin Hawkes-Lewis
soup), XHTML 1.0 has no advantages when served as tag soup, and XHTML 1.1 must not be served as text/html. ;) -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] anyone have HTML snippet example of HTTP method = put?

2008-08-02 Thread Benjamin Hawkes-Lewis
sers can speak or braille "File: " when the focus enters the control. For a detailed explanation, see: http://reference.sitepoint.com/html/label http://www.w3.org/TR/WCAG20-TECHS/H44.html http://green-beast.com/blog/?p=254 http://www.w3.org/TR/html401/interact/forms.html#h-17.9 Hope that helps

Re: [PHP] Retrive a ID or Class value from a form input field

2008-06-09 Thread Benjamin Hawkes-Lewis
ically insecure. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie ' If Statement' Question

2008-03-14 Thread Benjamin Darwin
On Fri, Mar 14, 2008 at 7:56 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > Hello Folks, > > I would like to be able to wrap a 'form' inside a php 'if statement' - so > that the form will appear if the 'if condition' is met. > > - most likely I cannot have a I'm doing other things wrong al

Fwd: [PHP] Using PHP to remove certain number of bytes from file

2007-12-30 Thread Benjamin Darwin
Maybe one of these days I'll remember to actually reply to the list the first time. -- Forwarded message -- From: Benjamin Darwin <[EMAIL PROTECTED]> Date: Dec 30, 2007 2:12 PM Subject: Re: [PHP] Using PHP to remove certain number of bytes from file To: Scott Wil

Re: [PHP] Multiple File Downloads

2007-12-14 Thread Benjamin Darwin
> can make enough money to pay someone else to do it for you. > > -- > > > > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Benjamin Darwin President, Crew 99 (Insert Phone Number Here) [EMAIL PROTECTED] "Dream as

Re: [PHP] Uploading a file through PHP form

2007-12-13 Thread Benjamin
gt; describes the procedure on php.net ? Thanks, Ron > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Benjamin [EMAIL PROTECTED] "Dream as if you'll live forever, live as if you'll die today." ~James Dean

Re: [PHP] Re: Compile - libxml2

2007-11-12 Thread Benjamin Dupuis
DOH ! :/ Thanks ! But why php5.2.2 doesn't cry ?!! (and XML working) Best regards - Message d'origine - De: Rob Richards <[EMAIL PROTECTED]> Date: Mon, 12 Nov 2007 07:32:26 -0500 Sujet: [PHP] Re: Compile - libxml2 À: Benjamin Dupuis <[EMAIL PROTECTED]> Cc: PHP-

[PHP] Compile - libxml2

2007-11-12 Thread Benjamin Dupuis
I've opened a bug report on bug.php.net, Compiling PHP in 5.2.2 is working with my libxml2, but not in 5.2.4 (and 5.2.5) but developpers say me that's not a bug : I must use XML2_DIR instead of XML_DIR, But when using configure, it say me : use libxml-dir for libxml2 using libxml2-dir is not wor

[PHP] Disable all caching

2006-10-10 Thread Benjamin Adams
I have a php (ver 4.x) script that is being cached. I have placed: but the page is still being cached. I'm not sure if its apache or the php. How can I disable all caching? is there something I can set in php.ini? (Mac OS X Server) Thanks Ben -- PHP General Mailing List (http://www.php.n

Re: [PHP] parse text file

2006-07-23 Thread Benjamin Adams
Thanks, fgets works great didn't know the function before. On Mon, 2006-07-24 at 01:56 +0530, Sameer N Ingole wrote: > Joe Wollard wrote: > > Benjamin, > > > > Use the file() function, it will read a file then return each line as > > a new element in an array.

[PHP] parse text file

2006-07-23 Thread Benjamin Adams
how would I read a file one line at a time: something like that, I'm cofused on if I use fread, something which will do one line at a time? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Delete an upload

2006-07-17 Thread Benjamin Adams
I created a form where users can upload. I'm working on the section where admins can delete entries. When I have a user delete an entery, I have it taking out of MySQL (working fine) But how do I delete the file that was uploaded? Thanks for any help Ben -- PHP General Mai

[PHP] Filter php page

2006-07-05 Thread Benjamin Adams
can I create a script that will search a php page for iframes. And have it check the path of the iframe, If the iframe is listed as bad don't show. (list I make) Trying to do something with virus like through an iframe. I don't really know where to start looking for help. --Ben -- PHP Gen

[PHP] odbc remote

2006-06-07 Thread Benjamin Adams
how do I do a remote connection for odbc? Everything that I see is on the local machine. Can you do an odbc to a remote database? Benjamin Adams / Lord of the Root / Ambrosia Software, Inc. -- http:// www.AmbrosiaSW.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] permissions

2006-04-21 Thread Benjamin Adams
I have a text file that is just being read by php Can I change the permissions of it so www can not read it? what username does php uses to read files? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pause until page is loaded

2006-04-18 Thread Benjamin Adams
I tried it but it still stops half way through the page and then continues. On Apr 18, 2006, at 5:24 PM, Jay Blanchard wrote: [snip] I created a script to redirect to a download auto. but it redirects before the Whole page is loaded. How do I pause until page is loaded? [/snip] Page loading

[PHP] pause until page is loaded

2006-04-18 Thread Benjamin Adams
I created a script to redirect to a download auto. but it redirects before the Whole page is loaded. How do I pause until page is loaded? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] parse a Makefile

2006-04-03 Thread Benjamin D Adams
I'm trying to parse a Makefile, (FreeBSD Ports) I plan on dumping the Makefile vars to a MySQL Database. Would I parse the make file like a ini file? Or would I have to use something different? Maybe someone knows a tool that can do this for me? Thanks Ben -- PHP General Mailing List (http://w

[PHP] preg_match

2006-03-31 Thread Benjamin D Adams
I'm trying to check a string for ../ Can't get it to work can anyone help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML-RPC or SOAP

2006-03-31 Thread Benjamin Adams
I want to take a mysql database that I have and turn it into a wsdl page where I can make a client program connect to. I have read how to do it in Tomcat. but looking for help in using PHP. On Mar 30, 2006, at 9:45 PM, Anthony Ettinger wrote: what about WSDL? On 3/30/06, Russell Jones <[EMAI

[PHP] Random value from ini file

2006-03-28 Thread Benjamin Adams
I have an ini file that has: 1 = "words"; 2 = "words1"; 3 = "words3"; I want to pull a rand value and print it out I'm trying to use parse_ini_file but its not working any help would be great. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] Make all emails links

2006-03-08 Thread Benjamin Adams
I'm pulling data from a database; When the data is pulled emails look like [EMAIL PROTECTED] Is there a way to just make all email address in the text that it pulls so, "bla bla bla okjsokdf [EMAIL PROTECTED] ksnow noduowe..." Make the email in the text be a mailto link automatically? Thanks

Re: [PHP] Detect where someone comes from

2006-03-06 Thread Benjamin Adams
Got it Thanks!! Ben On Mar 6, 2006, at 12:13 PM, Stut wrote: Benjamin Adams wrote: Currently I have an ini file that has the list of banner websites I can make it count problem is: $_SERVER['REFERER'] will give me the full link http://www.domain.com/dir/location/file.php where I

Re: [PHP] Detect where someone comes from

2006-03-06 Thread Benjamin Adams
Currently I have an ini file that has the list of banner websites I can make it count problem is: $_SERVER['REFERER'] will give me the full link http://www.domain.com/dir/location/file.php where I just want the http://www.domain.com/ Ben On Mar 6, 2006, at 11:39 AM, Benjamin Adams

Re: [PHP] Detect where someone comes from

2006-03-06 Thread Benjamin Adams
I have banners on other websites. I'm trying to detect who is clicking on what banners. I can have the company that has the banners throw a ? bannercompany='companyname' and do a query on that but I would like to do it just by auto detecting Ben On Mar 6, 2006, at 11:21 AM, <[EMAIL PROTECTED]>

[PHP] Detect where someone comes from

2006-03-06 Thread Benjamin Adams
I was wondering if there was a way I can see where people are linking to me from. Can I find this in php? --Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] subtract dates

2006-03-01 Thread Benjamin Adams
I'm trying subtract to dates the user enters in and get the days between. Dates are stored as date('mdY') is there a built in function to subtract to dates is this format? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] preg_replace problem

2006-03-01 Thread Benjamin Adams
$file = dog.txt; $today = date("Ymd"); function incDate($new, $date){ //$date = settype('int'); return $new.($date++); } $getOldValue = parse_ini_file($file, 1); $newValue = $getOldValue[$today] + 1; $oldDate = $today . " = ". $newValue; $newDate = preg_replace('/(\d+\s\=\s)(\d+)

[PHP] working with ini files

2006-02-28 Thread Benjamin Adams
I have created my own ini file. I can read the values into an array fine. but What I want to do is change a value in the ini file. Example file.ini dog = 3 cat = 4 fish = 7 altered file.ini dog = 3 cat = 5 fish = 7 how can I do this, I tried using ini_set but its not working. help would be gr

Re: [PHP] auto download

2006-02-22 Thread Benjamin Adams
gt;'); window.open('<?=$conf[$links]['link1']?>'); Only the first if runs and is true all the time. What is wrong with the code? On Feb 22, 2006, at 12:41 PM, John Nichel wrote: Benjamin Adams wrote: I have three links. The code alre

[PHP] auto download

2006-02-22 Thread Benjamin Adams
I have three links. The code already auto selects one. I'm trying to take that one link and automaticly start the download. I tryed with header('location:$link'); but it tells me "Warning: Cannot modify header information" what would I use to start downloading? one of the link is another page so I

[PHP] Working with a config file

2006-02-20 Thread Benjamin Adams
I'm trying to parse a config file, example of the config is: [fred] id=8782 section=s1 years=4 download1=mirror1 [frank] id=8372 section=s3 years=4 download1=mirror12 download2=mirror2 . . . I want to parse this so I can only call frank or freds data and move id, section, years, etc to varaibl

Re: [PHP] Having resource variables over several scripts

2005-10-10 Thread Benjamin Mack
Hey, actually, the key problem is that: I installed this ssh2 extension and want to connect to e.g. a server, and then, maybe on the next page, enter a command that will be executed on that server and so on. I can't connect to a server everytime (or: i COULD but I don't want to) because it tak

[PHP] Having resource variables over several scripts

2005-10-10 Thread Benjamin Mack
Hey, I am trying to have e.g. a file opened over several scripts. When opening a file with "fopen" I receive a variable of the type resource (like "Resource ID #3"), but when I try to save this variable in the SESSION and try to use it on another page, I get a "null" variable. Because I need

[PHP] Re: phpeclipse ide question

2005-01-18 Thread Benjamin Edwards
>>> David Robley <[EMAIL PROTECTED]> 01/18/05 01:38pm >>> On Wed, 19 Jan 2005 00:08, Benjamin Edwards wrote: >> >> After the discussion about editors I have installed phpeclipse. It seems >> to work well and looks great. However I am having slight probl

[PHP] phpeclipse ide question

2005-01-18 Thread Benjamin Edwards
After the discussion about editors I have installed phpeclipse. It seems to work well and looks great. However I am having slight problem. Whenever I save a file it seems to try to launch a browser, anyway it comes up with a message saying something like 'unable to launch external browser.

Re: [PHP] Finding first/last occurrence of a substring

2005-01-17 Thread Benjamin Edwards
You need to use regular expresions, I think there is a regex_replace frunction (or something like that). http://etext.lib.virginia.edu/helpsheets/regex.html is a fairly good introduction to regular expresions - learn to love them ;) >>> Vikram Vaswani <[EMAIL PROTECTED]> 01/17/05 03:27pm >>> Hi

[PHP] PHPED PHP IDE (wasRe: [PHP] php editor)

2005-01-17 Thread Benjamin Edwards
Whats the story with this. It seems too good to be true. A fully featured IDE/Debugger released under some sort of free software licence. The site you link to seems indicate that is is free software, it has a sourceforge.net logo at the botton. However nuspere are selling it for £299. what is

Re: [PHP] php editor

2005-01-17 Thread Benjamin Edwards
Or you could get phpeclipse for free which is a php IDE. It all depends on weather you are a web designer or a php developer. If you are both you will still want an IDE (Integrated Development Enviroment) and Probably a debugger (see my previous email about phped). If you can aford to throw y

Re: [PHP] client information

2005-01-11 Thread Benjamin Edwards
A couple of things that mey help. I think phpinfo() will display all the system varables. These varables come from the web server so your web server documentation may help. Another thing that may work is implode ( ',' $_SERVER ) which should give you a (, comma) seperated list of $_SERVER (No

Re: [PHP] 2 dimensional array processing

2005-01-11 Thread Benjamin Edwards
r loop like this: foreach ($insert as $table => $fields) { foreach($fields as $field => $value) { $fieldValuePairs[] = "$field = $value"; } $fieldValueStr = implode(',', $fieldValuePairs); echo "update $table set $fieldValueStr";

[PHP] 2 dimensional array processing

2005-01-11 Thread Benjamin Edwards
If I create the following 2 dimensional associative array:- $insert["tab2"]["fields1"] = "value1"; $insert["tab1"]["fields2"] = "value2"; $insert["tab2"]["fields5"] = "value3"; $insert["tab1"]["fields7"] = "value4"; how do I do 2 levels of nested loop with the first level looping through the fir

[PHP] $_REQUEST

2005-01-10 Thread Benjamin Edwards
Trying to get my head around relationship between/use of $_GET, $_POST and $_REQUEST. It seems to me that $_REQUEST is most useful as if it is used in place of $_POST/$_GET it would be possible to change posting method without changing the code. I am kind of assuming that $_REQUEST is and

[PHP] unpacking $_POST when example[1], example[2] in form.

2005-01-10 Thread Benjamin Edwards
If I have a form with elements like If example was not an array it would be accessed using $_POST["example"] But how do I access the varable if it is an array like above. Ben

[PHP] Static variable reflection

2004-10-08 Thread Benjamin Dischinger
I have been using and experimenting with PHP 5's reflection API and have ran into a wall. I am trying to access static variables through reflection but it seems as though they cannot be set. The following is some code that reproduces the problem. Thanks to anyone that has insight into my problem

[PHP] PHP modules

2004-09-10 Thread Benjamin Bostow
be helpful. Benjamin Bostow -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php fam problems

2004-08-06 Thread Benjamin Adler
hi! I'm trying to use the fam module from cli-php5 with the example code from http://de2.php.net/manual/en/ref.fam.php. It works, but when I copy a big file into an observed folder, I get a FAMCreated for the file, and then, while the copying is still in progress, multiple FAMChanged. I want to

[PHP] Re: list to array help

2004-03-29 Thread Benjamin Jeeves
Justin Patrin wrote: > Benjamin Jeeves wrote: > >> Hi all, >> >> I have a search where I search inside a document and count how many times >> I found a given word. >> >> My problem is that I have a list e.g. $list_path this is a string of >> wher

[PHP] list to array help

2004-03-29 Thread Benjamin Jeeves
Hi all, I have a search where I search inside a document and count how many times I found a given word. My problem is that I have a list e.g. $list_path this is a string of where the file is location on the server what I need help on this getting this list into array format of /somepath/doc1.

[PHP] reading a pdf file into an array

2004-03-17 Thread Benjamin Jeeves
Hi All Was hoping some one might be able to point me down the right road I would like to be able to read the context of a pdf file into an array then search that array for a word is this possible with php. e.g can I read a pdf file into an array ? Thank you Ben

Re: [PHP] How to make sure a redirect works

2004-03-17 Thread Benjamin
Henry Grech-Cini wrote: > 1) Do not redirect if the page is visited as the result of a POST Why is that? I do it all the time and it seems to work fine. I have read through all the emails for this thread and didn't find anything mentioned. Am I doing something wrong? Benjamin -- PHP

[PHP] Trouble with ftp_get function

2004-03-11 Thread Benjamin
RS['file'] is the path of the file I want to download. I always get this error: ftp_get(): Error opening C:/thefile.txt in /main.php on line 97 I have searched all over trying numerous different scripts to try and figure out what is wrong. Does anybody have any ideas? thanks, Benjamin

[PHP] deleting array elements

2004-03-09 Thread Benjamin Jeeves
Hi All I have two array one with a list of items in it. Then a second array with a list of items in it what I want to be able to do is compare array1 to array2 and if a match is found in both arrays delete that match from array1 and then so now? Any help would be good. so array1 = (1,2,3,4,5)

[PHP] chunk_split();

2004-01-28 Thread Benjamin Trépanier
Title: chunk_split(); Hi, I am using the chunk_split(); function to separe a long long text on differents pages. At this time, I can split the string into x sections of 2000 characters. Now I need to show only the first 2000 . when user click on page #2, it’s reloading and show the next 200

[PHP] PHP uninstall/reinstall

2003-10-12 Thread Benjamin Howarth
Hi all, am a newbie to PHP so please spell your answers to my questions out in words of one syllable or less... I recently had PHP 4.2.1 installed on Windows 98 SE, then it suddenly stopped working for some reason - I don't know why or how, but I kept getting SErver 500 errors. Having tried to re

Re: [PHP] How to debug XSLT Errors?

2003-03-28 Thread Benjamin Walling
ost the file so that we can review the xsl code. > > -- > Ray > > On Fri, 2003-03-28 at 10:22, Benjamin Walling wrote: > > I'm trying to use the xslt_* functions, but I can't get any decent error > > messages out of them. I've used the XML and XSL I'm pass

[PHP] How to debug XSLT Errors?

2003-03-28 Thread Benjamin Walling
I'm trying to use the xslt_* functions, but I can't get any decent error messages out of them. I've used the XML and XSL I'm passing it in IE, and it gets processed and transformed correctly. The only error I get is: Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invali

[PHP] Turn off PHP for certain directories?

2003-02-01 Thread Benjamin Smith
Is it possible (using an apache directive, perhaps?) to turn off php parsing for certain directories within a site? (but not others?) I picture something like (in httpd.conf) AllowOverride All Options FollowSymLinks NoParsePHP Can this be done? How? Perhaps as a php_value entry in the

[PHP] Line Number function?

2003-02-01 Thread Benjamin Smith
PHP keeps track of what line# is being executed, so that when there's an error (say in pg_exec() ) it reports what line the error occured on. This appears to happen even during runtime (not just during compilation). For example: - -- This woul

Re: [PHP] how can I use an external 'template' file and still use PHP variables?

2003-01-10 Thread Benjamin Niemann
I think this should make it: ob_start(); include("/pathto/customer_email.php"); $message = ob_get_contents(); ob_end_clean(); - Original Message - From: "Daevid Vincent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 10, 2003 10:48 AM Subject: [PHP] how can I use an ext

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Benjamin Niemann
- Original Message - From: "Jean-Christian Imbeault" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 9:52 AM Subject: [PHP] EOF: how to generate one in a string > I am trying to use a command line program in Linux using this form: > > $result = `/path/prog $

  1   2   >