Re: [PHP] changing endianness

2002-12-12 Thread David Rice
On Thursday, December 12, 2002, at 03:10 PM, Marek Kilimajer wrote: Does anyone know a way to change endianness of a binary string? Hi Marek: You might look at pack() and unpack(). http://www.php.net/manual/en/function.pack.php Perhaps one of the options for unpack? HTH David -- PHP

[PHP] PHP/MySQL Interaction

2002-12-12 Thread David Freeman
Hi All This is probably off-topic here and my only real excuse is that after having searched google as well as both php and mysql sites/manuals I'm no closer to an answer for something I'd like to get solved this morning... I have two database tables (mysql). One contains information about image

[PHP] Re: Showing 10 record items per page...?

2002-12-17 Thread David Eisenhart
check out: http://www.phpfreaks.com/tutorials/43/0.php David Eisenhart "Föíö Öxî?êójînyóon" <[EMAIL PROTECTED]> wrote in message 047d01c2a5ba$0b7bd480$c900640a@gandalf">news:047d01c2a5ba$0b7bd480$c900640a@gandalf... I need to be able to show maybe 10 items that I que

[PHP] Re: Inserting tab delimited textfiles into mysql

2002-12-19 Thread David Eisenhart
I recommend that you check out phpMyAdmin http://www.phpmyadmin.net/ David "Thomas Goeminne" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I got a tab delimited file which looks like this: > > let us call it items.txt &

Re: [PHP] dropping the resource fork

2002-12-22 Thread David Rice
loaded via HTML form, if it is text, perhaps in PHP you could look for \r or \n and make sure that the UNIX line ending is there - not sure which MacOS 9 uses. HTH somewhat. David Would it be efficient to strip the resource fork with PHP? Has anyone written anything to deal with this? If not

Re: [PHP] Sorry, really stupid question...

2002-12-28 Thread David Rice
Hi Phil: It probably does what you are asking it to do. Have you checked the value of $nickname to see if you are setting it to "bob" or appending "bob" to it? i.e first time $nickname = "phil" second time $nickname = "philbob" HTH David On Saturday, Dec

RE: [PHP] Date fields

2002-12-28 Thread David Freeman
G'day Peter > I have a form with several date fields. I want to be able to > set these by selecting from a calendar display. Does anyone > know of any php function or code which would let me do this? If you mean having some sort of pop-up calendar display that the user can select a date from

[PHP] Arrays of strings from regex

