[PHP] apache + ftp!

2001-11-12 Thread Benjamin
hey group! i have apache installed on an win2000 machine and now i need an good and stable ftp server! which one does i take! thank you, ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

Re: [PHP] Re: apache + ftp!

2001-11-12 Thread Benjamin
do you know about cerberus-ftp? how is it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

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

[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

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] Show only user that variable "music"contain "pop"

2002-11-27 Thread Benjamin Trépanier
Hi, I need information about a simple command... I have a DB (of course...) and I need to show only "ID" that variable "music"contain "pop" I found this example that is suppose to do a similar thing in a msql query... SELECT * FROM $TBL_NEWS WHERE music LIKE '%pop%' AND ORDER BY name So it'

Re: [PHP] Show only user that variable "music"contain "pop"

2002-11-27 Thread Benjamin Trépanier
you only have one condition, then get rid of the AND in the where > statement; > > Select only the fields that you need, instead of * > > Like this: > > SELECT id FROM $TBL_NEWS WHERE music LIKE '%pop%' ORDER BY name > > > Peter > > At 03:16 PM 11/27

[PHP] Random include???

2002-12-19 Thread Benjamin Trépanier
Hi, I'm a newbie in php so sorry for that question! I have a table in a html dcc and I want toinclude a file in a cell, but that file must be random so people load a different page each time they refresh... The basic syntax I use for the include is below now, I want to know how to generate the

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 $

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

