[PHP] phpMyAdmin

2002-08-21 Thread Steve Jackson
Is it possible to use phpMyAdmin to add new databases (not tables whole databases) to my website? I ask because currently my host has provided me with one database and I don't want to mix database tables when adding new features (such as shopping carts and bulletin boards)? I am new to MySQL and

Re: [PHP] phpMyAdmin

2002-08-21 Thread @ Edwin
All depends on your host and how phpMyAdmin was configured. It's better to ask them directly... - E Is it possible to use phpMyAdmin to add new databases (not tables whole databases) to my website? I ask because currently my host has provided me with one database and I don't want to mix

[PHP] still problems with register globals set to on

2002-08-21 Thread Andy
Hello everybody, I am still having problems to run php scripts inside a directory with register globals on. This is what I did put inside the httpd.conf file right after the Directory / close tag. Directory /home/www/oasis php_value register_globals on /Directory It does not change

RE: [PHP] phpMyAdmin

2002-08-21 Thread Michael Egan
Steve, I think it's fairly standard that hosts provide you with a single database. A suggestion made with earlier thread, which I follow, is simply to make sure you set up your tables with names that clearly identify their function to you. Michael Egan -Original Message- From: Steve

RE: [PHP] Sorting a multi-dimensional array

2002-08-21 Thread Michael Egan
Ben, I don't know whether this is the most efficient way of doing things but when I've tried in the past to sort multidimensional arrays according to a number of values I've ended up giving up on the PHP functions and creating a temporary table in MySQL. You can then retrieve the

[PHP] PHP IDEs

2002-08-21 Thread Michael Egan
I know similar threads have come up on this in the past but I suspect it's a constantly changing picture. I recently saw a favourable review of Zend Studio 2.5 but wondered, out of curiosity, what sort of tools people use to develop PHP scripts and MySQL databases, tables and queries. Up

Re: [PHP] still problems with register globals set to on

2002-08-21 Thread Tom Rogers
Hi, Wednesday, August 21, 2002, 5:34:35 PM, you wrote: A Hello everybody, A I am still having problems to run php scripts inside a directory with A register globals on. A This is what I did put inside the httpd.conf file right after the Directory / close tag. A Directory /home/www/oasis A

Re: [PHP] PHP IDEs

2002-08-21 Thread David T-G
Michael, et al -- ...and then Michael Egan said... % % I know similar threads have come up on this in the past but I suspect it's a constantly changing picture. ... % % Any thoughts? Yes. vim forever! It's all you need :-) OK, I admit that I'm interested in seeing what comes out...

[PHP] array_splice()

2002-08-21 Thread Riccardo Sepe
Hi evey1, sorry if I' ve already posted this : in order to remove a whole array of values from a multidimensional array I tried the following: foreach($bkmks as $val) { if($val[8]==$cod){

[PHP] Re: cURL and POST

2002-08-21 Thread lallous
even more, if you want to use curl... I remember that curl can take post data from an input file, so dump the $strXML to a temp file then supply that file to curl. good luck, Samantha Savvakis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... HI, I'm using the

[PHP] Apache 2 and PHP

2002-08-21 Thread Adrian Ciutureanu
At http://www.php.net/ChangeLog-4.php#4.2.0 there is a note (Note: Apache2 support is EXPERIMENTAL.) Is this note still justified for PHP/4.2.2? Is it about security? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] still problems with register globals set to on

2002-08-21 Thread Andy
thanx tom, but this doen not seem to have anything to do with it. Regards, Andy Tom Rogers [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Wednesday, August 21, 2002, 5:34:35 PM, you wrote: A Hello everybody, A I am still having problems to run

[PHP] search in serialized string

2002-08-21 Thread Rodrigo Peres
Hi list, I have a form to post resumes. In one parte the user have a option to choose up to 5 languages and his knowledge in it. example : english: basic advanced My problem is that was stored serialized in the BD and now I need to do a search by language and knowledge. How can I do this.

[PHP] Image library

2002-08-21 Thread Scott Houseman
Hi there. Which way would be the most efficient/fastest to access images from an image library. A) Store image files in a hash directory structure AND storing each file's information in a mysql table OR B) Storing image information in mysql table AND storing the image in a BLOB field in that