2002-12-31 Thread David Pratt
Am working through document to collect pieces that match and then insert them into an array so they can be used to construct another file. Looking in my doc for lines like this: {\*\cs43 \additive \sbasedon10 db_edition;} {\*\cs44 \additive \sbasedon10 db_editor;} {\*\cs45 \additive \sbasedon10

RE: [PHP] Running PHP on Windows OS

2002-12-31 Thread David Freeman
> So, there is something in the new security of XP and Win 2K > SP 3 that > does not let the dll load and run. Ever since I loaded SP 3 > I have had > problems - like many others! Don't know about Win2k as I haven't tried it but Apache/PHP/MySQL is working perfectly well on my Win XP laptop

Re: [PHP] Who can tell me the best php-base webmail?

2003-01-02 Thread David Yee
Joskey- Squirrel Mail is pretty good- www.squirrelmail.org David - Original Message - From: <[EMAIL PROTECTED]> To: "PHP Mail List" <[EMAIL PROTECTED]> Sent: Monday, December 02, 2002 4:30 AM Subject: [PHP] Who can tell me the best php-base webmail? > Than

Re: [PHP] How to give parameters to a console php-script?

2003-01-02 Thread David Yee
Martin- the command line switches are stored in the $_SERVER['argv'] array. E.g. php -q myscript.php4 1000 The value of $_SERVER['argv'][1] in the myscript.php4 script would be 1000. David - Original Message - From: "Martin Thoma" <[EMAIL PROTECT

[PHP] Variables that persist through reload?

2003-01-03 Thread David Chamberlin
Hey, I'm somewhat new to PHP and I'm doing a lot of forms stuff. Looking at some of the examples at: http://www.linuxguruz.org/z.php?id=33 The variables seem to persist through a reload. For example, the first demo has: if (!isset($pick)) { echo "Fill out and submit the form below.";

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread David Chamberlin
turned on in php.ini. You can either set the value = on or access posted values by using $_POST or $HTTP_POST_VARS depending on your version of php. - Original Message ----- From: "David Chamberlin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003

[PHP] One more form question

2003-01-03 Thread David Chamberlin
OK, last one was answered quickly and successfully (thank you!), so here's another one. Is there an easy way to set something in a select list to be selected? Right now I'm doing a real brute-force method. e.g., echo ""; $choices = array( 'pub' => 'On Public Page', 'members' => 'Only on

[PHP] PHP post size question

2003-01-03 Thread David Jeffress
till gives me a "413 Error - Request Entity Too Large." Are there any other settings that I need to look at in order to make this work? All of the other basic settings are in place (IE, file_uploads = on etc) Any help would be greatly appreciated. Thanks, David M. Jeffress [EM

Re: [PHP] Recommend payment processors?

2003-01-04 Thread David McInnis
I use authorize.net with curl as well. It works great. There are tutorials on http://www.phpbuilder.net on how to set this up. David - Original Message - From: "Jonathan Rosenberg (Tabby's Place)" <[EMAIL PROTECTED]> To: "Chad Day" <[EMAIL PROTECTED]

RE: [PHP] Re: PHP and MySQL bug

2003-01-05 Thread David Freeman
> @MYSQL_QUERY("UPDATE d SET h='$h' WHERE id='$id'"); // this > query doesn't work Personally, I'd call it bad programming practice to do a database update and not check to see if it worked or not. In this case, how are you determining that the query did not work? Are you manually checkin

RE: [PHP] array help please

2003-01-05 Thread David Freeman
> $mysql query1 > result > array[cityid][cityname] > > mysql query2 > result > array[cityid][cityname] > > now what i want to do is kick out any doubles in my array > and resort them alphebetically by cityname ?! It's difficult to answer this question without knowing more about the cont

RE: [PHP] Months of the year

2003-01-06 Thread David Freeman
> How do I create a drop down list that automatically > generates a list of months for the next 12 months upto and including this month This would do it... $month_name\n"; } else { echo " $month_name\n"; } } ?> -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Unable to run any PHP script with WinXP/IIS. Please help.

2003-01-06 Thread David Scott
When attempting to run any PHP script, I get the message: Unknown(): Cannot open 'C:\WINDOWS\system32\inetsrv' for reading And then I get the windows error message: PHP Script Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience. Any ideas here? -- PHP

[PHP] Re: Unable to run any PHP script with WinXP/IIS. Please help.

2003-01-06 Thread David Scott
Eh, nevermind on this one. I uninstalled PHP and then reinstalled it. I am no longer getting this error. I have another problem now that I will mention in a new post. "David Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Whe

[PHP] No input file specified. Please help.

2003-01-06 Thread David Scott
I am running this file from a tutorial: Something Useful Tutorial When this file is run from my webserver (IIS) I get a page that says: No input file specified. What can I do to get this working? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Re: PHP vs. ASP

2003-01-06 Thread David Eisenhart
this is addressed in quite a few dedicated articles in php sites. For me some of the big pros of PHP: - the active community behind it - associated open source products (such as phpMyAdmin and the Smarty template engine) - the ease and power behind coupling it with MySQL databases (ASP has of cour

[PHP] Forwarding POST info from a PHP script

2003-01-07 Thread David Barrett
I want to be able to retrieve POST variable in one PHP script (which is straight-forward) and then send these from the script to another one returning the processed input. I have written a script that will parse a frames-based page and render it as a flat page (i.e. all frames displayed as a table

[PHP] Re: Forwarding POST info from a PHP script

2003-01-07 Thread David Barrett
d all the POST (or GET... but that is easy) data received by my script onwards to another. Does this make more sense? "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Could be an issue on the webserver if PHP has register_

Re: [PHP] Re: Forwarding POST info from a PHP script

2003-01-07 Thread David Barrett
ution that wouldn't need to repost anything. If I am missing something, please elaborate. Thanks! "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > David Barrett wrote: > > >Think you may have mi

Re: [PHP] Forwarding POST info from a PHP script

2003-01-07 Thread David Barrett
nother frame window what the variables are > while this one is still visible, you can use javascript to send variables to > other frames. That is out of the scope of this message and I'd have to look > up the syntax for that, but it is definitely possible. > > > > Larry S.

Re: [PHP] Re: Databases vs. File Access

2003-01-09 Thread David Eisenhart
to add another cent to Timothy's contribution I agree, check out Smarty (http://smarty.php.net/) for the templating. D "Timothy Hitchens )" <[EMAIL PROTECTED]> wrote in message 000801c2b7ab$837eefa0$0500a8c0@bambino">news:000801c2b7ab$837eefa0$0500a8c0@bambino... > My 2 cents would be use a

[PHP] Re: Converting Excel Spreadsheet to MySQL table ...

2003-01-10 Thread David Eisenhart
as a 'one off' exercise I recently did something similar except the data was from Access, but would work the same from an excel file:- saved as a CSV file and then used phpMyAdmin to import the CSV file data into a MySQL table (of course, didn't have to use phpMyAdmin for this but it did make the i

[PHP] Re: Medium to Large PHP Application Design

2003-01-10 Thread David Eisenhart
> I'm looking for online > references, personal experience and opinion and even examples of open > source code which you think demonstrate the above criteria on this one. I have found the Smarty template engine (http://smarty.php.net/) to be a most excellent tool for separating business logic and

RE: [PHP] Deleting rows from a table with autoincrement. . .

2003-01-10 Thread David Freeman
> My question is this: is it possible to use > autoincrement to generate > the id's and still keep them sequential when I delete say, > item 3 of 5. Generally speaking, an auto-increment column will not fill gaps and keep sequential orders. Your choice, basically, is to write your code

[PHP] Re: E-mail redirection....?

2003-01-10 Thread David Chamberlin
You might see if your server is running procmail. If it is, then you can have your .procmailrc file auto-generated from PHP, and then procmail will do all the forwarding for you. The procmail recipe will be pretty simple for what you want (e.g.,) # user_id -> [EMAIL PROTECTED] :0 * ^TO([EMAIL

[PHP] Re: Template tutorials?

2003-01-11 Thread David Eisenhart
Check out the Smarty tutorial links page from it's site resources section - http://smarty.php.net/resources.php?category=0 Also the Smarty manual is excellent - very comprehensive and well written. I just about taught myself Smarty using this alone. I think Smarty is the absolute biz when it com

[PHP] strip php tags from code ?

2003-01-12 Thread David D
I only want to keep html code of a page. I want to remove php tags. Some tell that strip_tags is not adapted. sample of what i want to do: na -> na php tags can be : or or /i Merci. . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

RE: [PHP] forms

2003-01-13 Thread David Freeman
G'day CJ > This is really a html more than a php question. Yep, it probably is... > Is it possible to have two buttons and have different > actions for each button in the same form? Yep, you can. When you process your form in php you'll find that you have either $first_submit_act

[PHP] PHP receiving e-mail

2003-01-14 Thread David Russell
assumption would be that there should be a class out there somewhere that handles it well. Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com smime.p7s Description: application/pkcs7

Re: [PHP] Gridwidget - javascript

2003-01-17 Thread David Rice
Hi: I believe that if you reference the form element like: document.forms['mycell[]'].value you will get what you want. HTH David On Friday, January 17, 2003, at 08:33 PM, Nico Jansen - NiRo IT Consultants B.V. wrote: Hi all, I'm trying to write a grid widget in php. When t

[PHP] Recommended freeware guestbook?

2003-01-19 Thread David Chamberlin
Hey, Anybody have a php-based guestbook that they like and can be freely downloaded? Don't need anything really fancy, just for a personal website. Easy-to-use, and not hard to integrate into the site would be bonuses (mysql not a problem). I've looked around, and there's a bunch out there -

RE: [PHP] Which country?

2003-01-20 Thread David Freeman
> Is there a way to get to know from which country a user is > calling the webside with my php-script? Probably only if you're going to ask them to tell you what country they are in. You can look at the resolved domain that they are coming from and it's country code - this might be indicative

RE: [PHP] Which country?

2003-01-20 Thread David Freeman
> You could rely somewhat of the time zone codes as you refer > to them, the > only issue is in some parts of the world > this would include 10 countries at a time. But what time zone are you getting? The time zone of the browser? The time zone of the proxy cache that's in a possibly differ

RE: [PHP] $_POST vars problem

2003-01-20 Thread David Freeman
> On another note, I have found that if I include (and use) > the submit button > everything works perfectly, HOWEVER if I just enter data and > hit return then it messes up. You could try including a hidden submit field like this: For name="submit" change that to whatever name your norm

RE: [PHP] Time code!!!

2003-01-20 Thread David Freeman
Hi Karl First up, would you mind posting your messages in plain text instead of html format? It's just a courtesy to the rest of us. > does anyone have the code to where i can have the time > printed on my home page like for example > > Monday, January 19, 2003 Sure, check out the date() fu

RE: [PHP] A way to break up the string????

2003-01-29 Thread David Freeman
G'day Scott > Just curious, is there a PHP function that will break up the > string for us? I'm not specifically having a go at you but more observing that some people use this list as a first line of question rather than doing some work themselves. Assuming that I didn't already know what fu

RE: [PHP] if (a == b) ...

2003-01-29 Thread David Freeman
> I have a conditional: > if (a == b) > > a is the number 0, but b is a string "Friday August 22". > > The condition is evaluating as true, which is not what I want. > What am I misunderstanding? You're comparing a string to a number perhaps? I tried this: -8<- $a = 0; $b = "Frid

[PHP] php as shell script

2003-01-30 Thread David H
Hi, I am trying to run php as shell script. I have this: helloworld.php: I run php helloworld.php then I got this: Hello World. Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0 I am using Redhat 8, anyone knows what is the problem is? Thanks, David

Re: [PHP] File upload problem

2003-02-01 Thread David Rice
On Saturday, February 1, 2003, at 10:58 AM, Tomator wrote: I tried but I can't upload any file. My form and code are as following: Try looking at: http://www.php.net/manual/en/features.file-upload.php There is a working example there. -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] using tags with php

2003-02-01 Thread David Freeman
> i want to set up a form that will load values from a table > and make them the > "value" of the edit box... then when people press an update > button then all > of the stuff that changes from the record already in the table gets > changed... anybody know how to make it where you can get th

RE: [PHP] using tags with php

2003-02-01 Thread David Freeman
> i am having a problem using tags by using current > values kept in a mysql table. how do you get the values out of the table and > into a form so they show as the value= part of the tag? Start by making a basic test: "; ?> or you could try this: Either should work. Rinse and repe

FW: [PHP] help with script!!!

2003-02-02 Thread David Freeman
> echo("| %s | %s | %s | %s | %s |", $array[id], > $array[username], > $array[password], $array[status], $array[notes]); If you look at http://www.php.net/echo you'll see that echo does not support this syntax. If you want to use this syntax then you should probably be using some form of print

Re: [PHP] question

2003-02-02 Thread David Rice
Karl: Your question appears to be completely off-topic but perhaps this might help you. http://www.gotquestions.com/xs/seeDocument.asp?topicID=14&documentID=696 On Saturday, February 1, 2003, at 03:56 PM, Karl James wrote:   IncrediMail -

RE: [PHP] question

2003-02-02 Thread David Freeman
Karl, > what is a winmail.dat file? Is it too much to ask that you do some of this sort of thing for yourself? Here, I'll help you... 1. Connect to the Internet (if necessary) 2. Load a web browser 3. Navigate to http://www.google.com/ 4. Type "what is a winmail.dat file" into the search b

[PHP] Re: how to write clean code.

2003-02-03 Thread David Eisenhart
Another template engine you could consider is Smarty http://smarty.php.net/. One can write very elegant code using such an templating system david > > it is also good idea to separate html from the code, for instance by using > some template engine. > > rush -- PHP Gener

[PHP] Re: best oop book

2003-02-06 Thread David Eisenhart
article The Object-Oriented Evolution of PHP at http://www.devx.com/webdev/Article/10007/0/page/1 David "Edward Peloke" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok, > > I have seen a suggestion or two for oop books but I w

[PHP] Re: 3 tier web development

2003-02-07 Thread David Eisenhart
You may be interested in the article: Using PHP to Develop Three-Tier Architecture Applications (http://www.zend.com/zend/tut/tutsweatpart1.php) David Eisenhart. "Hardik Doshi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Ev

[PHP] Re: Static functions

2003-02-09 Thread David Eisenhart
yes, you can call a static method on a class by specifying the class name, then 2 colons and finally the function name: classname :: functionname([arg,.]) (of course properties can not be accessed by such methods) David Eisenhart "Leo Spalteholz" <[EMAIL PROTECTED]>

[PHP] Re: Static functions

2003-02-09 Thread David Eisenhart
you may find the following link interesting http://www.tek271.com/articles/JavaOrPhp.html David Eisenhart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File upload problem

2003-02-09 Thread David Rice
Hi John: Well actually I believe that you don't have to set MAX_FILE_SIZE...(I don't) but you might want make sure that you are not trying to send a file larger than the post_max_size directives in php.ini and ensure that file_uploads is set to allow http uploads. On Sunday, February 9, 2003, a

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread David Eisenhart
t respects though ... David Eisenhart "Joshua Moore-Oliva" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The only thing I do wish is that there was a way to force php into a typecast > mode... and possibly a setting to reqiu

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread David Eisenhart
"Chris Hayes" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 23:09 9-2-2003, you wrote: > >you may find the following link interesting > >http://www.tek271.com/articles/JavaOrPhp.html > > > >David Eisenha

Re: [PHP] Re: Static functions

2003-02-09 Thread David Eisenhart
pleasure Leo, happy php'ing !! "Leo Spalteholz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ah! thank you very much. Thats exactly what I was looking for. > > Leo > > On February 9, 2003 01:49 pm, David Eis

Re: [PHP] Re: Static functions (java/php)

2003-02-10 Thread David Eisenhart
> > On February 9, 2003 06:38 pm, David Eisenhart wrote: > > yeh, I'd agree with this; on your second issue of variable definitions I do > > find that being able set the error reporting level to show non critical > > errors (such as undefined variables) to be a reaso

[PHP] Re: Why use XML?

2003-02-11 Thread David Eisenhart
stances this is preferable to using xml stylesheets) David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] File upload???

2003-02-11 Thread David Freeman
> Can anybody help me with file uploading, again... Have you tried using the fairly simple example that is given at http://www.php.net/manual/en/features.file-upload.php yet? I've found that starting with this example and then adding all the extras tends to work well when you've got problems.

[PHP] Re: Why use XML?

2003-02-12 Thread David Eisenhart
ith the very comprehensive manual and an active, well supported email list) > If > you have more knowledge regarding XML+XSL then it not a great deal a this stage, but they are clearly worth looking into. - Original Message - From: "Hardik Doshi" <[EMAIL PROTECTED]> To: &

RE: [PHP] restricting access to files using PHP

2003-02-12 Thread David Freeman
> i've written a secure PHP login script which will allow > users to login to a > directory such as this: > > smezone.com/members/index.php > > however, how do I restrict people from accessing HTML files in that > directory (which they can easily do so by typing the URL into their > brows

[PHP] Re: Login system using PHP/MySql

2003-02-14 Thread David Eisenhart
ndy sitting there on the desk while you work. Sorry - not the quick fix solution you request but one that'll help in the longer term. David "Yc Nyon" <[EMAIL PROTECTED]> wrote in message 01c2d434$f8be3c80$5340ba66@gis">news:01c2d434$f8be3c80$5340ba66@gis...

Re: [PHP] Templates

2003-02-14 Thread David Eisenhart
yeh, I'd totally agree with this. Smarty is fantastic The best one imho in PHP is Smarty. > I'd rank it up there with Template::Toolkit. Take a look: > > http://smarty.php.net/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] recursion?????

2003-02-14 Thread David Freeman
> What I want to do is have the registration form, on submit, check the > data validity right then, if there is an error, redisplay > the form with an * next to the field that is incorrect. This is the code logic rather than the actual working code: ---Start of PHP Page--- 1. Check for form h

RE: [PHP] Date formating

2003-02-15 Thread David Freeman
> I have a string in this format: > 2003-02-15 13:19:02 > > I want to display it in a more readable format like > Staurday, 11 Februardy, > 2003, 13:19:02. How can I achieve that. I tried date() > function but could > not get what I wanted. The date format above is a standard mysql date/t

RE: [PHP] Re: recursion?????

2003-02-15 Thread David Freeman
> as a general rule of thumb, try to do as much > checking as you can with > JavaScript. For those checks such as "is the field a valid > date", "is > the field numeric" and so on, it is much faster to check on > the client, > than to send the data back to the server and check

[PHP] htDig on PHP pages

2003-02-16 Thread David McInnis
the date recorded in the database when the document / record was added and NOT the date/time that PHP generates the document. I am hoping that I can pass a date / timestamp in the header. Any ideas? Or did I confuse everyone. David McInnis -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: .htpasswd and PayPal generated passwords

2003-02-16 Thread David Duong
Try http://www.php.net/md5. Use md5 to encrypt the password, then when you need to check from login just encrypt what is given, and see if this matches the md5 found in the database. - David "Rob Packer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMA

[PHP] Re: .htpasswd and PayPal generated passwords

2003-02-16 Thread David Duong
btw - What do you mean by paypal generated passwords? I am interested in using PayPal as an alternative to my current credit card handler. Just a link is appreciated. - David "Rob Packer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

[PHP] How do I set UID and GID to files.

2003-02-16 Thread David Duong
See topic. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] register_globals On

2003-02-17 Thread David Eisenhart
yeh, I'd strongly agree with Jonathan's view that quality of the code can mitigate against the dangers of register_globals. FYI, an interesting article on php vulnerabilities is at: http://www.securereality.com.au/studyinscarlet.txt David Eisenhart "Jonathan Pitcher" <[

Re: [PHP] internal site search

2003-02-18 Thread David Otton
On Tue, 18 Feb 2003 13:35:14 +, you wrote: > i wanna make an internal site search, i wanna search my internal html >pages and php pages..and i have no clue how to do thatany help!!! Choices 1. Embed a Google search that only searches within your site. Eg http://www.google.com/searc

Re: [PHP] internal site search

2003-02-18 Thread David Otton
On Tue, 18 Feb 2003 14:19:16 +, you wrote: >On Tue, 18 Feb 2003 13:35:14 +, you wrote: > >> i wanna make an internal site search, i wanna search my internal html >>pages and php pages..and i have no clue how to do thatany help!!! > >Choices > >1. Embed a Google search that only se

Re: [PHP] php.ini question.....

2003-02-18 Thread David Otton
On Tue, 18 Feb 2003 17:38:28 +0100, you wrote: >At last I got safe-mode turned off (Gott sei dank!). But I'm still having a >problem. I can only read Mysql DBs. I can not open a DB to update. You have to connect to MySQL with a username and password. First check that the user you're connectin

Re: [PHP] MySQL DB Schema

2003-02-18 Thread David Otton
On Tue, 18 Feb 2003 09:23:52 -0800, you wrote: >Greetings all, > >Is there an easy way to pull out the schema of a MySQL for viewing?? You want the tables and the relationships between them? Not easy to get the links because of the lack of foreign keys in MySQL. If you want a table, "DESC tablen

Re: [PHP] escaping quotes for redisplay

2003-02-18 Thread David Otton
On Tue, 18 Feb 2003 13:10:33 -0500, you wrote: > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] NULL character help

2003-02-18 Thread David Otton
On Tue, 18 Feb 2003 16:02:59 -0500, you wrote: >http://www.psikon.com/vartest.php >http://www.psikon.com/vartest.phps > >how can I get rid of that null character or am I forced to use sub_str in >this case? You changed the string to be "abcd\0f" on line 8. You didn't remove the character, you set

[PHP] security issues on shared servers

2003-02-18 Thread David Feldman
hey purchased Web space at the same company I did) to have access to it. Is there any way, short of a dedicated server or a wholesale switch to another server-side language, to avoid these problems? Thanks. --Dave ---- -- Da

Re: [PHP] security issues on shared servers

2003-02-19 Thread David Feldman
introduced into a large multi user environment, switching programming languages would not alleviate these security issues. On Tue, 2003-02-18 at 15:49, David Feldman wrote: I run a PHP-based Web site hosted on a shared UNIX server provided by a pretty standard Web hosting company -- as I imagine

Re: [PHP] online tutorial

2003-02-19 Thread David Feldman
I originally learned PHP from the section in O'Reilly's book, Webmaster in a Nutshell. I did have extensive prior programming experience though. Since then, the PHP online manual has been more than sufficient. --Dave On Wednesday, February 19, 2003, at 07:10 AM, Awlad Hussain wrote: http://www

Re: [PHP] is it possible to retrieve email from HOTMAIL

2003-02-19 Thread David Otton
On Wed, 19 Feb 2003 12:57:42 +, you wrote: > >I wonder if it is possible to retrieve emails from an email account >say in hotmail, yahoo, or any other email provider. > http://people.freenet.de/courierdave/ http://httpmail.sourceforge.net/ http://www.geocities.com/ballarke/Projects/HttpMail/H

Re: [PHP] Recursion with database tables

2003-02-19 Thread David Otton
On Wed, 19 Feb 2003 13:56:49 +, you wrote: >One questions though - if I delete a topic, I need to delete all of its >child messages and all of the child comments from each message. What is >the best technique to do this? This has been driving me up the wall as >it seems to involve some kind

Re: [PHP] security issues on shared servers

2003-02-19 Thread David Feldman
to/include/file.php"; works fine, but include "include/file.php" doesn't. I don't see anything in the docs about this...what's going on? Thanks again, --Dave On Wednesday, February 19, 2003, at 08:03 AM, David Feldman wrote: Thanks. Looks like a properly configu

Re: [PHP] Recursion with database tables

2003-02-19 Thread David Otton
On Wed, 19 Feb 2003 14:16:47 +, you wrote: >>Otherwise, yes, in MySQL you have to recurse down the tree deleting >>comments. >How would I go about recursing down the tree? Has anyone done this before? I have, but it's been a while. Something like (pseudo-code) . def delete_comments(a) :

[PHP] safe mode not working

2003-02-19 Thread David Feldman
I've enabled safe mode on my local test server, but it doesn't seem to be working. If I run a script owned by one user (me), and within it include (using include()) another script or file owned by another user, the include is successful, whereas it shouldn't be in safe mode. I can verify throug

Re: [PHP] Find IP address

2003-02-19 Thread David Otton
On Wed, 19 Feb 2003 14:59:27 +0100, you wrote: >I'd like when a customer fill in a form to recover his IP address, is there >a PHP function to do that ? echo ($_SERVER["REMOTE_ADDR"]); Be warned: This is NOT a reliable way to identify a user. These days you are probably /more/ likely to get the

[PHP] sending uploaded images as mail attachments

2003-02-19 Thread David Feldman
I'm working on a script that allows the user to upload several images, then base64 encodes them and attaches them to an email to me. I'm having trouble getting the images readable on the other end. I've managed to get all the MIME types and message parts straight enough to be recognized as sepa

[PHP] Re: sending uploaded images as mail attachments

2003-02-19 Thread David Feldman
t 12:29 PM, Philip Hallstrom wrote: http://www.phpguru.org/mime.mail.html makes it pretty easy. On Wed, 19 Feb 2003, David Feldman wrote: I'm working on a script that allows the user to upload several images, then base64 encodes them and attaches them to an email to me. I'm having

[PHP] safe mode on Mac OS X?

2003-02-19 Thread David Feldman
pany's PHP installation (though safe_mode is set to Off there). Does anyone know if safe_mode works in this binary OS X install of PHP? Do I need to compile my own? Thanks, --Dave ---- -- David A. Feldman User Interface D

[PHP] smarty vs. patTemplate vs. includes - newbie q

2003-02-19 Thread David Caplan
Hi, I'm designing a site with about 100 different pages. I'm debating whether to use a template mechanism such as smarty or patTemplate vs just creating pages and including the body templates based on the url parameters. I realize you get a layer of abstraction using the template mechanisms, but w

Re: [PHP] Can I do this? header("Content-type: text/rtf");

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 03:42:14 -0500, you wrote: >I'm using PHP & MySQL to generate a RTF document. I use this header: > >header("Content-type: text/rtf"); > >Of course, the header scares the poor browser. The browser bawks and says, unknown >file type, and instructs the browser to save the file. >

Re: [PHP] Encrypted URL links?

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 06:20:26 -0500, you wrote: >Is there a way to encrypt a URL that will still work when clicked on, BUT >not show the customer where the file actually resides? It's not possible to "encrypt a URL" and leave it readable. URLs are plaintext. >Is it also possible to have it expir

Re: [PHP] Can I do this? header("Content-type: text/rtf");

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 03:42:14 -0500, you wrote: >I'm using PHP & MySQL to generate a RTF document. I use this header: > >header("Content-type: text/rtf"); Sorry, I should have mentioned header("Content-Disposition: attachment; filename=myfile.rtf"); as well. Rather easier :) -- PHP General Ma

Re: [PHP] server side including

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 14:41:09 +0100, you wrote: >Im have a "script.php" which needs to be able to tell if it has been >included in an .shtml file or not... > >e.g. if included is true: do this, else: do something else > >I could ofcourse do something like this: > > > >but it would be nice to totall

Re: [PHP] List folder contents with links?

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 11:33:19 -0500, you wrote: >Is it possible to display the contents of a given folder, list them , and >make them links? http://www.php.net/manual/en/function.readdir.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php and mysql

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 17:44:51 +, you wrote: >When using a php script to pull recorda from a db how can I cut the records >at 1/4 of the total and arrange them alaphabetically according to a certain >field? Thanks in advance. http://www.mysql.com/doc/en/SELECT.html LIMIT and ORDER BY. This

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