Re: [PHP] Text messaging from the web

2010-10-14 Thread Sebastian Detert
for php sms on google and got several tutorials and informations. Just give it a try. Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Text messaging from the web

2010-10-14 Thread Sebastian Detert
Larry Martell schrieb: On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster pa...@quillandmouse.com wrote: Folks: Being fairly geezerly, I know almost nothing about this, so be gentle. Assuming someone entered information in a form on a website. Normally, you would email the responses to

Re: [PHP] Text messaging from the web

2010-10-14 Thread Sebastian Detert
Larry Martell schrieb: On Thu, Oct 14, 2010 at 10:01 AM, Sebastian Detert php-maill...@elygor.de wrote: Larry Martell schrieb: On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster pa...@quillandmouse.com wrote: Folks: Being fairly geezerly, I know almost nothing about this, so be gentle

Re: [PHP] Array / form processing

2010-10-08 Thread Sebastian Detert
() { return $this - gift; } } using $_SESSION['life_coaching_order'][] = new Order(); foreach ( $_SESSION['life_coaching_order'] as $order ) { switch ( $order - getGift() ) case ORDER_GIFT: break; case ORDER_PERSONAL: break; } I hope that will help you, Sebastian http

Re: [PHP] PHP and HBCI?

2010-10-08 Thread Sebastian Detert
Do you have any specifications for HBCI interfaces? Socket connection, XML Exchange, DB Access ? If you have C code for such things, it should be possible to convert this to php code maybe Stephan Ebelt schrieb: On Fri, Oct 08, 2010 at 01:50:12PM +0100, a...@ashleysheridan.co.uk wrote:

Re: [PHP] Need to check pdf for xss

2010-08-15 Thread Sebastian
OK THX to everyone. I will check the images with imagick and let the pdfs in adobes responsibility. One worry less. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Need to check pdf for xss

2010-08-14 Thread Sebastian Ewert
Hi, before I allow to upload images I read them and check for several html tags. If they exist I don't allow the upload. Is their any need to check pdf files, too? At the time I'm doing this, but the result is that many files are denied because of unallowed html tags. -- PHP General Mailing

Re: [PHP] Need to check pdf for xss

2010-08-14 Thread Sebastian
Peter Lind wrote: On 14 August 2010 22:36, Sebastian Ewert seb2...@yahoo.de wrote: Hi, before I allow to upload images I read them and check for several html tags. If they exist I don't allow the upload. Is their any need to check pdf files, too? At the time I'm doing this, but the result

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Sebastian Ewert
Rick Dwyer wrote: Hello List. In the Alt section of the IMG tag below, the variable $myitem has a value of Who's There. echo div class='myclass'a href='#' class='color_thumb' img src='/itemimages/$mypic' alt='$myitem' width='60' When running through W3C validator, the line

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Sebastian Ewert
Ashley Sheridan wrote: On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: Rick Dwyer wrote: Hello List. In the Alt section of the IMG tag below, the variable $myitem has a value of Who's There. echo div class='myclass'a href

[PHP] Does class length slow down performance

2010-07-22 Thread Sebastian Ewert
? Thanks for reply, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Sebastian Ewert
Ashley Sheridan wrote: On Thu, 2010-07-22 at 10:49 +0200, Sebastian Ewert wrote: Hi, I'm developing an joomla component and my helper an user classes are crowing bigger and bigger. The helper class is for static use only. Does class size decrease performance of my php scripts, even

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Sebastian Ewert
to long? If it is should I take all the html genarating functions and put them in a helper class? If I do so and there is no way to call those functions without initalizing the main user object, will there still be an increase of performance? Thanks, Sebastian -- PHP General Mailing List (http

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Sebastian Ewert
and if there are performance problems with to long classes. Thanks, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Sebastian Ewert
. My question is answered and I have some lecture for the next week. Greets, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to get the filesize of an online document?

2009-04-08 Thread Sebastian Muszytowski
snipplets so that i can work for an solution. Thanks in advance Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to get the filesize of an online document?

2009-04-08 Thread Sebastian Muszytowski
Hi, thanks for the hint, but how can i get the size when the header isn't specified? is there the possibility to count the bits and bytes when i get the file? Sebastian Gevorg Harutyunyan schrieb: Hi, You must get content-length http header value, but sometimes header is not set and you

[PHP] stream_set_timeout issue with ssl connection

2009-04-08 Thread Sebastian Muszytowski
connection. If i use a ssl connection steam_set_timeout seems to be ignored. Any clues or workarounds? Sebastian PS: You can download the whole code on http://muzybot.de/phpircbot.tar.gz or http://muzybot.de/phpircbot.zip -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Sebastian Muszytowski
already searched the web and the whole php.net site but i don't see any workaround. Thanks in advance Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Sebastian Muszytowski
Thijs Lensselink schrieb: Sebastian Muszytowski wrote: Hello :) I have some troubles with php and mysql. I have a normal MySQL Query and this returns X 3 rows. Now i want to get the last 3 inserted values. For Example i've inserted A, B, C, D, E I want to get the last inserted values

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Sebastian Muszytowski
haliphax schrieb: [..cut...] Except when your primary key value rolls over, or fills a gap between two other rows that was left when a row was deleted/moved/etc... there has got to be a better way than grabbing rows in descending order based on the auto_increment value. Are you doing the

