[PHP] file upload

2001-07-19 Thread Marcus
-BEGIN PGP SIGNED MESSAGE- Hi everyone, I try to upload a file to my webserver, extract the email-adresses it contains and write these into a mysql database. Working with small files (<350 Kb) this works perfect. But trying to do this with files bigger than that fails. The files are never

[PHP] Re: Expand variable in comparison

2008-01-18 Thread Marcus
Andrés Robinet wrote: -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marcus Sent: Friday, January 18, 2008 4:51 PM To: php-general@lists.php.net Subject: [PHP] Expand variable in comparison Hi! Is there any way to get the following snippet returning a true

[PHP] Re: Expand variable in comparison

2008-01-18 Thread Marcus
Andrés Robinet wrote: -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marcus Sent: Friday, January 18, 2008 9:56 PM To: php-general@lists.php.net Subject: [PHP] Re: Expand variable in comparison Andrés Robinet wrote: -Original Message- From: news [mailto

RE: [PHP] Curl and cookies

2006-12-15 Thread Marcus
1. Set option "HEADER" true for the login part in Curl 2. Take the output of login page, you will notice Set-cookie: name=cookie_value; parametres returned from the header. 3. Preg match or use (explode,str_replace etc) to get those names and values. Prepare them for the next Curl fetch 4. Make

[PHP] parsing objects

2006-12-21 Thread Marcus
Hello I have a soap call that returns something like; Result from a print_r(); stdClass Object ( [getCategoryTreeReturn] => Array ( [0] => stdClass Object ( [iId] => 1 [sName] => Cars & Motorbikes [iParentId] => 0 [iTreeCount] => 114302 [iLocalCount] => 0 [aSubCats] => Array ( [0] => stdClass Ob

RE: [PHP] parsing objects

2006-12-21 Thread Marcus
I need to output that as Category: X Sub-category: 1 Sub-category: 2 .. .. linking by id's to parent id's just like in a database. -Original Message- From: Roman Neuhauser [mailto:[EMAIL PROTECTED] Sent: Friday, December 22, 2006 12:18 AM To: Marc

[PHP] Cant use w32API functions

2002-12-04 Thread Marcus Fazzi
I Cant use w32API functions ... my PHP is 4.3.0 RC2 over Win2K... and Apache 2.0.43... plz hlp! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and Apache

2002-12-04 Thread Marcus Fazzi
You need Apache 2.0.40 fo uses with PHP 4.2.3, for use with 2.0.43 use PHP 4.3.0 RC2 > > Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache 1.3.x?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] w32api Functions

2002-12-10 Thread Marcus Fazzi
Where is w32_* function in PHP 4.3.0 RC2 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] w32API where is?

2002-12-10 Thread Marcus Fazzi
Where is w32_* functions on PHP 4.3.0 RC2? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] w32api where is?

2002-12-10 Thread Marcus Fazzi
where is w32_* functions on PHP 4.3.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DEV] PHP Look Back 2002

2002-12-31 Thread Marcus Börger
d hopefully an even better 2003 for all of us. marcus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Bug or just a strange behaivor?

2003-07-09 Thread Marcus Hufvudsson
HP 4.3.1 (cli) (built: Apr 2 2003 11:25:25) Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies So... anyone know what's up? -- Marcus Hufvudsson Artech administrator Office: +46-500-427788 Email: [EMAIL PROTECTED] -- PHP General Mailing List (

Re: [PHP] PHP - MySQL Query...

2003-08-14 Thread Marcus Edvardsson
I'm used to do like this: $query = 'SELECT * FROM cities'; $result = mysql_query($query); if($row = mysql_fetch_array($result)) do { echo (' ' . $row[0] . ', ' . $row[1] . ' ' . $row[2] . ' ' . $row[3] . " \n"); } while ($row = mysql_fetch_array($result)); -

[PHP] Reading mail with PHP?

2003-08-14 Thread Marcus Edvardsson
er in those or should I use PEARs classes like http://pear.php.net/packages.php?catpid=14&catname=Mail Marcus - Sweden -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_replace() problem

2003-03-31 Thread Marcus Rasmussen
ace(array("Blueberry", "Blue"), array("Strawberry", "Red"), $paragraph); _ Marcus Rasmussen [EMAIL PROTECTED] www.marcusr.dk - On 31-03-2003 at 13:52 René Fournier wrote: --

Re: [PHP] global var.

2003-03-31 Thread Marcus Rasmussen
Putting an & sign in front of the $id in the first line should do the trick: $variable = &$id; A short example: $bar = 0; $foo = &$bar; $bar = 2; print $foo; //prints 2 ______ Marcus Rasmussen [EMAIL PROTECTED] ww

RE: [PHP] parse_str()

2003-03-31 Thread Marcus Rasmussen
This should work: parse_str($example_string, $_GET); ___ Marcus Rasmussen [EMAIL PROTECTED] www.marcusr.dk - On 01-04-2003 at 03:20 Jose wrote: - >

[PHP] Trouble reading POST data that is not associated with a value.

2003-06-27 Thread Marcus Akre
t can help me solve this really saves my day. (And next two weeks. :) Best regards Marcus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installed PHP on home Win98se, now how can I get browser to see it?

2002-07-26 Thread Marcus Unlimited
in my browsers IE, NN just as it does when uploaded to my hosting co's servers? Thanks, -Marcus -- |||||| Marcus Unlimited http://marcusunlimited.com Multimedia Internet Design and Educ

[PHP] Q:What is the easiest way to test my PHP+Html pages?

2002-07-27 Thread Marcus Unlimited
mplest and easiest path to open my .html pages with some php mysql in em. and see them as they will work on the web??? Thank you, -Marcus -- |||||| Marcus Unlimited http://marcusunlimited.com Multimedia Internet Design and

[PHP] Re: Q:What is the easiest way to test my PHP+Html pages?

2002-07-27 Thread Marcus Unlimited
I guess I should reiterate; "What is the easiest way to test locally (on my desktop) without having to upload?" Thanks,-Marcus Tim Luoma wrote: > Marcus Unlimited wrote: > > > So what is the absolute simplest and easiest path to open my .html pages > > with some p

Re: [PHP] Q:What is the easiest way to test my PHP+Html pages?

2002-07-27 Thread Marcus Unlimited
Hmm, .bat that is a new one for me, will I still be able to test my pages in regular windows browsers like IE and NN? -Marcus THANKS John Holmes wrote: > Search on Google for PHPTriad or Firepages, or look on hotscripts.com or > sourceforge. There are a couple packages out there t

Re: [PHP] Q:What is the easiest way to test my PHP+Html pages?

2002-07-27 Thread Marcus Unlimited
Wow hey sorry I missed that. Thank you, _Marcus "[EMAIL PROTECTED]" wrote: > Marcus, > > A quote from my eMail YESTERDAY: > > "There is a nice bundle for windows, it's perfect to test basic php/mysql > stuff. it includes Apache, MySQL and PHP. You can fi

[PHP] Re: [PHP-DEV] php4.3.0-pre2 - win32 binaries

2002-10-28 Thread Marcus Börger
Could you tell something about compiling php under vc++.net? I tried this but wasn't able to (but did not tried it hard). regards marcus At 16:13 28.10.2002, [EMAIL PROTECTED] wrote: anyone can download for testing php-4.3.0-pre2 from: http://chat.italma.ru/php/ (compiled with vc+

AW: [PHP] Help with PNG creation script

2003-12-31 Thread Marcus Wendt
I'd definitivly suggest you NOT to use this database-pointer approach! Instead of simply sending that .png-header once you could store the image in a physical file by using an unique ID based on the functions arguments. Later on just check if a file with this ID exists and return its URL instead

[PHP] Dreamwever for PHP?

2001-01-10 Thread Marcus Ouimet
Are there any programs that have a graphical interface like dreamweaver for PHP?

Re: [PHP] Dreamwever for PHP?

2001-01-10 Thread Marcus Ouimet
I am really new to PHP, I previously used perl for all my coding. - Original Message - From: "Alexander Wagner" <[EMAIL PROTECTED]> To: "Marcus Ouimet" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 1:05 PM Sub

[PHP] Zend Optimizer

2001-01-15 Thread Marcus Ouimet
I have download the Zend Optimizer (Running Apache 1.3.14 and PHP 4.04) and untarred it. Then I copied the ZendOptimizer.so to usr/local/Zend/lib Then I edited the PHP.ini and added: zend_optimizer.optimization_level=15 zend_extension="/usr/local/Zend/lib/ZendOptimizer.so" Somewhere near the

Re: [PHP] Zend Optimizer

2001-01-15 Thread Marcus Ouimet
t; <[EMAIL PROTECTED]> To: "Marcus Ouimet" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Monday, January 15, 2001 12:48 PM Subject: Re: [PHP] Zend Optimizer > --- Marcus Ouimet <[EMAIL PROTECTED]> wrote: > > I have download the Zend Optimizer (

[PHP] How do I detect if mysql_connect failes?

2001-04-19 Thread Marcus Rasmussen
(since the linkid not contains an error message.) Marcus R.

Re: [PHP] How do I detect if mysql_connect failes?

2001-04-19 Thread Marcus Rasmussen
d surpress and write the error message myself, but I just want the original one, wich I should be able to get with mysql_error() PS. It is only mysql_connect that do it. Marcus R. *** REPLY SEPARATOR *** On 20-04-01 at 12:35 David Robley wrote: >On Fri, 20 Apr 2001

[PHP] Array & Javascript?

2001-04-26 Thread Marcus Ouimet
I am trying to add a Javascript in array but it gives me an error unless certain characters are commented which makes sense, but then the Javascript won't run. Any ideas here is what I am trying: 'left', 'text' => ' '); of course the ' characters are a

[PHP] How can I?

2002-02-17 Thread Marcus Ouimet
How can I unsubscribe to this list thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Arrays in forms {?!}

2002-04-24 Thread Marcus Rasmussen
p://www.php.net/manual/en/language.variables.external.php _____ Marcus Rasmussen - On 24-04-02 at 15:19 Liam MacKenzie wrote: - >Hi all,

RE: [PHP] SQL Question

2002-03-28 Thread Marcus Rasmussen
You could do it this way WHERE column LIKE 's%' ORDER BY column Now you'll get all rows sorted and where column is staring with an 's' or 'S' - On 28-03-02 at 17:30 Sebastian A. wrote: --

[PHP] Question using chop :-)

2001-03-30 Thread Marcus Ouimet
I have got chop to work for me to remove characters at the end of the string using something like: echo $listing_values1 = chop(substr($listing_values['name'],0,4); echo $listing_values1 ['name'] . '...' . ' ' . "\n"; Works great except for the fact after the name there appears to be a l

[PHP] Question: Number of Characters

2001-04-01 Thread Marcus Ouimet
How can i determine the number of characters in a string? I am using substr to cut off the last 4 characters of a string. Which is working great. But I want to replace the 3 charcters with "..." only if there are over 20 charcters . I tried substr_replace but it appears on everything no ma

Re: [PHP] MySQL Query

2001-07-19 Thread Marcus Hartmann
the statement should look like this: $result = mysql_query("select * from table where type = 'Base' and x = 'x' and y = 'y'"); "Ryan Fischer" <[EMAIL PROTECTED]> wrote in message 01d901c1101e$9cd43220$80c93fd0@ryan">news:01d901c1101e$9cd43220$80c93fd0@ryan... > You wrote: > > I have a table tha

[PHP] hash in php vs java

2001-07-20 Thread Marcus Hartmann
-BEGIN PGP SIGNED MESSAGE- Does anyone know which algorithm is used in java to generate hash code? I think it´s md5(hopefully), but I´m not certain about it... Thanx -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.8 for non-commercial use iQEVAwUBO1gCj1iX

Re: [PHP] Generating variable names 'on the fly'

2001-09-21 Thread Marcus Rasmussen
You can allso do like this: $i = 1; ${"test". $i} = "123"; echo $test1; ___ Marcus Rasmussen [EMAIL PROTECTED] On 21-09-01 at 11:21 _lallous wrote: >you can always use eval to create a variable too! > >$i = 1; >eva

Re: [PHP] If...Or...Else

2004-07-24 Thread Marcus Strube
>if ((condition1 == TRUE) OR (condition2 == TRUE)) { > do something; > } esle { > do something else; > } > ?> > > What's the correct syntax for the If line? if(true == condition1 || true == condition2) { echo "Hello World"; } else { echo "Best Regards"; } -- PHP G

[PHP] Creating a PHP5 RPM

2004-07-27 Thread Marcus Bointon
. However, I have no idea how to do this - can anyone give me some pointers? Is it as simple as adding a configure switch like --build-rpm? Thanks, Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List

[PHP] mysql and mysqli

2004-07-27 Thread Marcus Bointon
I installed all of mysql from official RPMs, except for devel and shared modules which I compiled from the source RPM (These 4.1.13 binary RPMs are hard-wired to OpenSSL 0.9.6 so you can't use them on any recent OS). Any ideas to fix this? Marcus -- Marcus Bointon Synchromedia Limited: P

[PHP] PHP 5 - $_REQUEST undefined???

2004-08-08 Thread Marcus Bointon
it off. I'm in the process of upgrading from PHP4 to 5, and this script works ok in 4 - the error is just in 5. Any ideas? Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (htt

Re: [PHP] oop too slow

2004-08-19 Thread Marcus Bointon
With a product factory class, you might do this instead: $products = product_factory::get($productids); Which achieves the same result, but using only a single DB query (hidden inside the factory class, which does NOT call the product class in the same way!). The next problem is keeping your p

Re: [PHP] maybe we could all?

2009-02-09 Thread Marcus Gnaß
Nathan Rixham wrote: Project: PHP Common Objects and Datatypes Has anything been setup for project COD-pieces yet? I like this name! ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] maybe we could all?

2009-02-09 Thread Marcus Gnaß
Nathan Rixham wrote: Marcus Gnaß wrote: Nathan Rixham wrote: Project: PHP Common Objects and Datatypes Has anything been setup for project COD-pieces yet? I like this name! ;) Actually, yes it has - the project, well working group, has been called "voom". Sounds fine too! ;)

Re: [PHP] PHP OOP

2009-02-10 Thread Marcus Gnaß
arted programming in Pascal, not in C. If today I had to learn programming as such I would definitively opt for Python! My choice for learning OOP would be Python or even better Java cause you don't have the choice to do it in a procedural way. Marcus -- PHP General Mailing List (http://www.ph

Re: [PHP] Question about template systems

2009-03-03 Thread Marcus Gnaß
Marcus Gnaß wrote: like with programming questions in general. Should have read my own post before sending! ;) Should be "programming languages"! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about template systems