[PHP] Simple Security Clarification

2002-08-21 Thread Andre Dubuc
In another thread [How do you protect individual files], Justin French stated: In real short, you want to store the files outside your htdocs root (so they can't be served by http) . . . My PHP setup serves files from DOCUMENT_ROOT=/var/www/html. If I place files in '/var/www/html/secure'

[PHP] Code for off-site Maintenance?

2002-08-21 Thread Andre Dubuc
Soon, I will be transferring my site to go on-line with my IP. Since I've never managed anything off-site, I have a very fundamental question: What are the usual procedures with respect to maintaining a site, that is, accessing the PostgreSQL database for corrections, deletions, etc? One idea

Re: [PHP] Re: halloween documents

2002-08-21 Thread David T-G
Steve -- ...and then Steve Mallett said... % % A plea for help % % Would anyone be willing to code the Halloween Documents so we could % print them as PDF files % % http://opensource.org/halloween/ While I don't particularly see what this has to do with php, I also wonder what sort

Re: [PHP] Simple Security Clarification

2002-08-21 Thread John Wards
Andre Doc root = http://www.yoursite.com/ '/var/www/html/secure' = http://www.yoursite.com/secure/ So its not secure You could use .htaccess files but I am not that clued up on them John - Original Message - From: Andre Dubuc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday,

RE: [PHP] Simple Security Clarification

2002-08-21 Thread Jay Blanchard
[snip] In another thread [How do you protect individual files], Justin French stated: In real short, you want to store the files outside your htdocs root (so they can't be served by http) . . . My PHP setup serves files from DOCUMENT_ROOT=/var/www/html. If I place files in

Re: [PHP] Simple Security Clarification

2002-08-21 Thread Stas Maximov
Outside would be in '/var/www/secure' in your case. Or any other place your scripts have access to, save under '/var/www/html/'. HTH, Stas - Original Message - From: Andre Dubuc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 21, 2002 1:11 PM Subject: [PHP] Simple

Re: [PHP] still problems with register globals set to on

2002-08-21 Thread Rasmus Lerdorf
Are you sure you are editing the right httpd.conf file first of all? Put an obvious syntax error in there, such as misspelling Directory in that tag and see if you get an error. If so, make sure that this Directory block is not inside some other tag, or overridden by a second Directory block

[PHP] Garbage Collection?

2002-08-21 Thread Vehbi Sinan Tunalioglu
Hi everybody, Is there any requirement to free variables in php, or is there any garbage collection or built-in module that terminates unused variables? (Especially for arrays and class instances)... Have a nice day... Vehbi Sinan Tunalioglu -- PHP General Mailing List

Re: [PHP] Garbage Collection?

2002-08-21 Thread Rasmus Lerdorf
Hi everybody, Is there any requirement to free variables in php, or is there any garbage collection or built-in module that terminates unused variables? (Especially for arrays and class instances)... Garbage collection is automatic in PHP. When you do: $a = 123; $a = 456; Then the memory

[PHP] Re: Image library

2002-08-21 Thread Bogdan Stancescu
The answer I would give at this moment would be a variant of your A) version where the hash directories would further contain directories limited to, say 300 images. Found it out after a painfully slow experience with MySQL blobs. I did not however implement this solution yet (still using the

Re: [PHP] array_splice()

2002-08-21 Thread Bas Jobsen
$test=array('a'=1,'b'=2,'c'=3); foreach ($test as $key=$value) { if ($value==2) unset($test[$key]); } or $test=array('a'=1,'b'=2,'c'=3); $i=0; foreach ($test as $key=$value) { if ($value==2) array_splice($test,$i,1); $i++; } Op woensdag 21 augustus 2002 12:17, schreef u:

RE: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread Mike At Spy
Get this - it didn't work! :( I tried decreasing the -1 to -2 and so on, but nothing on that either. :( -Mike -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 12:45 PM To: Mike At Spy Cc: [EMAIL PROTECTED] Subject: Re: [PHP]

[PHP] Re: Code for off-site Maintenance?

2002-08-21 Thread Kondwani Spike Mkandawire
Andre Dubuc [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Soon, I will be transferring my site to go on-line with my IP. Since I've never managed anything off-site, I have a very fundamental question: What are the usual procedures with respect to maintaining

Re: [PHP] Code for off-site Maintenance?

2002-08-21 Thread David T-G
Andre, et al -- ...and then Andre Dubuc said... % % Soon, I will be transferring my site to go on-line with my IP. Since I've % never managed anything off-site, I have a very fundamental question: % % What are the usual procedures with respect to maintaining a site, that is, % accessing the

[PHP] fscanf - string format - clear discription

2002-08-21 Thread Harry.de
where can i find a discription of the possible options for the sting format in the fscanf command [ fscanf ( int handle, string format [, string var1]) ] For example, what means: %s\t or %s\n in the command fscanf ($fp, %s\t%s\t%s\n); -- PHP General Mailing List

[PHP] Re: fscanf - string format - clear discription

2002-08-21 Thread l0t3k
here's some info. in reading, keep in mind that PHP's implementation is mostly ANSI compatible. http://www.neosoft.com/neosoft/man/scanf.3.html Harry.De [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... where can i find a discription of the possible options for

Re: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread Jason Wong
On Wednesday 21 August 2002 20:36, Mike At Spy wrote: Get this - it didn't work! :( I tried decreasing the -1 to -2 and so on, but nothing on that either. :( Post your exact code which didn't work. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re[2]: [PHP] still problems with register globals set to on

2002-08-21 Thread Tom Rogers
Hi, Wednesday, August 21, 2002, 9:32:43 PM, you wrote: A thanx tom, but this doen not seem to have anything to do with it. A Regards, A Andy A Tom Rogers [EMAIL PROTECTED] schrieb im Newsbeitrag A [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Wednesday, August 21, 2002, 5:34:35 PM,

Re[3]: [PHP] still problems with register globals set to on

2002-08-21 Thread Tom Rogers
Hi, Wednesday, August 21, 2002, 10:53:48 PM, you wrote: TR Hi, TR Wednesday, August 21, 2002, 9:32:43 PM, you wrote: A thanx tom, but this doen not seem to have anything to do with it. A Regards, A Andy A Tom Rogers [EMAIL PROTECTED] schrieb im Newsbeitrag A [EMAIL PROTECTED]">news:[EMAIL

RE: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread Mike At Spy
Here is the complete code - I have a lot of prints to watch things as they happen. $whois is the result of a WHOIS search. // beginning of my stuff function get_date ($whois){ trim ($whois); $whoisarray = explode (\n, $whois); print_r(array_values ($whoisarray)); $total_elements = count

Re: [PHP] Code for off-site Maintenance?

2002-08-21 Thread Justin French
I'm usually weeks, or month ahead of myself. The code I have in my local environment is looking forward towards knew features, new ideas, etc etc. Every week or two I grab a mirror of the online database (or I could connect straight to it of course), and WHEN new code is ready to upload, I do it

[PHP] Best way to check for some certain text in a string

2002-08-21 Thread José Jeria
I want to find a certain text in a string and i want it to return me a boolean. What is the best thing to do this? a) ereg(search for this, $string);// returns int(1) if true, bool(false) if not b) strpos($nav-userAgent, search for this) 0// gives me a boolean

Re: [PHP] Image library

2002-08-21 Thread Justin French
on 21/08/02 9:45 PM, Scott Houseman ([EMAIL PROTECTED]) wrote: Which way would be the most efficient/fastest to access images from an image library. A) Store image files in a hash directory structure AND storing each file's information in a mysql table OR B) Storing image information in

Re: [PHP] PHP IDEs

2002-08-21 Thread Jaski
Even I would be very interested to know what every one out there uses for these. I use PhpMyAdmin for creating tables. Textpad for coding. Jaski On Wed, 21 Aug 2002 Michael Egan wrote : I know similar threads have come up on this in the past but I suspect it's a constantly changing picture.

Re: [PHP] Simple Security Clarification

2002-08-21 Thread Justin French
If you can't store stuff ABOVE your doc root, you can protect them with a .htaccess file. I use this to refuse all *.inc files from being served: Files ~ \.inc$ Order Allow,Deny Deny from all /Files With this in mind, a quick visit to the Apache site should get you started in the right

Re: [PHP] Simple Security Clarification

2002-08-21 Thread Andre Dubuc
On Wednesday 21 August 2002 08:15 am, Jay Blanchard wrote: [snip] In another thread [How do you protect individual files], Justin French stated: In real short, you want to store the files outside your htdocs root (so they can't be served by http) . . . My PHP setup serves files from

Re: [PHP] PHP IDEs

2002-08-21 Thread John Wards
I use Zend Studio 2.5 it is very time saveing as it prompts me for variables i have used before classws and function i have used before etc even if they are in an include file. The projects feature is very usefull as I have two major projects at the moment and I can easily switch between then and

RE: [PHP] Image library

2002-08-21 Thread Scott Houseman
Hi all. This confirms what I suspected. The hash algrithm: I have a directory structure: dirs 0 - f, and within each of these, the same dir structure 0 - f. When an image gets uploaded into the library, do an md5sum of the file, take the first 2 chars of that hash and there's your path. e.g

[PHP] PHP/SQL - inserting into database null results

2002-08-21 Thread news
I am a new person to PHP. I have purchased and read PHP fast easy by Julie Meloni and have also read the 24 hours PHP book. I am able to connect to the SQL database and insert into the database via my html form. However, the values are null. When I look at the data in my database, it reads

RE: [PHP] Simple Security Clarification

2002-08-21 Thread Jay Blanchard
[snip] It's becoming clearer. But one question concerning: the path could be hacked, but if there is a requirement to login to that folder (because of .htaccess directives) then the hacker will still have to come up with appropriate authentication. Since all sensitive files on my site require

Re: [PHP] Code for off-site Maintenance?

2002-08-21 Thread Andre Dubuc
Thanks Justin, A web-based control panel content management system seems like a nice invitation to enter 'Hackers' Paradise'. I like the idea of doing it at home and testing, as you do. Something inside of me squirms at the idea of the whole shebang being tatooed by a hacker. Regards, Andre

RE: [PHP] Image library

2002-08-21 Thread Michael Hazelden
I did something like this a while ago ... and while it might not be the best solution - here's my situation and my solution: I had a number of photos (just shy of 1000) ... all were from various theatre shows ... taken at a different time of the process (rehearsal ... performance etc). So - I

[PHP] PHP Site Mirror

2002-08-21 Thread Jay Blanchard
Can someone give me a URL for a php.net mirror? I am having trouble with access... Thanks! Jay *** * Texas PHP Developers Conf Spring 2003 * * T Bar M Resort Conference Center * * New Braunfels,

Re: [PHP] Image library

2002-08-21 Thread Bogdan Stancescu
I've seen this kind of random approach several times and I keep wondering why not counting the files instead. Yes, it may take a little longer when uploading but I personally think the safety of the approach is worth the insignificant speed sacrifice. Bogdan Scott Houseman wrote: Hi all.

[PHP] Re: PHP Site Mirror

2002-08-21 Thread Bogdan Stancescu
Seems to be down - I can't reach it either. Bogdan Jay Blanchard wrote: Can someone give me a URL for a php.net mirror? I am having trouble with access... Thanks! Jay *** * Texas PHP Developers Conf Spring 2003

[PHP] mysql_query() ERROR

2002-08-21 Thread Fifield, Mike
This is a query that I am sending to mysql. The problem is that sometimes in the variable $message characters like ) will get posted and when they do it makes mysql die. I can only assume that mysql thinks that the ) in the $message variable is meant to close the sql query, but I am having

[PHP] Re: Best way to check for some certain text in a string

2002-08-21 Thread Bogdan Stancescu
If you don't need regexps, use strpos. Make sure you read the documentation though - if $nav-userAgent starts with search for this, your code will return false. Bogdan José Jeria wrote: I want to find a certain text in a string and i want it to return me a boolean. What is the best thing

[PHP] Re: PHP Site Mirror

2002-08-21 Thread Peter Bottenberg
http://uk.php.net http://nl.php.net Just checked them, and they are online Bogdan Stancescu [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Seems to be down - I can't reach it either. Bogdan Jay Blanchard wrote: Can someone give me a URL for a php.net

Re: [PHP] PHP Site Mirror

2002-08-21 Thread @ Edwin
Try this Jay, http://us.php.net/mirrors.php (A mirror PLUS a list of mirrors...) - E Can someone give me a URL for a php.net mirror? I am having trouble with access... Thanks! Jay *** * Texas PHP Developers Conf Spring 2003

[PHP] Re: mysql_query() ERROR

2002-08-21 Thread Bogdan Stancescu
It's not the ) characters, it's the quotes - make sure you addslashes() to all the variables. Also make sure you don't double-slash - depending on your php.ini settings, PHP may automatically slash incoming variables. Bogdan Mike Fifield wrote: This is a query that I am sending to mysql.

RE: [PHP] mysql_query() ERROR

2002-08-21 Thread Jay Blanchard
[snip] This is a query that I am sending to mysql. The problem is that sometimes in the variable $message characters like ) will get posted and when they do it makes mysql die. I can only assume that mysql thinks that the ) in the $message variable is meant to close the sql query, but I am having

