[PHP] can php pretend to be a MSIE or Netscape?

2001-12-17 Thread Sebastian
hi all how do i prevent php from exposing itself when opening url with fopen() ? kann i make it look like MSIE or whatever? reaons : i want to query google by script but it does not allow that... Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] is there a way to get the content type with php

2002-02-01 Thread Sebastian
Hi all i have a skript that sends out various files after versifying tat the user is authenticated. can i determine the content type of a file with php? like using it on pdf and it return applicatin/pdf etc? Sebastian

[PHP] SQL Question

2002-03-28 Thread Sebastian A.
How do I sort out data from mysql_fetch_row() or mysql_fetch_array? For example say I wanted to list all my users alphabetically. How would I do this? Or say I had a form and I wanted to present the content to the user *AFTER* they have filled it out so that they can check for mistakes.

[PHP] anytext Question

2002-03-30 Thread Sebastian A.
I am trying to use anytext in an object but I am having a number of problems. anytext does not seem to work if it is indented. If I un-indent anytext and the text between it, it works perfectly. Does anyone know what could be causing this error? I can give you a sample of my code if it would

[PHP] Passing Values

2002-04-03 Thread Sebastian A.
Hello, Today I was working on an object that will create all of the columns and tables in my DataBase for my upcoming application. I however, did run into trouble. I am having problems because I cannot pass the name of the database from the form to the function that needs it. Everything

[PHP] Includes

2002-04-05 Thread Sebastian A.
Lately I have noticed many scripts that all consist of one file even though they create the appearance of many pages. For example, you would open setup.php and a form would appear. Then after you complete the form a new page appears with the results of your form, however the URL is still

[PHP] Writing to Files

2002-04-05 Thread Sebastian A.
Hey All, I have recently been trying to create some logs for the install script I have been making (to make it easier for me to diagnose problems) but I am wondering how to create and write to text files. I know about the fopen() and fwrite() functions, which theoretically should enable

RE: [PHP] How to convert a website to a txtfile....?