2009-03-03 Thread Marcus Gnaß
Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been looking at ways to create dynamic data with a s

Re: [PHP] A Tool For Building PHP Web Apps

2009-04-10 Thread Marcus Gnaß
Paul M Foster wrote: On Fri, Apr 10, 2009 at 09:01:14AM -0400, Bob McConnell wrote: From: Paul M Foster Here's a hairbrained idea I was kicking around. I object to the idea of including 15 or 30 files in a PHP application just to display one page on the internet. It makes

Re: [PHP] php forms - select menu selected behavior

2009-04-30 Thread Marcus Gnaß
Troy Oltmanns wrote: > I have the code below being used to rifle through a list of available > categories and create select options for them. The code is being used to > query the database and compare the product category to the current > iteration, if there's a match, then add selected code so the

Re: [PHP] speaking of control structures...

2009-05-06 Thread Marcus Gnaß
Tom Worster wrote: > there's a control structure i wish php had: a simple block that you can > break out of, e.g. As Maarten pointed out you could use a function. Another alternative is to use Exceptions which might be the most proper way to do it. -- PHP General Mailing List (http://www.php.ne

Re: [PHP] speaking of control structures...

2009-05-06 Thread Marcus Gnaß
Robert Cummings wrote: > On Wed, 2009-05-06 at 12:56 +0200, Marcus Gnaß wrote: >> Tom Worster wrote: >>> there's a control structure i wish php had: a simple block that you can >>> break out of, e.g. >> >> As Maarten pointed out you could use a function.