[PHP] a questoin about the # char

2008-06-12 Thread Sebastian Camino
Hello, I want to know what the # char does. On a website I was working at, I tried to open a file with a # in it's name and I got an error. So I'd really appreciate any help to know how to avoid the error and what does the character do. Thanks a lot Sebastian -- PHP General Mailing

[PHP] Creating ZIP-File with password

2007-11-12 Thread Sebastian Hopfe
a solution or a workarround. Are the some people, who have some ideas? Regards Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating ZIP-File with password

2007-11-12 Thread Sebastian Hopfe
] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Sebastian Hopfe wrote: Now, the ZIP-files must be protect. There a important files included. Each site and forum seems to have no solution about this problem. Now, I need a solution or a workarround. Are the some people, who have some ideas? You could

[PHP] Re: back-up mysql database using PHP

2007-11-07 Thread Sebastian Hopfe
://dev.mysql.com/doc/refman/5.0/en/backup.html There are many ways to backup the Database. I thought this will help you. Regards Sebastian Vanessa Vega [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] hello thereis there a way to create a back-up database through PHP?...i would

[PHP] Re: enhanced_list_box, 2 tables from a database

2007-11-07 Thread Sebastian Hopfe
Dear kNish, first of all i have formated your PHP Code it looks better now. ?php echo tr\n; echo td height=\33\nbsp;/td\n; echo td width=\14%\ class=\style3\Artist/td\n; $options = mysql_query(SELECT artist_name FROM artist); $options=mysql_fetch_array($options); echo 'td';

[PHP] Re: Sessionvariable

2007-11-07 Thread Sebastian Hopfe
Dear Ronald, I would like to ask you, want kind of session you use in you application. regards Sebastian Ronald Wiplinger [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I use at the first page a session variable to set a flag. After a few pages, or if somebody wait too long

[PHP] Re: Help with OOPHP

2007-11-01 Thread Sebastian Hopfe
Dear Andrew, I think normaly it isn't possible to use another class in a class, without using extends. But you should use your array as a container. After you use as a container, you can make new instance into a array field. Now you can use the content of the container to administrate the

[PHP] Re: Function variables in classes

2007-11-01 Thread Sebastian Hopfe
It seems to be a PHP Bug, because normaly it should very well. but you can solve this problem, by a workarround. using eval($a.();); instead of $a(); in the class. Best regards Sebastian Paul van Haren [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi there, I'm trying

[PHP] Re: Function variables in classes

2007-11-01 Thread Sebastian Hopfe
I think you should log it, because it seems to be, and you found this error. Regard Sebastian Paul van Haren [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Thanks, this helps. The code now works. In case this is truely a bug in PHP, where should I log it? Anything that I

[PHP] I need an opion!!! Thanks!

2007-10-01 Thread Sebastian Dieser
Hi, we have been using the following codes on our site for a year and I wanted to know if these codes are just spaghetti or its actual usable code. I know it can be bettered a lot I just need opinions if the codes can be used a while more until we reprogram everything as a complete CMS system.

[PHP] R: [PHP] Date Function Questions

2005-12-11 Thread Sebastian \En3pY\ Zdrojewski
afaik it's the system time. Cheers En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo è

[PHP] R: [PHP] Performance question

2005-12-05 Thread Sebastian \En3pY\ Zdrojewski
. As for performance I don't know, but a difference is present for sure. Actually I never benchmarked the performance of the two styles, but wanted to give my 10 cents for the coding style :) Cheers En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail

[PHP] R: [PHP] Re: Performance question

2005-12-05 Thread Sebastian \En3pY\ Zdrojewski
essential first, have fun laterz =:) Obviously IMHO :) Have fun, En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e

[PHP] R: [PHP] how to unregister session stored as multidimensional array?

2005-12-05 Thread Sebastian \En3pY\ Zdrojewski
Try ? @reset( $_SESSION['client'] ); while ( list( $var, $val ) = @each( $_SESSION['client'] ) ) { if ( $var != 'name' ) unset( $_SESSION['client'][ $val ] ); } ? a bit dirty but works... :-/ Sebastian Konstanty Zdrojewski URL: http://www.en3py.net

[PHP] R: [PHP] Problem with Frames and Sessions

2005-11-28 Thread Sebastian \En3pY\ Zdrojewski
the frameset. The session will be available in all the frames. Cheers, En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e

[PHP] R: [PHP] Intersecting Dates

2005-11-26 Thread Sebastian \En3pY\ Zdrojewski
If you got also the year you can transform the dates into UNIX TIMESTAMP and check againist that. If you don't have that, write down a simple procedure that converts dates into days since 01/01 and use that method, but it will be faulty if the date ranges overlap years. Cheers En3pY Sebastian

[PHP] R: [PHP] Re: Can't execute external program

2005-11-24 Thread Sebastian \En3pY\ Zdrojewski
the command line. Check out the earlier and I think you're gonna solve your issue. Regards, En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo

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

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

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

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

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

[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] 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] 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] Re: how to check for a static call from an object