2002-04-06 Thread Sebastian A.
You can try using fopen() and fwrite(), they are the primary file manipulation tools you should use in this instance. -Original Message- From: Raymond Lilleodegard [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 06, 2002 5:52 PM To: [EMAIL PROTECTED] Subject: [PHP] How to convert a

[PHP] Formatting XML Data

2002-06-09 Thread Sebastian A.
Hello, I have been working with XML in the recent weeks and I have recently come across the need to format some of the data in my XML. For example I might have a large XML file and I would like some of the text to be bold, or maybe I would like to insert a hyper-link. Unfortunately it does not

[PHP] XML Problem

2002-06-30 Thread Sebastian A.
Hello, I am having some problems parsing XML with PHP. Here is an example of my problem: Example 1: PAGE TAG1 SOME TEXT /TAG1 /PAGE When I try to use the expat XML functions I cannot parse TAG1 in the above example. I simply get nothing. However with the

RE: [PHP] XML Problem

2002-06-30 Thread Sebastian A.
Message- From: Analysis Solutions [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 30, 2002 8:27 PM To: PHP List Subject: Re: [PHP] XML Problem On Sun, Jun 30, 2002 at 05:58:59PM +0200, Sebastian A. wrote: I am having some problems parsing XML with PHP. Here is an example of my problem

RE: [PHP] XML Problem

2002-07-01 Thread Sebastian A.
% certain about this process... Could you give me any advice? -Original Message- From: Analysis Solutions [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 6:26 AM To: PHP List Subject: Re: [PHP] XML Problem Sire: On Sun, Jun 30, 2002 at 10:21:40PM +0200, Sebastian A. wrote: Later

[PHP] XML Flatfile Database

2002-04-15 Thread Sebastian A.
Recently I have caught on to XML, and I think it truly is a good idea. Because XML was *made* to store data I believe an XML flatfile database is (perhaps) one of the best ways to store data because it can be easily exchanged. Therefore I would like to embark on the feat of trying to create

[PHP] Session Tutorial

2002-04-21 Thread Sebastian A.
Recently I have been trying to work with sessions however I must admit that I am not sure I completely understand them. Does anyone know of a good tutorial that thoroughly explains sessions? Thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP 4.2.0?

2002-04-22 Thread Sebastian A.
On PHP.net it says that version 4.2.0 of PHP is out, yet on the downloads page, I can only find 4.1.2. If anyone has PHP 4.2.0 can you please provide me the URL? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do i upgrade from PHP 4.1.2 to 4.2.0?

2002-04-23 Thread Sebastian A.
What do I have to do to upgrade from PHP 4.1.2 to 4.2.0? Do I just overwrite all the old PHP files with the new ones or must I do something else? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question and PHP DOMXML and Apache

2002-04-23 Thread Sebastian A.
Have the new DOM XML functions been included in the latest version of PHP (4.2) when I try to use one of the new functions, such as domxml_open_file() I get an error message saying I am calling and undefined function. Has anyone successfully used these new functions with PHP 4.2? My second

[PHP] DOM XML

2002-04-25 Thread Sebastian A.
Hello, I have been recently doing experiments with the DOM XML function and I am (not surprisingly) having some problems with it. When I try to run the code below, I get an error saying I am trying to use and endefined function. To me it seems that the DOM XML extension is working fine, because

[PHP] PHP-GTK Question

2002-05-01 Thread Sebastian A.
Hello, I have recently installed PHP-GTK with any problems, however I cannot get it to work. When I click on the php_win shortcut I get an error saying: Usage: php_win path to php-gtk script Does anyone know how I can fix this and run my PHP-GTK scripts? -- PHP General Mailing List

[PHP] Variables from XML Documents

2002-05-06 Thread Sebastian A.
Hello, I have recently been trying to use templates with XML documents. My problem however is that I cannot get the values between XML tags into variables. For example Example XML Document: me name Foo-Bar /name /me What would I need to do, so that I can get the

RE: [PHP] Variables from XML Documents

2002-05-06 Thread Sebastian A.
: Monday, May 06, 2002 8:25 PM To: PHP List Subject: Re: [PHP] Variables from XML Documents On Mon, May 06, 2002 at 08:20:46PM +0200, Sebastian A. wrote: me name Foo-Bar /name /me What would I need to do, so that I can get the contents of the name tag (Foo-Bar

[PHP] XML: Similiar Multiple Tags With Different Data

2002-05-12 Thread Sebastian A.
Hello I have recently been trying to parse an XML document that has different content in the same tags. Here is an example: LIST_ITEM1/LIST_ITEM LIST_ITEM2/LIST_ITEM LIST_ITEM3/LIST_ITEM ... I am trying to get the content from LIST_ITEM into an array. I want the content of the first LIST_ITEM

RE: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-13 Thread Sebastian A.
I tried your suggestion already but It doesn't seem to work. I still can get it to be assigned to different parts of the array. Do you have any other suggestions? -Original Message- From: Kjartan Mannes [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 12, 2002 11:10 PM To: Sebastian A. Cc

RE: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-14 Thread Sebastian A.
: Monday, May 13, 2002 10:04 PM To: PHP List Subject: Re: [PHP] XML: Similiar Multiple Tags With Different Data On Mon, May 13, 2002 at 05:49:04PM +0200, Sebastian A. wrote: function elementContent($parser, $data, $attrs='') { global $tag, $p; $ti = sizeof( $tag ) - 1

RE: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-15 Thread Sebastian A.
I hope I didn't sound impolite, I really didn't mean to offend you, because if it weren't for your tutorial I would probably still be trying to figure out how to parse attributes and get XML Content into variables. Anyway, the performance and efficiency doesn't really interest me at this point. I

RE: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-15 Thread Sebastian A.
, May 15, 2002 at 07:49:58PM +0200, Sebastian A. wrote: performance and efficiency doesn't really interest me at this point. I just want to get the thing working before I work on improving it. But your haste is making waste. Even funnier, in your haste, you're making more work for yourself

[PHP] Searching Many Text Documents

2002-05-29 Thread Sebastian A.
Hello, I recently have run into a situation where I must search through many text (XML) documents. I would like to implement a search feature on my site that can search through the XML documents I use for my pages. I will probably need to search all the files in a specific directory for

RE: [PHP] Searching Many Text Documents

2002-05-29 Thread Sebastian A.
Thanks a lot for this. I will try to implement this in my site. Does anyone have any other suggestions? -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 10:06 PM To: Sebastian A. Cc: PHP General List (PHP.NET) Subject: Re: [PHP] Searching Many

AW: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Sebastian
if user is authorized to get these files. sebastian -Ursprüngliche Nachricht- Von: George Pitcher [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 19. Oktober 2001 12:55 An: Arpad Tamas; [EMAIL PROTECTED] Betreff: Re: [PHP] Delivering NAMED pdf files Arpi, Thanks

AW: [PHP] I Need To Upload Massive Huge Files : 20Mb

2001-11-13 Thread Sebastian
Hi We encountere some problems with our Squid-Proxy. When we user direct internet connection the sky was the limit, but with our Proxy, the limit was 2MB... Sebastian -Ursprüngliche Nachricht- Von: The Big Roach [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 13. November 2001 17

[PHP] dynamically updating site

2005-05-12 Thread Sebastian
I looking for a way to update certain parts of a site that is highly dynamic. I've tried creating static files via cronjobs then including them, but it is a pain to do. for instance, i have a news page that utilizes mysql, rather than query the DB on each page load i would like to have it update

[PHP] searching tables

2005-05-23 Thread Sebastian
I'd like to know if it is possible to perform a search across multiple mysql tables within a single query. eg, i have two tables with different column names: news: title | newstext faqs: topic | faqstext currently i am just searching the news table with a query as such: SELECT *, MATCH

Re: [PHP] searching tables

2005-05-23 Thread Sebastian
I am quite aware of a mysql mailing list. I don't feel like joining another list, anyway, move along,.. I've already solved the problem without your help, but from others on this list. John Nichel wrote: Sebastian wrote: I'd like to know if it is possible to perform a search across

Re: [PHP] .INC files

2005-05-31 Thread Sebastian
they're usually used as includes, hence the INC part. files that have certain functions/classes that another script requires and people use them to split up the code. I don't and have never created .inc files.. all my files end in .php -- but that's just me. Martin Zvarik wrote: Hi, I

Re: [PHP] Quick q, most prolly 0T

2005-06-01 Thread Sebastian
you can do that with just an index.php file. say you have a directory called 'foo' with an index.php you can do something like this: if($_GET['a'] == 1) { echo 'blah'; } mysite.com/foo/index.php?a=1 would be the same as: mysite.com/foo/?a=1 Ryan A wrote: Hey, I noticed a site that is

[PHP] sanitizing get vars

2005-06-02 Thread Sebastian
what is a safe way to clean a post/get before echoing it. example. input form, user enters some text, hits enter. .. next page i echo what they entered. right now i just run the variables passed by htmlentities() which preseves any html. is that acceptable? -- PHP General Mailing List

Re: [PHP] Delay?

2005-06-02 Thread Sebastian
yea.. takes hours... sometimes 6+ or more. i dont post that much to the list for this reason.. if it stays like this i'll just unsubscribe.. its pointless... this is suppose to be E-mail, not post office mail. Jack Jackson wrote: Has anyone else noticed significant delays in messages

Re: [PHP] Mailing list delays

2005-06-02 Thread Sebastian
Thanks. *test* Rasmus Lerdorf wrote: We found a problem caused by a recent disk failure that wiped out a named pipe qmail needed. I am hoping the mailing list delays should be fixed now. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Mailing list delays

2005-06-02 Thread Sebastian
wow, got that in 20 seconds.. can we go for a record? ;) Sebastian wrote: Thanks. *test* Rasmus Lerdorf wrote: We found a problem caused by a recent disk failure that wiped out a named pipe qmail needed. I am hoping the mailing list delays should be fixed now. -Rasmus -- PHP

Re: [PHP] mozilla urlencode

2005-06-03 Thread Sebastian
i dont think having a + in an achor tag is standard.. but i could be wrong. John Taylor-Johnston wrote: I seem to have a problem with Mozilla or with IE? echo a name=\.urlencode($mydata-district).\/a; a name=Montr%E9al+District+%234/a

Re: [PHP] $date(l-m);

2005-06-04 Thread Sebastian
is it possible for $mydata-lastinsalled to have -MM-DD format? ie: 2004-05-31 you can use strtotime to convert it to unix timestamp to compare...something like this: $stamp = strtotime('2004-06-31'); // $mydata-lastinsalled if($stamp = strtotime('1 year ago')) { echo 'less than 1

[PHP] string highlight

2005-06-07 Thread Sebastian
i'm looking for a function that can highlight certain search terms in a string. anyone have something already made that i can plugin to my exisiting code? I found a couple but they do not work very well.. some break html code if the string contains the keywords in the html. thanks. -- PHP

Re: [PHP] Getting checkboxes as array

2005-06-09 Thread Sebastian
Don't forget to mention that even if you don't select a checkbox it will still add a empty record to the db.. i know for sure the foreach loop will add a record even if a box is not check, so you have to check its actually set before you start inserting. Richard Davey wrote: Hello jack,

Re: [PHP] Getting checkboxes as array

2005-06-09 Thread Sebastian
well, your trying to get the insert_id() without running the query first. so you have to add: mysql_query($query); before: $art_id = mysql_insert_id(); also, your foreach loop should be: foreach ($media_types as $type) (without the brackets []) i am assuming $media_types is an array

Re: [PHP] the BACKSLASH

2005-06-26 Thread Sebastian
backslash was invented for windows ;) Jochem Maas wrote: the backslash has caught us all out when we first started, and beyond. many 'noobs' have had the fortune of being explained, in depth, how and why concerning the backslash by a singular Richard Lynch ... but obviously nobody is immune

[PHP] ad management

2005-06-27 Thread Sebastian
i am looking for a simple ad management app to keep track of ad views/impressions. i was looking at phpadsnews, but it seems way too much bloat of what i need i to do. anyone know of a simple ad script to keep track of views/impressions? thanks. -- PHP General Mailing List

Re: [PHP] Re: MMcache question

2005-06-30 Thread Sebastian
you sound exactly like someone i know.. i enjoy reading your long posts.. no sarcasm ;-) i'd defently hire you, but you're probably too expensive ;-) Richard Lynch wrote: On Sat, June 25, 2005 3:37 am, Catalin Trifu said: No! You don't have to rewrite your application. What mmacache

Re: [PHP] Register globals and ini_set

2005-07-08 Thread Sebastian
if you have php = 4.2.3 yes, otherwise no. it has to be set in php.ini, .htaccess, or httpd.conf [EMAIL PROTECTED] wrote: Hi, If i use, at the beginning of my scripts, ini_set('register_globals', 0), register globals will be turned off? Thanks -- PHP General Mailing List

[PHP] max_file_size

2005-07-12 Thread Sebastian
Each time i try setting MAX_FILE_SIZE in a form and using the upload error code to check if the file is large it always uploads the entire file before showing the error that the file is too big.. either the manual is incorrect or this does not work as every method i've tried always waits for

Re: [PHP] max_file_size

2005-07-12 Thread Sebastian
Ahmed Saad wrote: hi Sebastain, On 7/12/05, Sebastian [EMAIL PROTECTED] wrote: yet it waits for file to upload before error. I've been using php for serveral years and i cant remember ever getting this to work like the manual states. Quoting the *php manual* The MAX_FILE_SIZE

Re: [PHP] Re: Tracking a mobile phone

2005-07-18 Thread Sebastian
The phone would have to have GPS capabilities.. Ethilien wrote: I think that would require tapping the cellphone network, which I doubt they would let you do since it be a major violation of privacy, because you could track the general location of anyone on their network. Thomas wrote: Hi

[PHP] define (true/false)

2005-07-27 Thread Sebastian
i never really used constants before so this may sound stupid.. when you define a constant using define() and want to return true/false is this logical: if($bars == 3) { define('BAR', 1); } then: if(BAR) { // bars is true } or should i need to do an else statement as well: if($bars

[PHP] allowing selected file types

2005-07-30 Thread Sebastian
i know i shouldn't rely on mime types for file verification but anyways.. I use application/zip which works fine on firefox and only allows zips.. however, on Internet explorer it doesn't work since IE returns application/x-zip-compressed for zips.. problem with this is it also allow rar

[PHP] dynamic two column table

2005-07-30 Thread Sebastian
i know how to break up db results into two tables but im having a hard problem with this: db structure --- | id | cid | title --- | 1 | 2 | hardware | 2 | 3 | software | 3 | 3 | software | 4 | 2 | hardware how can i have hardware on column 1 and software on

[PHP] array()

2005-08-01 Thread Sebastian
is it always necessary to call array() when you do something like this: mysql_query(SELECT ); while($rows .) { $data[] = $rows; } if so, why? i have a habit of never calling array() and someone told me i shouldn't do this. -- No virus found in this outgoing message. Checked by

[PHP] encrypting urls

2005-08-02 Thread Sebastian
i need to mask (hide) some vars in a url so they arent visible to the user. example, i want a url like this: page?id=3something=12more=12 to turn into: page?id=3;LyFU;MLFxvy so from LyFU i can access $something and from MLFxvy $more any ideas how i can do this? doesn't have to be 100%

Re: [PHP] Using File to count number of lines

2005-08-04 Thread Sebastian
you sure each is on its own line (\n) ? if you're only getting a value of 1 it is likely putting everything on a single array key.. Tom Chubb wrote: I'm having a problem with the following code: ?php $file = http://www.mysite.co.uk/mailing_list_database.list;; $lines =

Re: [PHP] Using File to count number of lines

2005-08-04 Thread Sebastian
wrote: When I open the list in notepad everything is on one line with a square box character. When I open it in wordpad, it's one email address on each line. On 04/08/05, Sebastian [EMAIL PROTECTED] wrote: you sure each is on its own line (\n) ? if you're only getting a value of 1 it is likely

Re: [PHP] Using File to count number of lines

2005-08-04 Thread Sebastian
sorry, i forgot to put file(); Sebastian wrote: do this: $file = 'http://www.mysite.co.uk/mailing_list_database.list'; echo 'pre'; print_r($file); echo '/pre'; im pretty sure you'll only see 1 key.. if each has its own line, you would see something like: Array ( [0] = foo [1] = foo

[PHP] strip out too many newlines

2005-08-04 Thread Sebastian
im working on a comment/forum app and when a user enters too many carriage returns i want to remove them before insert to db. example, user input: -snip- [quote=user] foo [/quote] bunch of extra lines more text... -snip- I to change to: [quote=user]foo[/quote] more

Re: [PHP] strip out too many newlines

2005-08-04 Thread Sebastian
, Sebastian [EMAIL PROTECTED] wrote: [quote=user] foo [/quote] bunch of extra lines more text... -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 8/3/2005 -- PHP General Mailing List (http

Re: [PHP] strip out too many newlines

2005-08-04 Thread Sebastian
really need to learn some regexp. Marco Tabini wrote: Try changing the \n* patterns to (?:\r?\n)* Cheers, Marco -- BeebleX - The PHP Search Engine http://beeblex.com On 8/4/05 10:39 AM, Sebastian [EMAIL PROTECTED] wrote: [quote=user] foo [/quote] bunch of extra lines more text

Re: [PHP] Return Path

2005-08-06 Thread Sebastian
try using -f mail($toemail, $subject, $message, $from, '-f [EMAIL PROTECTED]'); [EMAIL PROTECTED] wrote: I don't seem to be able to set the return path using the mail() function. I can't figure out why from will let me set it, but not the return path. $headers = 'From: [EMAIL PROTECTED]' .

Re: [PHP] Fast count of recordset in php...

2005-08-06 Thread Sebastian
, but Is that the only way to get a faster solution? /mr G @varupiraten.se - Original Message - From: Sebastian [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Sent: Saturday, August 06, 2005 11:08 PM Subject: Re: [PHP] Fast count of recordset in php... how many records in the table? its

[PHP] writing to file

2005-08-07 Thread Sebastian
i have this app where a user fills out a form and after submit it displays the values they entered. i want to save this info to a file after they submit, then allow them to download the file. some other user does the same, fills in the form and allow that person to download the file... and so

Re: [PHP] Generating a 404 status message with header()

2005-08-09 Thread Sebastian
Paul Waring wrote: On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote: Should it? Is it possible to write a doesexists.php script which would cause the 404 directive to be triggered? I also tried: header(Status: 404 Not Found); but this did not work either. Try searching the

Re: [PHP] Generating a 404 status message with header()

2005-08-09 Thread Sebastian
Jasper Bryant-Greene wrote: Sebastian wrote: Paul Waring wrote: On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote: Should it? Is it possible to write a doesexists.php script which would cause the 404 directive to be triggered? I also tried: header(Status: 404 Not Found

[PHP] graph - dowloads/hr

2005-08-09 Thread Sebastian
i'd like to create a graph with the amount of downloads per hour, i am a little confused how i should go about this. i know i can use rrdtool/mrtg, but im looking for more 'user friendly' graphs with custom colors,etc. each time someone downloads a file it is incremented in the db and the

Re: [PHP] graph - dowloads/hr

2005-08-09 Thread Sebastian
Philip Hallstrom wrote: i'd like to create a graph with the amount of downloads per hour, i am a little confused how i should go about this. i know i can use rrdtool/mrtg, but im looking for more 'user friendly' graphs with custom colors,etc. each time someone downloads a file it is

[PHP] force download

2005-08-10 Thread Sebastian
some of my users are complaining that when they try download media files (mp3, mpeg, etc) their media player opens and doesn't allow them to physically download the media. These are IE users, firefox seems to like my code, but IE refuses to download the file and plays it instead.. can anyone

Re: [PHP] force download

2005-08-10 Thread Sebastian
James R. wrote: That would be browser dependent, something you have no control over. Maybe you can include a little text message saying right-click save as for the users not intelligent enough to figure it out themselves. - Original Message - From: Sebastian [EMAIL PROTECTED

Re: [PHP] force download

2005-08-10 Thread Sebastian
James R. wrote: That would be browser dependent, something you have no control over. Maybe you can include a little text message saying right-click save as for the users not intelligent enough to figure it out themselves. - Original Message - From: Sebastian [EMAIL PROTECTED

Re: [PHP] force download

2005-08-10 Thread Sebastian
Richard Lynch wrote: On Wed, August 10, 2005 12:49 pm, Chris wrote: if ($extension != 'txt') { header(Content-disposition: inline; filename=\$file[type]\); } else { // force txt files to prevent XSS header(Content-disposition: attachment; filename=\$file[type]\); } The

Re: [PHP] graph - dowloads/hr

2005-08-11 Thread Sebastian
Richard Lynch wrote: On Tue, August 9, 2005 3:07 pm, Sebastian wrote: i'd like to create a graph with the amount of downloads per hour, i am a little confused how i should go about this. i know i can use rrdtool/mrtg, but im looking for more 'user friendly' graphs with custom colors,etc

Re: [PHP] Getting average down to 5

2005-08-11 Thread Sebastian
Ryan A wrote: Hey, Having a bit of a problem working out the logic to this one (its 5am now...), basically people vote on pics like hotornot.com, but here they vote on a scale of 1-5 (one being something like what was hit by a bus at birth and five being the person you will never have a

Re: [PHP] one more mysql question

2005-08-12 Thread Sebastian
[EMAIL PROTECTED] wrote: I tried this one: SELECT trans_no FROM orders WHERE trans_no IN ( SELECT trans_no FROM special_orders ) but gives me an error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near

Re: [PHP] one more mysql question

2005-08-12 Thread Sebastian
take what other say with a grain of salt.. im sure you're using php to pull info from mysql anyway.. the fact is without mysql php would be nowhere where it is today.. its like peanut butter w/o the jelly.. see my reply in the other email.. im sure it will work for you. [EMAIL PROTECTED]

Re: [PHP] 'God' has spoken... :-)

2005-08-13 Thread Sebastian
Jochem Maas wrote: if you haven't seen it yet and are interested in the future of php you might be interested in the _big_ thread on php-internals that starts with the message: http://www.manucorp.com/archives/internals/200508/msg00398.php IMHO every halfbaked php coder should read it ;-) to

Re: [PHP] 'God' has spoken... :-)

2005-08-13 Thread Sebastian
Matthew Weier O'Phinney wrote: * Sebastian [EMAIL PROTECTED] : why php6 and not php5? look how long it took to get to php4 (with php5 just starting to rolling out) and people are already talking about php6? My observation was that more people jumped to PHP4 from PHP3 than have so

Re: [PHP] one more mysql question

2005-08-13 Thread Sebastian
accepted I was wrong. I apologized. What do you want now? Sebastian wanted to help – in difference to you and John. Even it’s “wrong place”. I guess you would never stop and help to car in trouble on highway because you are IT or “it’s not your department”, ha? C’mon… It’s really not place

Re: [PHP] 'God' has spoken... :-)

2005-08-14 Thread Sebastian
Matthew Weier O'Phinney wrote: * Sebastian wrote: i spent hundreds of hours building my site on php4, im not about to rewrite any of it to make it 'compatible' with php5. Don't rewrite it to make it compatible with PHP5 -- rewrite it to take advantage of PHP5's better performance

Re: [PHP] 'God' has spoken... :-)

2005-08-14 Thread Sebastian
Greg Donald wrote: On 8/14/05, Sebastian [EMAIL PROTECTED] wrote: now if they say php5 is 20% faster than php4 than i would upgrade overnight ;) Who is 'they' ? Go write a benchmark and see for yourself. obviously coming from the developers.. i guess im more or less wanting

[PHP] which operating system?

2005-08-14 Thread Sebastian
I will be building a new server and wondering what would be a good choice for php/mysql/apache other than redhat. I was thinking either Debian or CentOS. can anyone share their thoughts on them for php environment? does anyone use them on high traffic php sites? or is there not a difference

[PHP] mysql query

2005-02-17 Thread Sebastian
Hello, im working on an article system and looking to avoid running three queries. example, i have this query: SELECT id,title FROM articles WHERE id=$_GET[id] now say $_GET[id] = 5 I would like to get the previous id 4 and the next id 6 (if there is one) so i can do something like: Previous

[PHP] uploading remote server

2005-02-22 Thread Sebastian
i have some php forms which uploads files/images and i would like to know if its possible to upload them to a remote server instead, if so, how? cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] http referer

2005-02-26 Thread Sebastian
ok, so i made a file manager and i need to prevent people from linking directly to files that do not come from another part of the site. i know i can use http_referer, but i wonder how fool proof it is, i dont want to spit out errors to a legit user that actually came from a valid page before

[PHP] comparison operator

2005-03-09 Thread Sebastian
i ran into this problem and i dont remember how i worked around it. if($_REQUEST['value'] == 1) { // do something } else if($_REQUEST['value'] == 0) { // do something } even if i don't do ?value=0 its always prints something.. i want to make an on/off value based on the value of the url.. 1

[PHP] mail()

2005-03-12 Thread Sebastian
Hi, it appears mail() stopped working on my server. i recall it worked previously. since i haven't used mail() in a while i dont recall when it stopped working. running php 4.3.10 php.ini is default path for send mail which is the correct path for the server.. anything else i should be looking

[PHP] see anything wrong (xhtml validator)

2005-03-20 Thread Sebastian
it seems the xhtml validator is throwing an error with: -- Line 530, column 12: value of attribute id invalid: 1 cannot start a name div id= 1 79 style=display: none; -- Here is the code:

[PHP] fwrite and sort

2005-03-21 Thread Sebastian
i have a form with checkboxes which after POST it writes to a file. i would like to allow the user to sort the selected checkbox filename in the order they want it written to file. so i was thinking creating an input text box where they can enter a number, then have it written to file in that

[PHP] hotlinking images

2005-03-31 Thread Sebastian
i have an issue with site linking directly to my images. the problem is these images are generated on the fly with php/gd -- they're generated each time its viewed because i have done some watermarking manipulation and didnt want to watermaker them in a static way. they're including the images

[PHP] threaded comments

2005-04-08 Thread Sebastian
i am developing a comment/discussion board and i want to display the results in a threaded style. so far i have it all working except this one issue: each row has an ID and a parentid, say i have 5 rows: id : 10 most oranges come from florida id : 16 Re: most oranges come from florida

Re: [PHP] threaded comments

2005-04-08 Thread Sebastian
, Sebastian said: i am developing a comment/discussion board and i want to display the results in a threaded style. so far i have it all working except this one issue: each row has an ID and a parentid, say i have 5 rows: id : 10 most oranges come from florida id : 16 Re: most

Re: [PHP] stripping of the last character

2005-04-18 Thread Sebastian
$recipients = '[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],'; echo str_replace(',', ', ', substr($recipients, 0, -1)); - Original Message - From: Ross [EMAIL PROTECTED] I have a large group of email addesses serperated by commas. I need to trim off the very last comma

[PHP] explode a string

2005-04-18 Thread Sebastian
$string = '4:gaming,5:hardware,3:software,8:security'; what is the best way to explode then loop this string after its taken apart. output should be something like: $id = 4 $cat = gaming etc.. im just looking for the best/fastest way to do this. the string can grow to 200 or so bytes, maybe

[PHP] foreach sorting

2005-04-19 Thread Sebastian
when the if statement is true how do i make it appear as the last record in the loop? $tabarray = array('/games' = 'Games', '/news' = 'News'); foreach ($tabarray AS $loc = $item) { if(strpos($loc, $_SERVER['REQUEST_URI']) !== false) { $tabmenulist .= 'td class=tabsela

[PHP] view zip file contents

2005-04-21 Thread Sebastian
does anyone know of a way to view the contents of a zip file and its directory structure? i know there are zip file functions in php but they require extra libs i would rather not load right now. i know its possible, at least by looking at this download manager that does this:

Re: [PHP] view zip file contents

2005-04-21 Thread Sebastian
No releases have been made yet. Philip Hallstrom wrote: does anyone know of a way to view the contents of a zip file and its directory structure? i know there are zip file functions in php but they require extra libs i would rather not load right now.

[PHP] mini CMS

2005-04-28 Thread Sebastian
im looking for a small tutorial/cms script without all the fluff. something to create pages (static preferably) doesn't even need an admin/user interface. i could write my own, but don't have the time at the moment. if anyone knows of such a small script let me know. cheers. -- PHP General

[PHP] making php go faster

2005-04-30 Thread Sebastian
i've been doing some reading on optimizing php for fastest performance. are there any benifts to configure php with: --enable-inline-optimization also running eAccelerator. these are my current options: --with-apache=../apache_1.3.33 \ --with-mysql=/usr/local/mysql \ --with-xml \ --with-gd \

  1   2   3   4   5   6   >