Re: [PHP] speaking of control structures...

2009-05-06 Thread Marcus Gnaß
Robert Cummings wrote: > On Wed, 2009-05-06 at 22:23 +0200, Marcus Gnaß wrote: >> Robert Cummings wrote: >>> On Wed, 2009-05-06 at 12:56 +0200, Marcus Gnaß wrote: >>>> Tom Worster wrote: >>>>> there's a control structure i wish php had: a

Re: [PHP] SQL help?

2009-05-18 Thread Marcus Gnaß
Skip Evans wrote: > Hey all, > > I have a SQL requirement I'm not quite sure how to compose. > > I have two tables, shows, and shows_dates. It's a one to many > relationship where there is a single entry in shows and multiple entries > in shows_dates that list each date and time for a play produc

Re: [PHP] header problem

2009-09-10 Thread Marcus Gnaß
A.a.k wrote: > is there any alternative to header() for redirect users? As far as I know there isn't. Is the header-error the first error on the page? If not, the other error message itself is the reason for the header-error and will be solved if you solve the other error. -- PHP General Mailin

Re: [PHP] Creating alphanumeric id for a table

2009-09-11 Thread Marcus Gnaß
aveev wrote: > function generate_id($num) { > $start_dig = 4; > $num_dig = strlen($num); > > $id = $num; > if($num_dig <= $start_dig) { > $num_zero = $start_dig - $num_dig; > > for($i=0;$i< $num_zero; $i++) { >

Re: [PHP] Question: Sorting through table headers?

2009-09-14 Thread Marcus Gna?
Jim Lucas wrote: > Parham Doustdar wrote: >> Hello there, >> I've been asked to create something like the tables you usually see, >> where the headers are actually links and when you click the links, the >> table gets sorted based on the header. Are there any classes that you >> know of that would

Re: [PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Marcus Gnaß
Tony Marston wrote: > You cannot do this in a separate class as it requires action in both the > presentation (UI) and data access layers, and a single class is not allowed > to operate in more than one layer. You can, but you shouldn't if you want to write your classes according to the MVC pat

Re: [PHP] Replacing accented characters?

2010-01-28 Thread Marcus Gnaß
them, with the regular e and u characters. > > FWIW, those two dots are called an "umlaut". > > Paul > FWIW, the whole letters ÄäÖöÜü are called "Umlaute" (umlauts). The two dots above *these* letters are "Umlautzeichen" (umlaut marks). But two dots above an e

[PHP] Re: [PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Marcus Boerger
Hello Chris, you need to define that signature of your functions by supplying ZEND_ARG_INFO's to them. look at ZEND_API.h file for those macros. marcus Friday, February 25, 2005, 2:22:39 AM, you wrote: > I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose t

Re: [PHP] Why not @ ?

2005-03-22 Thread Marcus Joyce
o:[EMAIL PROTECTED] would be broken. Marcus Joyce Mário Gamito wrote: Hi, If you care to take a peak at http://www.dte.ua.pt/cv/ and pass your mouse over the link "Mário Gamito", you'll see in the status bar that the link is: http://www.dte.ua.pt/cv/[EMAIL PROTECTED] Allright. However,

[PHP] Mac OS X compilation problem

2005-04-27 Thread Marcus Bointon
I need some modules that are not supported in any of the pre-built fink PHP5 packages, and I'm used to compiling it without difficulty on Linux and OpenBSD. Anyone else run into this or have any idea how I might fix it? Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the pi

Re: [PHP] Re: Valid email address syntax script?

2005-05-04 Thread Marcus Bointon
a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61} [a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]? \d{1,2}|2[0-4]\d|25[0-5])\]))$/', $email); I got it from here - they have some more and some commercial products that go further: http://www.hexillion.com/samples/#Regex