2005-07-21 Thread Sebastian Mendel
Sebastian Mendel wrote: Hi, how can i check if a method is called statically when called from inside another object? (without debug_bactrace()) class foo { function bar() { if ( isset( $this ) ) { return 'not static'; } return

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

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

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

Re: [PHP] Re: Converting [and] to XML format- help/advise requested

2005-06-16 Thread Sebastian Mendel
Dotan Cohen wrote: On 6/15/05, Sebastian Mendel [EMAIL PROTECTED] wrote: Dotan Cohen wrote: Hi gurus. I'm having fun replacing the text within [ and ] to XML format on 4000+ files on a windows XP machine. I installed php (and an apache server) on the machine because it is the only language

[PHP] Re: incrementing a register global

2005-06-16 Thread Sebastian Mendel
() with $_GET ( or $_REQUEST ) ? foreach ( $_GET as $key = $var ) { echo $key . ' = ' . $var; } but this is not incrementing a register global but 'accessing a superglobale array' -- Sebastian Mendel www.sebastianmendel.de www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet -- PHP

[PHP] Re: Freing memory resources?

2005-06-16 Thread Sebastian Mendel
? -- Sebastian Mendel www.sebastianmendel.de www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Freing memory resources?

2005-06-16 Thread Sebastian Mendel
Sebastian Mendel wrote: Gustav Wiberg wrote: Hi there! I have a script that runs about 10 minutes... Localy on my computer (Windows XP 2.6Ghz, Apache) the computer hangs a little now and then when the script is running. Is there any good way of releasing more memory while the script

[PHP] Re: unable to load php_gd2.dll

2005-06-15 Thread Sebastian Mendel
? or does it report any errors? what says phpinfo() about gd? -- Sebastian Mendel www.sebastianmendel.de www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Converting [and] to XML format- help/advise requested

2005-06-15 Thread Sebastian Mendel
, $string); -- Sebastian Mendel www.sebastianmendel.de www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: unable to load php_gd2.dll

2005-06-15 Thread Sebastian Mendel
Sebastian Mendel wrote: ; Directory in which the loadable extensions (modules) reside. extension_dir = C:\PHP\extensions I have also uncommented the extension = php_gd2.dll I have in the c:\php\extension folder the php_gd2.dll I have restarted IIS but still nothing I am using

[PHP] Re: unable to load php_gd2.dll

2005-06-15 Thread Sebastian Mendel
checked the even view but no help there. What dll do you think i would need? Please I appreciate your help. extension_dir = c:\php\extensions\ http://www.php.net/manual/en/install.windows.extensions.php Please do not forget the last backslash -- Sebastian Mendel www.sebastianmendel.de

[PHP] Re: formatting paragraphs in to strings

2005-06-14 Thread Sebastian Mendel
and how I can format the text properly?? not, with any look at your code or results try preg_replace( '|\s*|', ' ', $string ); it will replaces any occurence of one or more white-space-characters with one single space http://www.php.net/manual/en/reference.pcre.pattern.syntax.php -- Sebastian

[PHP] Re: DB relationship chart generator?

2005-06-14 Thread Sebastian Mendel
Thomas wrote: Is there an app out there that can easily create a relationship (flow) diagram of a given database? DBDesigner at http://www.fabforce.net/dbdesigner4/ -- Sebastian Mendel www.sebastianmendel.de www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet -- PHP

[PHP] Re: Right syntax for max value??

2005-06-14 Thread Sebastian Mendel
the field where PRIMARY key(news_id) is the highest auto_increment number. This works just as excpected on localhost but not on remote. Does anybody know the right syntax? SELECT `newstitle` FROM `news` ORDER BY `news_id` DESC LIMIT 1 -- Sebastian Mendel www.sebastianmendel.de

[PHP] Re: Converting [and] to XML format- help/advise requested

2005-06-14 Thread Sebastian Mendel
to mention, you need only the second example, the first ist just to explain the step toward the final ocde. -- Sebastian Mendel www.sebastianmendel.de www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

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

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

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

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

<    1   2   3   4   5   6   >