[PHP] Re: Best way to check for some certain text in a string

2002-08-21 Thread José Jeria
Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If you don't need regexps, use strpos. Make sure you read the Can you give me any particular reason why strpos is better? documentation though - if $nav-userAgent starts with search for this,

RE: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread Rasmus Lerdorf
Well, do a strlen() on it to see how long it actually is. I bet you have all sorts of stuff trailing that thing. Or you are just making some other really silly mistake. -Rasmus On Wed, 21 Aug 2002, Mike At Spy wrote: Get this - it didn't work! :( I tried decreasing the -1 to -2 and so

Re: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread DL Neil
Mike, What are the character codes of the last few bytes in the string? Please advise, =dn - Original Message - From: Mike At Spy [EMAIL PROTECTED] To: Rasmus Lerdorf [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, August 21, 2002 1:36 PM Subject: RE: [PHP] Agh! trim

RE: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread Darren Gamble
Good day, Well, for one, you are discarding the results of trim(). Check out the online manual page for trim(). The trim'ed string is returned. It does not say it modifies the string it is passed. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630

Re: [PHP] Image library

2002-08-21 Thread DL Neil
Scott (confirming Bogdan), Libraries of all types have had this concern for years - even though books are uniquely identified by ISBN, that is still not good enough for library purposes (eg multiple copies of a single title). So they, exactly as Bogdan suggests, use an Accession number sequence

[PHP] Re: Best way to check for some certain text in a string

2002-08-21 Thread Bogdan Stancescu
José Jeria wrote: Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If you don't need regexps, use strpos. Make sure you read the Can you give me any particular reason why strpos is better? http://php.weblogs.com/discuss/msgReader$1838

[PHP] Exiting from an include or required file

2002-08-21 Thread Henry
Hi All, I would like to exit from an include file and continue in the calling script! As an example FILE A: ?php if (empty($_POST['search_criteria')) { echo You must provide search criteria; // exit the include file here But how? } echo You have provided serach criteria; ? FILE B

Re: [PHP] patch for sablotron

2002-08-21 Thread Geoff
I finally was able to compile/install php with xslt extensions. You have to apply the patch for Sablotron first then configure, make, su make install then apply the php patch, configure, make, su make install I applied the patches as follows: patch original file patch file for more options do

RE: [PHP] Image library

2002-08-21 Thread Scott Houseman
Hi there. So what you are suggesting is using an AUTO_INCREMENT field, possibly the image's Primary Key as an identifier for that image file., which is fine by me, but surely one should store files across directories, as 1 images in a single directory might slow down access to those images

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Bas Jobsen
Do: FILE A: ?php if (empty($_POST['search_criteria')) { echo You must provide search criteria; // exit the include file here But how? } else { echo You have provided serach criteria; } ? Op woensdag 21 augustus 2002 16:39, schreef Henry: Hi All, I would like to exit from

RE: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread Mike At Spy
But isn't taking off characters or spaces considered modifying a string? I'll take another look at the manual, thanks. -Mike -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:32 AM To: 'Mike At Spy'; [EMAIL PROTECTED] Subject:

RE: [PHP] Exiting from an include or required file

2002-08-21 Thread Roedel, Mark
Seems like the easy way, at least in this case, would be to make the second part of your File A an else to your if. ?php if (empty($_POST['search_criteria'])) { echo You must provide search criteria; } else { echo You provided search criteria; } --- Mark Roedel

Re: [PHP] Code for off-site Maintenance?

2002-08-21 Thread Martin Clifford
Good comments made by all, no doubts. Something said by Justin though, sticks out above the rest. I strongly recommend to everyone to never, EVER edit or manipulate LIVE code! I know we're all good at what we do, but accidents happen (perhaps you didn't specify a WHERE clause in your delete

RE: [PHP] Exiting from an include or required file

2002-08-21 Thread M . A . Bond
Or just do a return(); ?php if (empty($_POST['search_criteria'])) { echo You must provide search criteria; return; } -Original Message- From: Roedel, Mark [mailto:[EMAIL PROTECTED]] Sent: 21 August 2002 15:48 To: Henry; php-general Subject:

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Henry
Thanks, but my situation is slight more convoluted than I describe. I want to cascade down through a include chain and want to just stop processing the current include and return to the one which called it. Similar to exit() but only for the local scope. TIA Henry Mark Roedel [EMAIL

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Henry
Thanks return thats it! I hadn't appreciated that include was a function! I keep thinking like a C/C++ programmer, must stop. Punishment is 8 lines of include is not a pre-processor directive. include is not a pre-processor directive include is not a pre-processor directive include is not a

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Joseph W. Goff
You will have to enclose the code is some form of a container. i.e. a function, while loop... I would probably use the function, then you could exit with return The other types of container would use break. - Original Message - From: Henry [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] unable to lookup host [1001] error

2002-08-21 Thread David Buerer
Anyone ever seen this error before? What causes it? It happens on a call to socket_bind after a successful call to socket_listen. Any ideas would be appreciated. Warning: socket_bind() unable to lookup host [1001]: Recursion too deep, stack overflowed. in

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Joseph W. Goff
Actually, M.A.Bond is right, you don't even have to enclose it, just use the return construct. - Original Message - From: Joseph W. Goff [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED]; Henry [EMAIL PROTECTED] Sent: Wednesday, August 21, 2002 10:03 AM Subject: Re: [PHP] Exiting from

RE: [PHP] How Do You Protect Individual Files

2002-08-21 Thread Roger Lewis
On Wednesday 21 August 2002 10:54, Roger Lewis wrote: I did, but like I said, I couldn't find much. Maybe I wasn't using the correct key words. There is a lot about protecting php and html files but not much on other, non-php files in external directories. There is some discussion about

Re: [PHP] PHP IDEs

2002-08-21 Thread Peter J. Schoenster
On 21 Aug 2002 at 8:55, Michael Egan wrote: I know similar threads have come up on this in the past but I suspect it's a constantly changing picture. I recently saw a favourable review of Zend Studio 2.5 but wondered, out of curiosity, what sort of tools people use to develop PHP scripts

[PHP] PHP Web site down?

2002-08-21 Thread Adam Williams
Is it just me having network connectivity problems, or is the PHP website, http://www.php.net down? I tried connecting to it from a couple of difference computers and I can't access it on any of them. Just wondering if anyone else is having problems getting to their website too.

[PHP] PHP and Windows Active Directory...

2002-08-21 Thread Glenn Sieb
I know that *ahem* theoretically Active Directory uses LDAP... has anyone had any luck getting PHP to talk to Active Directory? Basically I'd like to fool around with a webpage for a corporate directory based on AD entries... if anyone has had any luck with this, I'd appreciate it :))) As

Re: [PHP] Image library

2002-08-21 Thread DL Neil
Hi Scott, Yes I am suggesting the naming of the image file by ascending number (at least in part - our Sony digicam produces files named DSCn.JPG). The danger of generating a filename by hash is that collisions are always possible. Moving to an 'accession number' removes that threat. The

Re: [PHP] PHP Web site down?

2002-08-21 Thread DL Neil
Is it just me having network connectivity problems, or is the PHP website, http://www.php.net down? I tried connecting to it from a couple of difference computers and I can't access it on any of them. Just wondering if anyone else is having problems getting to their website too. Adam, It

RE: [PHP] Image library

2002-08-21 Thread Jay Blanchard
[snip] ... but surely one should store files across directories, as 1 images in a single directory might slow down access to those images in the filesystem, or not so? [/snip] Not really. The server really does not care where the files are and no performance would be lost. Jay

Re: [PHP] PHP Web site down?

2002-08-21 Thread Adam Williams
Thanks! Silly me, I'm always forgetting about the mirror sites ;) Adam On Wed, 21 Aug 2002, DL Neil wrote: Is it just me having network connectivity problems, or is the PHP website, http://www.php.net down? I tried connecting to it from a couple of difference

Re: [PHP] PHP/SQL - inserting into database null results

2002-08-21 Thread Tom Rogers
Hi, Wednesday, August 21, 2002, 11:25:30 PM, you wrote: n I am a new person to PHP. I have purchased and read PHP fast easy by n Julie Meloni and have also read the 24 hours PHP book. I am able to connect n to the SQL database and insert into the database via my html form. However, n the

Re: [PHP] Best way to check for some certain text in a string

2002-08-21 Thread Tom Rogers
Hi, Wednesday, August 21, 2002, 11:22:36 PM, you wrote: JJ I want to find a certain text in a string and i want it to return me a JJ boolean. JJ What is the best thing to do this? JJ a) ereg(search for this, $string);// returns JJ int(1) if true, bool(false) if not

Re: [PHP] PHP Web site down?

2002-08-21 Thread Kondwani Spike Mkandawire
It seemed to be down... Earlier in the morning I had trouble getting onto it... Its alright now though, it may have been traffic or some minor stuff... Spike... Adam Williams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks! Silly me, I'm always

Re: [PHP] PHP Web site down?

2002-08-21 Thread DL Neil
General advice: take a look in the bottom right corner of any manual page and call for the mirrors list - it's worth bookmarking/favoriting a couple, just in case one goes down. Also FYI, mirror sites are often faster (depending upon relative locations) and their use certainly frees bandwidth at

Re: [PHP] Image library

2002-08-21 Thread Jason Wong
On Thursday 22 August 2002 00:35, Jay Blanchard wrote: [snip] ... but surely one should store files across directories, as 1 images in a single directory might slow down access to those images in the filesystem, or not so? [/snip] Not really. The server really does not care where the

Re: [PHP] Image library

2002-08-21 Thread DL Neil
Having a large number of files in a single directory does affect performance, the degree of which depends on the filesystem. This is generally accepted wisdom for dealing with large numbers of files - but what number is considered large? Any rules of thumb, for different OpSys/file systems?

RE: [PHP] PHP and Windows Active Directory...

2002-08-21 Thread Roedel, Mark
-Original Message- From: Glenn Sieb [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 11:30 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Windows Active Directory... I know that *ahem* theoretically Active Directory uses LDAP... has anyone had any luck getting PHP

[PHP] Re: Image library

2002-08-21 Thread Philip Hallstrom
Lots of good ideas. One other thing to consider when designing this is the possibility of multiple web server accessing a single database server. If you use the file system method which assumes that the web/db are on the same server as soon as you want to have multiple web servers you'll run

RE: [PHP] Image library

2002-08-21 Thread Jay Blanchard
[snip] Having a large number of files in a single directory does affect performance, the degree of which depends on the filesystem. This is generally accepted wisdom for dealing with large numbers of files - but what number is considered large? Any rules of thumb, for different OpSys/file

RE: [PHP] unable to lookup host [1001] error

2002-08-21 Thread David Buerer
Here is the code per your request ?php //includes include('common.phpi'); include('constants.phpi'); // defaults... define('MAXLINE', 1024);// how much to read from a socket at a time define('LISTENQ', 10); // listening queue $PORT = 1482; // the default port

[PHP] Passing variables between servers

2002-08-21 Thread Mark McCulligh
I have two server. One running PHP/Linux the other running ASP/2000. The user logins into the PHP server and session variables are made to hold their username, password, department, etc.. The site from time to time redirect the user to the ASP server. I want to pass the session variable across

Re: [PHP] Passing variables between servers

2002-08-21 Thread Adam Williams
Just suggestion but why not use md5($password) and then send the result of that in your GET? Adam On Wed, 21 Aug 2002, Mark McCulligh wrote: I have two server. One running PHP/Linux the other running ASP/2000. The user logins into the PHP server and session variables

Re: [PHP] Passing variables between servers

2002-08-21 Thread Mark McCulligh
I thought about encrypting the whole querystring then decrypting it on the other server, but I wanted to keep the address bar clean. I wanted the user not to know they just got passed. If all a sudden there was a lot of data in the address bar they will wonder what it is for. Mark.

RE: [PHP] Passing variables between servers

2002-08-21 Thread Daniel Masson
Hi !! I know you said you cont want to use cookies ... I suggest that place encrypted data in a cookie and in the win2000 machine place a php script that read the data in the cookie, uncryptit and some how set the info for the asp script, a plain text file or something ... I hope this is

RE: [PHP] Passing variables between servers

2002-08-21 Thread Jay Blanchard
[snip] I thought about encrypting the whole querystring then decrypting it on the other server, but I wanted to keep the address bar clean. I wanted the user not to know they just got passed. If all a sudden there was a lot of data in the address bar they will wonder what it is for. [/snip]

[PHP] Calendar logic question

2002-08-21 Thread Matt Schroebel
I have a calendar application that shows events in a month. I want to add the ability to have re-occuring events. I've been thinking about how to do that, but it's not seeming to be too easy. Say, I have a table of re-occuring events: eventId int eventName varchar eventStartDate date

Re: [PHP] Passing variables between servers

2002-08-21 Thread Seairth Jacobs
MD5 is a one-way hash. There is no way to get information back out of it. If he keeps a copy of the hash locally to comare instead of the original password, this is still as vulnerable as using the original password in this case. The only thing it would protect from is making available the

[PHP] Re: Passing variables between servers

2002-08-21 Thread Seairth Jacobs
Is there any reason to pass the data to the ASP server other than the need for the ASP server to pass it back in case the PHP server session has expired? If not, why not just store the login information in a local table referencable by a primary key that you pass around instead? You could even

  1   2   >