[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

[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] 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

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

RE: [PHP] Keeping your published script safe?

2002-09-26 Thread Smith, Benjamin
There's no real foolproof free way of doing this, it's a fact of life that there will always be people who do this. I wouldn't lose sleep over it. Console yourself with the fact that for every person who does not acknowledge your effort, there are probably 10 people who do. -Original Messa

RE: [PHP] length function

2002-09-26 Thread Smith, Benjamin
http://www.php.net/manual/en/function.strlen.php -Original Message- From: Jeff Bluemel [mailto:[EMAIL PROTECTED]] Sent: Friday, 27 September 2002 1:35 PM To: [EMAIL PROTECTED] Subject: [PHP] length function I am looking for a function that will give me the number of characters of a stri

RE: [PHP] syntax question

2002-09-29 Thread Smith, Benjamin
Check out this tutorial on the MySQL website: http://www.mysql.com/articles/mysql_intro.html It contains links to the basics of SQL and its syntax, as well as giving you a good grounding in MySQL specifically. As others have stated, most of the functionality you really need should be built int

RE: [PHP] Can I pass the ftp transfer mode in a string?

2002-09-30 Thread Smith, Benjamin
What if you enclose it in single quotes? -Original Message- From: John Kelly [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 October 2002 12:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Can I pass the ftp transfer mode in a string? Can I pass the ftp transfer mode in a string like ... $filet

RE: [PHP] image wrapper - graphs

2002-09-30 Thread Smith, Benjamin
Try gnuplot: -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 October 2002 2:31 PM To: [EMAIL PROTECTED] Subject: [PHP] image wrapper - graphs Hi, Does anyone know of image creation libraries that will generate graphs? Mike -- PHP General Mailing

RE: [PHP] remote desktop control

2002-09-30 Thread Smith, Benjamin
Not really, no. It goes well beyond the capabilities of a server-side scripting language. There is a java implementation in VNC that allows this capability, though. -Original Message- From: Rahul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 October 2002 4:53 PM To: [EMAIL PROTECTED] Subj

RE: [PHP] Access denied to php files in Netscape 6

2002-10-01 Thread Smith, Benjamin
It's not impossible if the site is not opened up to full public access, and he is using different proxy settings on each browser. Check those. -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 2 October 2002 4:23 PM To: Chris Nielsen Cc: [EMAIL PROTECT

RE: [PHP] Cookie

2002-10-01 Thread Smith, Benjamin
The register globals function must be turned ON in your php.ini for the first method to work. -Original Message- From: Max Buvry [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 2 October 2002 2:38 AM To: [EMAIL PROTECTED] Subject: [PHP] Cookie Hi, I use : apache 1.3.26, php 4.2.3, post

RE: [PHP] Extract HTML tags

2002-10-09 Thread Smith, Benjamin
There are a couple of ways you could do it, the proper way with a regular expression, or you could just kludge it using explode() and chucking out the stuff you did not need. -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED]] Sent: Thursday, 10 October 2002 7:43 AM To: [

RE: [PHP] Odd request

2002-10-12 Thread Smith, Benjamin
No, there isn't, and no, there probably shouldn't be, since the height in pixels that the page will render in is dependent on client-side attributes like font size, resolution, browser type, etc. This might be an appropriate function in javascript, but not php. >Any way in php to determine a

RE: [PHP] Want to exclude first 10 records from table

2002-10-16 Thread Smith, Benjamin
select * from forum order by postdate desc LIMIT 10, -1 Assuming you are using MySQL of course. See the official documentation for further assistance: http://www.mysql.com/doc/en/SELECT.html -Original Message- From: Manisha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 16 October 2002 4:

RE: [PHP] why can't i do this?

2002-10-16 Thread Smith, Benjamin
Because the first example is not correct syntax? I wasn't aware that the first element in a comparison could ever be left out, is it that way in other languages? -Original Message- From: Peter Houchin [mailto:[EMAIL PROTECTED]] Sent: Thursday, 17 October 2002 2:15 PM To: php_gen Subject

RE: [PHP] MySQL GMT --> Local time

2002-10-16 Thread Smith, Benjamin
Local to the client or local to the server? -Original Message- From: Jason [mailto:[EMAIL PROTECTED]] Sent: Thursday, 17 October 2002 3:26 PM To: php_gen Subject: [PHP] MySQL GMT --> Local time My logging application is feeding a MySQL database with data records that are time stamped w

[PHP] Upload permission on a web_user space...

2002-11-04 Thread Benjamin Trépanier
Hello, I'm trying again to ask you that question because I was not understand. I have a unix server hosting service, my hosting service allow me to create web_server. Those are create for my client who have to upload differents things. So when people are connecting to my ftp (example on IE...) th

[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] Strings??

2001-01-16 Thread Benjamin Munoz
Ade, What kind of string? What do you want to do with them? -Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Strings?? Quick Question. I have a form which has 10 fields, is there

RE: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Benjamin Munoz
Miles, If you can save 2.htm as 2.php, use some authentication code. Story.php becomes Inside X.php, you have some authentication code. Maybe something simple as: Inside story.php, set $valid to true Now accessing 2.php directly means that $valid is valid and you'll be redirected to story

RE: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Benjamin Munoz
Correction: Inside X.php, you have some authentication code. Maybe something simple as: -Ben -Original Message- From: Benjamin Munoz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 4:20 PM To: 'Miles Thompson'; [EMAIL PROTECTED] Subject: RE: [PHP] How to keep un

RE: [PHP] MySQL - How to transfer a query resault into a variable?

2001-01-16 Thread Benjamin Munoz
http://www.php.net/manual/en/function.mysql-fetch-object.php Modified example from the manual above... user_id; $name = $row->name; // print them out if you want, or store them in an array to return if this is a function print ("$name\n"); } mysql_free_result ($result);

RE: [PHP] $row->user_id;

2001-01-16 Thread Benjamin Munoz
wing mean or should I ask how does it work? $row->user_id; Is it somehow relate to the following? $row["user_id"]; I tried to look for this in the manual but without any luck... perhaps I'm going blind ;) SED -----Original Message- From: Benjamin Munoz [mai

RE: [PHP] error message handling

2001-01-17 Thread Benjamin Munoz
You probably want to suppress the error message with an @ symbol. Try putting an "@" before the function calls that give you errors. This suppresses the error function. Many functions return FALSE if unsuccessful, so you can test and supply your own error message. If you find yourself d

RE: [PHP] Two things

2001-01-17 Thread Benjamin Munoz
Did you mean this? -Ben -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 11:52 AM To: Phil Labonte Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Two things > When I get a list of items from a database I would like to display them with >

RE: [PHP] Extracting Data from a URL output

2001-01-17 Thread Benjamin Munoz
// get a web page into an array and remove html // file() returns an array, which you can then loop through $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { // if preg_match the weather text you are looking for // preg_replace a

[PHP] Export to Spreadsheet Format

2001-01-23 Thread Benjamin Munoz
I want to run a query on a database and export the recordset to a spreadsheet, preferably Excel native. The box is on a Win32 OS, so I can instantiate a Excel COM object (similar to the PHPBuilder COM article), and use the COM methods to create an Excel file. Or, I can fopen and fput a CSV fo

RE: [PHP] Multiple Page Form

2001-01-23 Thread Benjamin Munoz
Make sure you are not forgetting to include $action as a hidden input, so your script can know how to process. , for example -Ben -Original Message- From: Jeremy Bowen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Multiple Page

RE: [PHP] Simple Questions

2001-05-08 Thread Benjamin Munoz
This is not working? echo("$server->server_num_players."/".$server->server_max_players "); If you are trying to print out 4/4 but can't because it is evaluating it mathematically, try using the HTML character entity for /, / echo("$server->server_num_players/$server->server_max_players"); Hop

RE: [PHP] sending attachments via mail(), possible?

2001-05-09 Thread Benjamin Munoz
There is a PHP class someone wrote called mime_mail that makes this easy. The resulting code using this class is something like: // create new mime_mail object instance $mail = new mime_mail; // set all data slots $mail->from= "[EMAIL PROTECTED]"; $mail->to = "[EMAIL PROTECTED]"; $m

RE: [PHP] manipulating files with php

2001-05-09 Thread Benjamin Munoz
There are a number of ways to do this. Mine is something like this: if (has_read_perm($user_id, $file_id)) { send_file_to_browser($file_id); } else { // print error message(); } ... function has_read_perm($user_id, $file_id) { // check db table // return true/f

[PHP] Post CGI variable to PHP

2002-01-10 Thread Benjamin Bostow
I am trying to pass variables from a CGI/Perl script to a php page. I know how to pass it through the url (i.e. page.php?tmp=[var1]&tmp2=[var2]) but need to know how to pass it so that the information does not show up in the url. Benjamin _

[PHP] CGI vs. ISAPI

2002-01-27 Thread Benjamin deRuyter
I'm fairly new to PHP, having worked with ColdFusion in the past. Can somebody shed some light on to the key differences between the CGI installation and the ISAPI installation. I working with IIS on Win2k and using MySQL for a db server. Thanks. - Ben -- PHP General Mailing List (http://w

[PHP] problems with mt_rand()

2002-01-31 Thread Benjamin deRuyter
I need to generate a random number (range is not crucial) and I have been trying to use mt_rand(). However, I am finding that is generates the same value EVERY time. This is true whether I supple a range or not. For example, the follow line of code generated 13 EVERY time... $result = mt_rand(

[PHP] redirection rather than include()

2002-01-31 Thread Benjamin deRuyter
This is a PHP newbie trying to figure something out. I am creating a web-app which begins with a login page and goes through the typical user/pass validation and upon success moves to a frameset where the application will run. The action of the login form is act_login.php. In that script I vali

[PHP] header() and frameset

2002-02-01 Thread Benjamin deRuyter
Does anybody know of a way to break out of a frameset while using the following code to redirect the browser: header("Location: http://www.anywhere.com/";); exit(); Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

RE: [PHP] odrer by alphabet

2001-12-03 Thread Smith, Benjamin
You can simply order by that field in your SQL string...ie: SELECT * FROM TABLENAME ORDER BY FIELDNAME; And to switch the order: SELECT * FROM TABLENAME ORDER BY FIELDNAME DESC; -Original Message- From: Rambo Amadeus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 4 December 2001 1:15 PM To

RE: [PHP] very urgent assistance

2001-12-05 Thread Smith, Benjamin
This would have to be the most bizarre spam I have ever read. -Original Message- From: Adewale.Johnson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 6 March 2001 6:18 PM To: [EMAIL PROTECTED] Subject: [PHP] very urgent assistance Dr.Adewale.Johnson. 16 Kingsway Road Ikoyi, Lagos Nigeria

RE: [PHP] Store locator / postcode proximity

2001-12-09 Thread Smith, Benjamin
I wouldn't trust a 10-above or 10-below rule, personally, unless you weren't too concerned about the accuracy of your information. Why don't you give Australia Post a call? -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Monday, 10 December 2001 10:22 AM To: '[EMA

[PHP] Re: PHP+MYSQL unable to select database

2001-12-10 Thread Benjamin Pflugmann
ook at the following section from the fine manual: http://www.mysql.com/doc/A/c/Access_denied.html If that doesn't help, don't forget to mention, what you already have tried. And please write only to one list at a time, the one which seems most appropriate. Thanks. Bye, Benjamin. PS:

RE: [PHP] PHPSESSID sticks to every link after upgrate of Apache/PHP

2001-04-08 Thread Benjamin Munoz
In your php.ini, change the following line: >session.use_trans_sid = 1 ; use transient sid support if enabled to >session.use_trans_sid = 0 ; use transient sid support if enabled And see if that solves your problem. Also, check the change with phpinfo(), and if nothing change

RE: [PHP] double byte problem

2001-04-08 Thread Benjamin Munoz
Can you send some code? -Original Message- From: Subhrajyoti Moitra [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 08, 2001 8:41 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] double byte problem hi, i am having a little problem in using php with double byte character.

RE: [PHP] Commercial sites that use PHP

2001-04-10 Thread Benjamin Munoz
Yahoo uses a lot of Python. Yahoo Mail pages have extensions of .py, indicating Python. Yahoo acquired eGroups and Google this past year, both of which openly use Python to generate pages. They most likely use Python in conjunction with other scripting and compiled languages. -Ben -Origi

RE: [PHP] Zip Code Locator?

2001-07-24 Thread Benjamin Bleything
Hey, let me know if you figure out what the extra numbers are for... I might have a use for this at some point. Ben >From: "Matthew Loff" <[EMAIL PROTECTED]> >To: "'Ben Bleything'" <[EMAIL PROTECTED]>, "'Vincent P. Cocciolone'" <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >Subject: RE: [PHP] Z

[PHP] Re: telnetty/phpy/unixy thing

2001-07-24 Thread Benjamin Bleything
Ahh! Excellent. Thanks for the tip! Ben >Date: Tue, 24 Jul 2001 16:39:56 -0700 (PDT) >From: Philip Hallstrom <[EMAIL PROTECTED]> >To: Ben Bleything <[EMAIL PROTECTED]> >cc: <[EMAIL PROTECTED]> >Subject: Re: telnetty/phpy/unixy thing >MIME-Version: 1.0 > >I don't remember the exact terms, but t

[PHP] Re: Can PHP and Java work together?

2001-08-31 Thread Benjamin Lupu
Jack, You can either check your text field with JavaScript before submitting your form or after on server-side with PHP. I prefer to use JavaScript because it saves a back and forth. here an example of that : http://1ppl.free.fr/scripts/javascript16.htm For the printing function, check that :

[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] 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] 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] 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

[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] 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] 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

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

[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

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-

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

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] 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

[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] 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] 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

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] 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

[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

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] 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

[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] 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] 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

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]>

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
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

[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

[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

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] 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

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] 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

[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] 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: 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] 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] 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] 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

[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] 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] 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] $_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

  1   2   >