[PHP] Seeking decent domain registrar

2005-05-12 Thread Marcus Bointon
elp of course! I've been googling for registrars, but as yet I've not found anyone that offers all this. Can anyone recommend a registrar that has a clue and a decent web interface? Thanks, Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] |

Re: [PHP] Seeking decent domain registrar

2005-05-13 Thread Marcus Bointon
On 13 May 2005, at 01:11, Richard Lynch wrote: On Thu, May 12, 2005 3:40 am, Marcus Bointon said: Multilingual domain support e.g. café.com Er. Maybe they changed the rules, but I don't think that's a valid domain name AT ALL. So maybe the reason you are having trouble is you a

Re: [PHP] Seeking decent domain registrar

2005-05-16 Thread Marcus Bointon
than to have to translate into the English "dumbing down" of their language - that you might find it harder is not a consideration. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Refresh (F5) adds another SQL record.

2005-05-17 Thread Marcus Joyce
Why dont you check that data isnt being duplicated? $query = "SELECT auto_col FROM table where col1 = $var1 & col2 = $var 3."; $call_query = mysql_query($query,... $query_data = mysql_assoc($call_query); if(!$query_data) { do form } else echo "information already exists in databas

Re: [PHP] How to confirm subscriptions by e-mail on a PHP site ?

2005-05-20 Thread Marcus Joyce
t; (not exactly the sql phrase, but i dont feel like adding %s's and mysql_real_escape_strings to it but you get the picture) then from the data i got, i did if($row_is_returned) { update users set registered=yes WHERE userID = $_GET['user']; } and that was it. Marcus Mário Gam

[PHP] PHP5 binaries

2005-05-20 Thread Marcus Bointon
or current releases. Even in the various rpm repositories PHP5 is a rare beast - for example rpmforge's members don't include it. rpmbone provides some very basic rpms, but they suffer from dependency problems (even when accessed via apt-get). Any other ideas? Marcus -- Marcus B

Re: [PHP] session.use_trans_sid = 0 does not work!!!

2004-06-13 Thread Marcus Merz
on't remove it), try this: > > ini_set("session.use_only_cookies","1"); If this is not an option and you still want to not have session id's appended when a searchengine robot comes to your site, you could detect the UA and just do not start a session in that case.

[PHP] Optimize simple file XOR code

2004-06-24 Thread Marcus Johansson
Hi! I'm using a very simple algorithm to encrypt files sent from the server "On Demand". The algorithm uses XOR for the encryption. My problem is that the code is very slow, it can only process about 40 KB per second on my system, so my question is, is there any more speed optimized way to write t

RE: [PHP] Optimize simple file XOR code

2004-06-24 Thread Marcus Johansson
much! -- Marcus -Original Message- From: Marcel Tschopp [mailto:[EMAIL PROTECTED] Sent: den 24 juni 2004 13:37 To: [EMAIL PROTECTED] Subject: Re: [PHP] Optimize simple file XOR code Hi Marcus Try this: function CryptFile($hash, $filename) { // The key used is generated using an

Re: [PHP] PHP Form Field Validation

2004-07-19 Thread Marcus Strube
> If (formfieldname = empty()) [snip] $value = "0"; if(true==empty($value)) { echo "it's empty"; } [/snip] May be good to know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML numeric string

2004-07-21 Thread Marcus Strube
Am Mittwoch, 21. Juli 2004 11:36 schrieb Koriun A. Margarian: > Hello > > how to convert HTML numeric string like > ղաբա > to original text ? > > -- > Best regards, > Koriunmailto:[EMAIL PROTECTED] $dirty_data $search4[0] = "/,/"; $search4[1] = "/A/"; $repla

[PHP] Preventing static method calls in PHP4

2004-07-21 Thread Marcus Bointon
that the setting of $this in static calls from other instances is not a bug (though it's the root of this problem)! Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend Enc and 0T Q

2004-07-21 Thread Marcus Bointon
ion is not the same as encoding. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Preventing static method calls in PHP4

2004-07-22 Thread Marcus Bointon
ow that this problem goes away in PHP5, and that the setting of $this in static calls from other instances is not a bug (though it's the root of this problem)! Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk --

Re: [PHP] Re: Preventing static method calls in PHP4

2004-07-22 Thread Marcus Bointon
t work - it is exactly the case that fails in my example. $this IS set in a static method that's called from any object instance (even one of a different class), and it's a PHP feature, not a bug. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture

Re: [PHP] run perl script with php

2004-07-22 Thread Marcus Bointon
ual/en/function.exec.php http://uk2.php.net/manual/en/function.passthru.php E.g. system('myperlscript.pl'); Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Trouble with sin()

2004-07-22 Thread Marcus Strube
Hi, i'm working with PHP 5.0.0 (Linux) and have some trouble using function sin(). In PHPs opinion sin(20) is 0.912945250728 I have had a look at the bug.php.net, but couldn`t find anything. Is it a bug or am I just misunderstanding something?? Marcus -- PHP General Mailing List

Re: [PHP] Trouble with sin()

2004-07-22 Thread Marcus Strube
Thanks a lot. I've overseen a word in the manual. Now i got it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detect local or remote call?

2007-10-11 Thread Marcus Mueller
Anders Norrbring wrote: > Is there a good way to detect in a script if it's called locally from > command line, or via a remote browser? Check out . Greetings m. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: [PHP-DEV] PHP 4.4.8RC1

2007-12-20 Thread Marcus Boerger
Hello Derick, to stick with our announced plan, can we release this in 2007? marcus Thursday, December 20, 2007, 1:43:18 PM, you wrote: > Hello! > I packed PHP 4.4.8RC1 today, which you can find here: > http://downloads.php.net/derick/ > Please test it carefully, and report any

[PHP] [RFC] Replace the flex-based scanner with an re2c [1] based lexer

2008-03-03 Thread Marcus Boerger
o help you getting started: http://blog.somabo.de/2008/02/php-on-re2c.html thanks marcus Sunday, March 2, 2008, 11:21:34 PM, you wrote: > RFC: REPLACE THE FLEX-BASED SCANNER WITH AN RE2C [1] BASED LEXER > Situation: > The current flex-based lexer depends on an outdated and unsuppo

Re: [PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Marcus Bointon
s on a single page; This is a very good way of making a browser go very slowly and eat lots of memory. Marcus -- Marcus Bointon Synchromedia Limited: Creators of http://www.smartmessages.net/ [EMAIL PROTECTED] | http://www.synchromedia.co.uk/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Recommendations for PHP debuggers?

2006-08-21 Thread Marcus Bointon
y of stack traces alone makes it worthwhile IMHO. Marcus -- Marcus Bointon Synchromedia Limited: Creators of http://www.smartmessages.net/ [EMAIL PROTECTED] | http://www.synchromedia.co.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Object to array conversion oddity

2006-09-23 Thread Marcus Bointon
; string(0) "" } The docs (http://www.php.net/manual/en/language.types.array.php) say: "If you convert an object to an array, you get the properties (member variables) of that object as the array's elements. The keys are the member variable names." It se

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Marcus Bointon
ar in a variable name, but it's fine as an array index. Try a test with multiple public and multiple private variables. If the format of the array keys stays the same, then you should have your answer. In my real code I do have multiple fields all exhibiting this behaviour. I'

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Marcus Bointon
t;]=> string(0) "" ["Myclassfield2"]=> string(0) "" ["*field3"]=> string(0) "" } So it seems protected fields behave differently too. Marcus -- Marcus Bointon Synchromedia Limited: Creators of http://www.smartmessages.net/ [EMAIL PROTECTED] | http://www.synchromedia.co.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Marcus Bointon
want it to act just like the docs say it does, and if you don't, you should probably be using the object itself anyway. Bug report is here: http://bugs.php.net/?id=38935 Marcus -- Marcus Bointon Synchromedia Limited: Creators of http://www.smartmessages.net/ [EMAIL PROTECTED] | http://ww

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Marcus Bointon
extra info in a marginally less destructive way, for example by adding 'private' and 'protected' array properties containing field names for each access level to the resulting array. OTOH, that would break what you'd expect count() to deliver after the conversion. I re

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Marcus Bointon
any circumstances in which it is preferable to using reflection (unless it's a relic from PHP4?). What's next - appending a creation time to integers when they're cast into strings? Marcus -- Marcus Bointon Synchromedia Limited: Creators of http://www.smartmessages.net/ [EMAIL PROTECTE

Re: [PHP] Object to array conversion oddity

2006-09-23 Thread Marcus Bointon
ay[$matches[2]] = $value; } else { //It's a public property $propArray[$key] = $value; } } return $propArray; } Works nicely for me. Marcus -- Marcus Bointon Synchromedia Limited: Creators of h

Re: [PHP] Object to array conversion oddity

2006-09-24 Thread Marcus Bointon
I not helping by pointing out there's a problem in the first place? It's a lot more constructive than being rude. Marcus -- Marcus Bointon Synchromedia Limited: Creators of http://www.smartmessages.net/ [EMAIL PROTECTED] | http://www.synchromedia.co.uk/ -- PHP General Mailing List (

Re: [PHP] Object to array conversion oddity

2006-09-24 Thread Marcus Bointon
ot;]=> NULL ["c:protected"]=> NULL ["A:private"]=> NULL } ["c"]=> NULL } Reference preserved. It's not like I care about PHP4, nor am I doing a deep conversion. Marcus -- Marcus Bointon Synchromedia Limited: Creators of http:/

Re: [PHP] Object to array conversion oddity

2006-09-24 Thread Marcus Bointon
On 24 Sep 2006, at 22:07, Ray Hauge wrote: Maybe you missed it, but he did submit a bug report: http://bugs.php.net/?id=38935 He just wanted to see if other people had run into a similar situation before submitting the bug... from my understanding. I don't want to put words in M

Re: [PHP] Object to array conversion oddity

2006-09-26 Thread Marcus Bointon
until I fix it properly. The original question wasn't whether it was a good idea or not, but that it didn't act as the docs said it did. In the mean time, you might like to know that this behaviour IS apparently considered correct and a patch to documentation has been committed.

  1   2   3   >