[PHP] abmeldung

2008-09-24 Thread Sascha Braun ! CEO @ BRAUN Networks
unsubscribe


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Development Environment

2008-09-04 Thread Sascha Braun | CEO @ BRAUN Networks

Dear general list Members,

I did fly three month ago from germany to california as a software
engineer for the development of international dotcoms.

I am specialized in the development of content management, media
asset management and shop system solutions by use of PHP5.

I had a couple of business contacts here, but it seems that the ameri-
can economy is at the moment not really open enough to found new
or at least provide financial support for new businesses.

A couple of weeks ago my suitcase got stolen, so I now only run
around with my laptop computer and my content management system
I developed thruout the past five years.

As I am not really getting the help I would need from the environment
I am at, and I am not really sure where in the US to go to, to start out
a proper living somewhere, I would like to ask you members out here
of there are projects I could take part in or positions where somebody
would like to hire me.

Since conversations with one of the best three seo's in germany and an
old IT guru in Frankfurt/Main I might be one of the best PHP5 develop-
ers and seos on the market at the moment, based on values like usability
concepts, inventiveness and search engine marketing capabilities.

So who ever wants to have me, is going to have a nice golden pott around.

I would really be happy if I would find a chance to dress myself nicely 
again

or even to find a new home :))

Please help if you can.

Sincerily,

Sascha

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Rename does not work

2007-10-20 Thread Sascha Braun | CEO @ BRAUN Networks
Both versions are PHP 5.2.4_p20070914-r2

I backchecked the rights a couple of times. There to problem
does not appear.

I cant really understand what is happening. On the server
eaccelerator and memcache is performing its work. I believe
that when I restart the apache and as well the memcache all
classes I am writing to the memcache and i guess to the e-
accelerator are deleted, or?

The problem first occured since I was writing a function to
read an xml files storing image names as values in its para-
meters, and rewriting these values each time, the xml docu-
ment is stored again, by simply renaming the images.

Now I left the function out, because its not really needed
to rewrite the picuture names over and over. But the problem
remains.

Maybe I am doing something wrong with eaccelerator, so its
keeping an old version of the class in mind?

How do I empty eaccelerator, because a memcache restart does
not make a fix.

Thank you for your help.

Sascha

Am Freitag, den 19.10.2007, 12:55 +0100 schrieb Richard Heyes:
 Sascha Braun | CEO @ BRAUN Networks wrote:
  I am using the rename function on my local development
  system fine. But as soon as I upload the script, the
  rename function does not work anymore.
  
  Is there a specific compiler flag needed, to make rename
  work on both plattforms?
 
 You're using different platforms for developing and your live version? 
 Mistake number one. As for the rename issue, first guess is permissions. 
 As in, you don't have them.
 
 -- 
 Richard Heyes
 +44 (0)800 0213 172
 http://www.websupportsolutions.co.uk
 
 Knowledge Base and HelpDesk software
 that can cut the cost of online support
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Rename does not work

2007-10-19 Thread Sascha Braun | CEO @ BRAUN Networks
Hi everyone,

I am using the rename function on my local development
system fine. But as soon as I upload the script, the
rename function does not work anymore.

Is there a specific compiler flag needed, to make rename
work on both plattforms?

Thank you very much.

Sascha


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Public Announcement

2007-09-11 Thread Sascha Braun - CEO @ Braun Networks
The pages are all delivered by one single kind of page parser.

Its consisting of round about 5 lines of code. But for different
reasons there have to get written parsers, especially for the
content to show. The longest parser is consisting of 11 lines
of code.

But I don't want to say more, otherwise my invention is not mine
anymore. Me alone as a developer can't react fast enough, to ar-
chive the success, I normaly ought to have, before everybody is
running to archive the same innovations like me.

But as I can see how you are reacting on it, and others as well
everybody is really loves the behavior. Its long time ago that
I spoke with other devs. So I really feel well about the conver-
sation.

Thank you very much.

Best Regards,

Sascha

Am Dienstag, den 11.09.2007, 09:34 +0100 schrieb Stut:
 Sascha Braun - CEO @ Braun Networks wrote:
  hi stut,
  
  thank you for your advices.
 
 Ok, just so it's perfectly clear to you... I'm taking the piss. Still, 
 since you provided apparently serious answers I'm going to continue to 
 enjoy myself...
 
  - Screentexts are texts shown as link texts or descriptions
  in forms and other page elements which remain static in one
  language area. The screentexts are getting replaced by they'
  re coresponding translations as the user selects a different
  language.
 
 Wow, a multi-lingual website, how innovative of you. And look, you gave 
 the text on the page a name, how twee.
 
  - The Google standard, of websites describes, that Query URL's
  like ?param1=XYZparam2=123 or as in $_SERVER['QUERY_STRING']
  are not human readable, which makes them not acceptable as valid
  content links.
 
 Nope, sorry, not a standard. When you claim something is standards 
 compliant you really should make sure the standards it's complying with 
 are actually standards backed by a reputable organisation.
 
  But as I am pretty familar with search engine optimisation, my
  system is creating metatags for every page, h1 tags are used
  for headlines, h2 tags for subheads and so on.
 
 Please, for the love of $DEITY get yourself an English spelling checker 
 and use it. I'd also recommend a grammar checker.
 
  If you are a professional in search engine optimisation, you
  will not find any weakness in my application anymore.
  
  Its happending absolutely automatically the authors don't have
  to do anything, for make it happen. Stopword lists like in my-
  sql are removing useless keywords and so on.
 
 Wow, so the user doesn't need to worry about URLs or SEO optimisation. 
 You truly have created a masterpiece. As Gavin pointed out this sounds a 
 lot like a CMS and not a framework.
 
  - Yes, my system is the only application framework worldwide
  with its capabilities. I added a neural networking functionality
  which makes it possible to autodecide which contents are inte-
  resting for the viewers on a page.
 
 Yeah, sorry to destroy your delusions of grandeur, but that's not even 
 slightly unique (not that uniqueness has multiple levels, but I'm using 
 some artistic licence). I'm also fairly certain it's covered by numerous 
 patents, so you might not want to shout about it too loudly.
 
  Fx: If a user is allergic, no products containing large amounts
  of the alergen are shown in the shop anymore. As well it is possi-
  ble to create psychological profiles from the users of the system
  during the runtime of the application.
 
 Sold!!
 
  I have read a paper from the department of defence, from year 2004.
  I first read it in the early beginning of this year. I figured out,
  that my application framework is the perfect psynet application
  for performing psychological operations over the internet.
  
  I guess I developed one of the biggest weapon systems available
  now a days.
 
 I really have nothing useful to say here. If you can't see how 
 ridiculous (and hilarious) such a claim is then there really is no hope.
 
  - As a blogging standard I would describe websites which contain
  a linklist to the left or the right of the blogs content as well
  as a calender and a search field. I guess this makes a blog.
 
 Again, not a standard. The term Weblog (from which the word blogging is 
 derived) is (according to Wikipedia) a web-based publication consisting 
 primarily of periodic articles (normally in reverse chronological 
 order). There is no requirement for a particular page layout or for 
 specific page elements to be present.
 
  - The shop system is widely using ajax for performing fast shopping
  actions, its possible to use videos or audiofiles as product descip-
  tion media, as well as soon you change product parameters these me-
  dias are getting replaced by different color media or size images
  as what ever you could think of.
 
 Again with the uniqueness - you're on fire! A customisable shop for your 
 website, whatever will you geniuses think of next.
 
  And as well my system is using XLinks, which means, you add a link
  to a document, you are able

Re: [PHP] Public Announcement

2007-09-11 Thread Sascha Braun - CEO @ Braun Networks
If you take 30 seconds for the startpage to load, you can check out
http://www.fit-o-matic.com again.

The english translation is not finished yet. But for checking the
behavior you can check out the german page as well.

I gave allready demo user account informtations, it might be best
for checking the application a little.

I will give it to you in a private mail.

Am Dienstag, den 11.09.2007, 14:40 +0530 schrieb Sudheer Satyanarayana:
 I'm still waiting for the URL where I can see the product in action.
 
 Aleksandar Vojnovic wrote:
  Hahaha oh wow.
 
  -Xander
 
  Stut wrote:
  Sascha Braun - CEO @ Braun Networks wrote:
  hi stut,
 
  thank you for your advices.
 
  Ok, just so it's perfectly clear to you... I'm taking the piss. 
  Still, since you provided apparently serious answers I'm going to 
  continue to enjoy myself...
 
  - Screentexts are texts shown as link texts or descriptions
  in forms and other page elements which remain static in one
  language area. The screentexts are getting replaced by they'
  re coresponding translations as the user selects a different
  language.
 
  Wow, a multi-lingual website, how innovative of you. And look, you 
  gave the text on the page a name, how twee.
 
  - The Google standard, of websites describes, that Query URL's
  like ?param1=XYZparam2=123 or as in $_SERVER['QUERY_STRING']
  are not human readable, which makes them not acceptable as valid
  content links.
 
  Nope, sorry, not a standard. When you claim something is standards 
  compliant you really should make sure the standards it's complying 
  with are actually standards backed by a reputable organisation.
 
  But as I am pretty familar with search engine optimisation, my
  system is creating metatags for every page, h1 tags are used
  for headlines, h2 tags for subheads and so on.
 
  Please, for the love of $DEITY get yourself an English spelling 
  checker and use it. I'd also recommend a grammar checker.
 
  If you are a professional in search engine optimisation, you
  will not find any weakness in my application anymore.
 
  Its happending absolutely automatically the authors don't have
  to do anything, for make it happen. Stopword lists like in my-
  sql are removing useless keywords and so on.
 
  Wow, so the user doesn't need to worry about URLs or SEO 
  optimisation. You truly have created a masterpiece. As Gavin pointed 
  out this sounds a lot like a CMS and not a framework.
 
  - Yes, my system is the only application framework worldwide
  with its capabilities. I added a neural networking functionality
  which makes it possible to autodecide which contents are inte-
  resting for the viewers on a page.
 
  Yeah, sorry to destroy your delusions of grandeur, but that's not 
  even slightly unique (not that uniqueness has multiple levels, but 
  I'm using some artistic licence). I'm also fairly certain it's 
  covered by numerous patents, so you might not want to shout about it 
  too loudly.
 
  Fx: If a user is allergic, no products containing large amounts
  of the alergen are shown in the shop anymore. As well it is possi-
  ble to create psychological profiles from the users of the system
  during the runtime of the application.
 
  Sold!!
 
  I have read a paper from the department of defence, from year 2004.
  I first read it in the early beginning of this year. I figured out,
  that my application framework is the perfect psynet application
  for performing psychological operations over the internet.
 
  I guess I developed one of the biggest weapon systems available
  now a days.
 
  I really have nothing useful to say here. If you can't see how 
  ridiculous (and hilarious) such a claim is then there really is no hope.
 
  - As a blogging standard I would describe websites which contain
  a linklist to the left or the right of the blogs content as well
  as a calender and a search field. I guess this makes a blog.
 
  Again, not a standard. The term Weblog (from which the word blogging 
  is derived) is (according to Wikipedia) a web-based publication 
  consisting primarily of periodic articles (normally in reverse 
  chronological order). There is no requirement for a particular page 
  layout or for specific page elements to be present.
 
  - The shop system is widely using ajax for performing fast shopping
  actions, its possible to use videos or audiofiles as product descip-
  tion media, as well as soon you change product parameters these me-
  dias are getting replaced by different color media or size images
  as what ever you could think of.
 
  Again with the uniqueness - you're on fire! A customisable shop for 
  your website, whatever will you geniuses think of next.
 
  And as well my system is using XLinks, which means, you add a link
  to a document, you are able to select the target document from one
  of the content modules, automatically the headline of the target
  document is used as link description and as well the link is shown
  as a nonquery

Re: [PHP] Public Announcement

2007-09-11 Thread Sascha Braun - CEO @ Braun Networks

Hi Stut,

if you check out http://getvanilla.com/ this is a forum
software which uses mod_rewrite to show everything in fine
ass written urls, like my system does allready in a better
way.

As I know from the google indexing threads running over my
websites, the robot indexes all pathes as long there are
found contents.

If you have a query like
http://www.domain.com/en/folder1/folder2/document-name.html

and the application shows contents over this url:

http://www.domain.com/index.php?lang=enpid=XYZ

while document XYZ belongs to category automobiles and
is a BMX Nissan

If now the search robot is comming is crawling the

http://www.domain.com/ finds a hole bunch of links to

/en/automobiles/bmx-nissan/XYZ.html

decides to look into /en/ first, and figures out, here
there is absolutely nothing in it.

The same thing happens to the /en/automobiles/ folder
till it at the late end reaches the document-name.html

So the indexing provider decides, that these categories
are only getting missused to point out informations which
are not really there. So its a fraud.

I could advertise pictures off dolly buster to all people
searching for BMX-Nissan.

While when the indexing service comes and I call the document
bmx-nissan.html and on the site only is to read dolly buster
has a dot on her ass, the website will sink in the respect of
the search engine.

I hope you understood what I said.

My websites are working in a slightly different way. I am creating
overview pages in every category which says, I have an overview
page showing all car brands in automobile, in the BMX-Nissan sektion
there is an overview page over all BMX-Nissan Cars which are pointing
out to one of the XYZ's

Yes, Stut you are right you could see it as a front controller pattern,
while it actually is reappearing in any folder shown on my websites.

Its great to talk to you stut :)

Best Regards,

Sascha





Am Dienstag, den 11.09.2007, 10:57 +0100 schrieb Stut:
 Sascha Braun - CEO @ Braun Networks wrote:
  The pages are all delivered by one single kind of page parser.
  
  Its consisting of round about 5 lines of code. But for different
  reasons there have to get written parsers, especially for the
  content to show. The longest parser is consisting of 11 lines
  of code.
  
  But I don't want to say more, otherwise my invention is not mine
  anymore. Me alone as a developer can't react fast enough, to ar-
  chive the success, I normaly ought to have, before everybody is
  running to archive the same innovations like me.
 
 This is not your invention so I'm not sure what you think you're 
 protecting. It's known as the Front Controller pattern and is widely 
 used with and without a query string in both PHP and many other 
 languages. It can also require changes to the web server environment to 
 make it work. Google for front controller pattern for more information.
 
 You didn't say what you have against mod_rewrite. I'll bet you 
 mod_rewrite can parse a request and send it to the right script faster 
 than your PHP implementation.
 
  But as I can see how you are reacting on it, and others as well
  everybody is really loves the behavior. Its long time ago that
  I spoke with other devs. So I really feel well about the conver-
  sation.
 
 You're not quite catching on to my opinion of your product, but I'm 
 glad you feel well about the conversation.
 
  Thank you very much.
 
 You're quite welcome.
 
 -Stut
 
  Am Dienstag, den 11.09.2007, 09:34 +0100 schrieb Stut:
  Sascha Braun - CEO @ Braun Networks wrote:
  hi stut,
 
  thank you for your advices.
  Ok, just so it's perfectly clear to you... I'm taking the piss. Still, 
  since you provided apparently serious answers I'm going to continue to 
  enjoy myself...
 
  - Screentexts are texts shown as link texts or descriptions
  in forms and other page elements which remain static in one
  language area. The screentexts are getting replaced by they'
  re coresponding translations as the user selects a different
  language.
  Wow, a multi-lingual website, how innovative of you. And look, you gave 
  the text on the page a name, how twee.
 
  - The Google standard, of websites describes, that Query URL's
  like ?param1=XYZparam2=123 or as in $_SERVER['QUERY_STRING']
  are not human readable, which makes them not acceptable as valid
  content links.
  Nope, sorry, not a standard. When you claim something is standards 
  compliant you really should make sure the standards it's complying with 
  are actually standards backed by a reputable organisation.
 
  But as I am pretty familar with search engine optimisation, my
  system is creating metatags for every page, h1 tags are used
  for headlines, h2 tags for subheads and so on.
  Please, for the love of $DEITY get yourself an English spelling checker 
  and use it. I'd also recommend a grammar checker.
 
  If you are a professional in search engine optimisation, you
  will not find any weakness in my application anymore.
 
  Its happending

Re: [PHP] Public Announcement

2007-09-11 Thread Sascha Braun - CEO @ Braun Networks
 in all
other websites. But its still possible for the user to decide, to
take is userprofile out of the gobal account storage, so work
with it again, plattform oriented.

The media asset management system included is working as a fat
client application, which means, if you want to tag an asset
you can simply click an asset, select the add description entry
type the text in an ajax dragable layer popup, press the submit
button, the submit is done in the background.

If you decide to delete one of the assets, you can simply press
the delete button, the page is not getting refreshed, but the
asset list is getting updated, immidiatly.

The preview images are shown in dragable layers, as well as
the video's. The webmail service as well as the vcard driven
addressbook is working with ajax driven movable layers, which
offer maximum comfort in usability.

The possition of any of those layers are stored permanent on
the webserver, if the user is draging the a layer somewhere,
closes the browser window, so the session is closed and re-
turns, opens the layer again, the layer apears at exactly the
same spot the user left it.

As mailsystem is decided to use DBMail.

I developed a internat marketing tool which is keeping 14.000
addresses of webkatalogs, to make it possible to market a web-
site right at its startup to a level of at least 10.000 Back-
links.

Every user of my system can create an own user homepage as
seen as myspace, but with much much more comfort, because
a complete content editor, consisting of a free arrangement
of an unlimited number of content elements.

The editor is very nice to use, even for none designers.

The datastorage is organised in one single datawarehouse for
at the moment six websites, so as the matter of fact, contents
from one website can easely appear on any of the other web-
sites.

If you would check out the source code once in a while, you
will see, that all the frontends are using xml as a frontend
templating and form engine, which is very easy to use.

Only knowledge of xml is needed to create new forms. Elements
not available in the html specification can get included as
a php script, with ajax and everything.

The question catalog management system included, is enabling
the question catalog managers to add followup catalogs to
each of the given answers. Which means, that you can make
a question catalog constisting of yes and no as answers
if you click yes, the yes catalog is loaded, which can
spread in another catalog tree which again can spread in
a catalog tree.

If muliple selects could get made answering a question
catalog, the folloups are placed right after eachother
making it possible to answer these question catalogs
in row. If during this linear offworking a new catalog
is added as followup, its not placed at the end, but
is getting placed right after the actuall answered
catalog.

And as needed, not only question catalogs can get used
as followups, but any kind of content of the content
management modules as any kind of application parts.

A cronjob management system is helping to automatize
any task in the system.

The spectral authoring system is the only application
worldwide having the ability to decide over a neural
networks if contents are suiting to the personal needs
of a person.

And for example over the workflow management system
the system can automatically decide, which job or task
can get best done by specific authors in the system.

;((


Am Dienstag, den 11.09.2007, 10:57 +0100 schrieb Stut:
 Sascha Braun - CEO @ Braun Networks wrote:
  The pages are all delivered by one single kind of page parser.
  
  Its consisting of round about 5 lines of code. But for different
  reasons there have to get written parsers, especially for the
  content to show. The longest parser is consisting of 11 lines
  of code.
  
  But I don't want to say more, otherwise my invention is not mine
  anymore. Me alone as a developer can't react fast enough, to ar-
  chive the success, I normaly ought to have, before everybody is
  running to archive the same innovations like me.
 
 This is not your invention so I'm not sure what you think you're 
 protecting. It's known as the Front Controller pattern and is widely 
 used with and without a query string in both PHP and many other 
 languages. It can also require changes to the web server environment to 
 make it work. Google for front controller pattern for more information.
 
 You didn't say what you have against mod_rewrite. I'll bet you 
 mod_rewrite can parse a request and send it to the right script faster 
 than your PHP implementation.
 
  But as I can see how you are reacting on it, and others as well
  everybody is really loves the behavior. Its long time ago that
  I spoke with other devs. So I really feel well about the conver-
  sation.
 
 You're not quite catching on to my opinion of your product, but I'm 
 glad you feel well about the conversation.
 
  Thank you very much.
 
 You're quite welcome.
 
 -Stut
 
  Am

[PHP] Public Announcement

2007-09-10 Thread Sascha Braun - CEO @ Braun Networks

The Spectral Authoring System is able to keep
round about 300.000 Document Kategories in one
Application.

1.4 Million Screentexts are in use, while still
providing fast access.

The complete Application is Google Standard com-
pliant, without use of mod_rewrite, allowing long
directory pathes.

Its containing the only forum software worldwide
which is completely complying to the google stan-
dard for websites, without leaving holes in its
stucture.

As well there is an ajax driven webmail frontend
comparable to hotmail or yahoo mail included, which
easely can get scaled to keep more than a million
e-mail accounts, in a multidomain environment.

The Blog Module is following the actual blogging
standards, while remaining google compliant as
well as its completely fulltext searchable even
in an multiblog environment.

The shop system is not containing query urls any-
more, without use of mod_rewrite.

It is the best ecommerce and shopping plattform
worldwide.

Its written in PHP5.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Public Announcement

2007-09-10 Thread Sascha Braun - CEO @ Braun Networks
hi stut,

thank you for your advices.

- Screentexts are texts shown as link texts or descriptions
in forms and other page elements which remain static in one
language area. The screentexts are getting replaced by they'
re coresponding translations as the user selects a different
language.

- The Google standard, of websites describes, that Query URL's
like ?param1=XYZparam2=123 or as in $_SERVER['QUERY_STRING']
are not human readable, which makes them not acceptable as valid
content links.

But as I am pretty familar with search engine optimisation, my
system is creating metatags for every page, h1 tags are used
for headlines, h2 tags for subheads and so on.

If you are a professional in search engine optimisation, you
will not find any weakness in my application anymore.

Its happending absolutely automatically the authors don't have
to do anything, for make it happen. Stopword lists like in my-
sql are removing useless keywords and so on.

- Yes, my system is the only application framework worldwide
with its capabilities. I added a neural networking functionality
which makes it possible to autodecide which contents are inte-
resting for the viewers on a page.

Fx: If a user is allergic, no products containing large amounts
of the alergen are shown in the shop anymore. As well it is possi-
ble to create psychological profiles from the users of the system
during the runtime of the application.

I have read a paper from the department of defence, from year 2004.
I first read it in the early beginning of this year. I figured out,
that my application framework is the perfect psynet application
for performing psychological operations over the internet.

I guess I developed one of the biggest weapon systems available
now a days.

- As a blogging standard I would describe websites which contain
a linklist to the left or the right of the blogs content as well
as a calender and a search field. I guess this makes a blog.

- The shop system is widely using ajax for performing fast shopping
actions, its possible to use videos or audiofiles as product descip-
tion media, as well as soon you change product parameters these me-
dias are getting replaced by different color media or size images
as what ever you could think of.

And as well my system is using XLinks, which means, you add a link
to a document, you are able to select the target document from one
of the content modules, automatically the headline of the target
document is used as link description and as well the link is shown
as a nonquery url, like:

http://www.domain.com/en/magazin/something-new/while-i-wrote-it-here.html

Done without mod_rewrite.

I hope I answered all your questions.

Best Regards,

Sascha

Am Montag, den 10.09.2007, 16:39 +0100 schrieb Stut:
 Things to do before spamming a public English mailing list...
 
 1) Make sure your email actually says what the product is
 2) Make sure you have a relevant subject line
 3) Make sure it's in English
 4) Run it through a spelling checker, preferably an English one
 5) Stop and think whether the people you're spamming are really gonna care!
 6) This one is really important. Make sure you include a URL to the 
 product's website. Oh, and make sure that website actually works, 
 especially when it says it's powered by your product!
 
 Some additional questions and notes that you may find useful...
 
 * What the heck are Kategories? Maybe you mean categories?
 * What the heck are Screentexts?
 * As far as I know Google have never published any standards regarding 
 URLs. Do you have a reference?
 * Claiming that your product is the only one in the whole wide world to 
 do something is very dangerous. Would you bet the farm on it? Because 
 what with the numerous highly litigious patent owners out there you 
 could well be!
 * blogging standards?? Another reference needed please.
 * The shop system is not containing query urls anymore, without use of 
 mod_rewrite. What the heck does that mean? You had SQL in your URLs?
 * It's the best is it? On what do you base that claim?
 
 -Stut
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Solution for writing a function layer between pecl-memcache and PHP

2007-07-28 Thread Sascha Braun - CEO @ Braun Networks
Dear Mister Minka,

in the attachment of this file, you will find a complete example for
the problem, decscribed.

There are two working examples, and the main example which is not
working.

Could you please be so kind in between to tell me who you are, because
I couldn't find any mails in the php general list or in the memcache
list which have been written from your mail account.

If your are able to correct the error, please send me a patched version.

Thank you very much.

Best Regards,

Sascha Braun

Am Samstag, den 28.07.2007, 01:53 +0200 schrieb Martin Minka:
 Sascha,
 konntest du ein test PHP Script schicken dass dieses Problem wiederholt ?
 
 Meine erste Vermutung ist dass du irgendwo in deinem Kode Fehler hast. 
 Wenn du es aber in einen beispiel Script wiederholen kannst werde ich es 
 in C Compiler testen.
 Ich habe nämlich inzwischen die Compilierung von PECL-memcache Kode an 
 meinem PC eingeästelt um mein Problem mit redundancy zu lösen.
 
 Mit grüssen,
 Martin Minka
 
 
 Sascha Braun - CEO @ Braun Networks wrote:
  Hi dear Sancar,
  
  you seem really the best man in place as what I see in the mailing
  list :)) Thats really lovely I would like to say.
  
  Now lets come to the solution I need:
  
  public function memcache($pointer, $data=, $compress=, $timeout=0)
  // store or load data from the memcache
  {
  if (MEMCACHE_SUPPORT == 'true') {
  $memcached_port = $_SESSION['memcache_port'];
  if (empty($memcached_port)) { $memcached_port = '9'; }
  $memcache = memcache_connect('localhost', $memcached_port);
  if ($memcache) {
  $memcache_pointer = PROJECT.$pointer;
  $cache = $memcache - get($memcache_pointer);
  if (!$cache) {
  $memcache-set($memcache_pointer,$data);
  $cache = $memcache - get($memcache_pointer);
  }
  return $cache;
  }
  }
  }
  
  This is the Funktion I use to load and write data to the memcache
  a write or restore looks like this here site::memcache('pointer',$data);
  
  This is working in many cases pretty fine.
  
  Now I have a codepart, where the 'pointer' is getting created dynamical-
  ly. Which means I do fx. a $content_id.'_'.$translation instead of wri-
  ting a simple 'pointer' as first parameter to the above function.
  
  When I now call my XML Parser, to store data in memcache, and try to
  recall, the data short after, it says:
  
  File not found: This file somewhere in the suburbs.
  
  But when I try to output the XML Object before the data is written to
  the cache, everything goes terribly fine.
  
  Now I figured out, that when I use static naming for the memcache data
  pointer 'pointer' everything goes fine.
  
  When I use the memcache directly, which means, I call the
  $memcache-set() and $memcache-get() function from where I store data
  everything goes fine again, even with dynamically created, variables.
  
  But as soon as I use my function layer, call a to
  site::memcache($pointername,$dataset); only  returnes bullshit.
  
  Mh, this makes me a little bit sad.
  
  Maybe somebody or even you, can help me :))
  
  Best Regards, and a baba Respect from Germany, Dear Sancar!
  
  Sascha
  
  
 
 


memcached-test.tar.gz
Description: application/compressed-tar
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Sascha Braun - CEO @ Braun Networks
Hi dear Sancar,

you seem really the best man in place as what I see in the mailing
list :)) Thats really lovely I would like to say.

Now lets come to the solution I need:

public function memcache($pointer, $data=, $compress=, $timeout=0)
// store or load data from the memcache
{
if (MEMCACHE_SUPPORT == 'true') {
$memcached_port = $_SESSION['memcache_port'];
if (empty($memcached_port)) { $memcached_port = '9'; }
$memcache = memcache_connect('localhost', $memcached_port);
if ($memcache) {
$memcache_pointer = PROJECT.$pointer;
$cache = $memcache - get($memcache_pointer);
if (!$cache) {
$memcache-set($memcache_pointer,$data);
$cache = $memcache - get($memcache_pointer);
}
return $cache;
}
}
}

This is the Funktion I use to load and write data to the memcache
a write or restore looks like this here site::memcache('pointer',$data);

This is working in many cases pretty fine.

Now I have a codepart, where the 'pointer' is getting created dynamical-
ly. Which means I do fx. a $content_id.'_'.$translation instead of wri-
ting a simple 'pointer' as first parameter to the above function.

When I now call my XML Parser, to store data in memcache, and try to
recall, the data short after, it says:

File not found: This file somewhere in the suburbs.

But when I try to output the XML Object before the data is written to
the cache, everything goes terribly fine.

Now I figured out, that when I use static naming for the memcache data
pointer 'pointer' everything goes fine.

When I use the memcache directly, which means, I call the
$memcache-set() and $memcache-get() function from where I store data
everything goes fine again, even with dynamically created, variables.

But as soon as I use my function layer, call a to
site::memcache($pointername,$dataset); only  returnes bullshit.

Mh, this makes me a little bit sad.

Maybe somebody or even you, can help me :))

Best Regards, and a baba Respect from Germany, Dear Sancar!

Sascha

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Sascha Braun - CEO @ Braun Networks
Thank you very much Nathan.

You mean I should change the the method from public to static?
Is that right? I hope I was getting you right.

I now juggled around abit with the code, and as it happens most
of the time, in case I invoke the XML object, that the file
given was not read right.

When i invoke the object, just outside of the site::memcache()
function like

$xml_data = new xml_mm('/path/to/xml_file/xml_file.xml');

and put a 

echo pre;
print_r($xml_data);
echo /pre;

inbetween the output is correct.

But when I do a

site::memcache($memcache_pointer, $xml_data);
or a
$file_path = '/path/to/xml_file/xml_file.xml';
site::memcache($memcache_pointer, new xml_mm($file_path));

and do a

$xml_data = site::memcache($memcache_pointer);

The output is, file_not_found: /path/to/xml_file/xml_file.xml

Thats the main problem.

Am Freitag, den 27.07.2007, 14:38 -0400 schrieb Nathan Nobbe:
 judging by the method invocation you have shown
 
 site::memcache($pointername, $dataset);
 
 that indicates site is a class and memecahce is a method defined in site,
 which is being invoked statically in this case.
 and in the definition of memecache you showed, the definition does not have
 the static keyword, therefore you
 should not be invoking it from a static context.
 from the documentation on the static keyword
 Calling non-static methods statically generates an E_STRICT level warning.
 
 its not a solution to your problem but it is a point on proper style.
 
 -nathan
 
 On 7/27/07, Sascha Braun - CEO @ Braun Networks [EMAIL PROTECTED]
 wrote:
 
  Hi dear Sancar,
 
  you seem really the best man in place as what I see in the mailing
  list :)) Thats really lovely I would like to say.
 
  Now lets come to the solution I need:
 
  public function memcache($pointer, $data=, $compress=, $timeout=0)
  // store or load data from the memcache
  {
  if (MEMCACHE_SUPPORT == 'true') {
  $memcached_port = $_SESSION['memcache_port'];
  if (empty($memcached_port)) { $memcached_port = '9'; }
  $memcache = memcache_connect('localhost', $memcached_port);
  if ($memcache) {
  $memcache_pointer = PROJECT.$pointer;
  $cache = $memcache - get($memcache_pointer);
  if (!$cache) {
  $memcache-set($memcache_pointer,$data);
  $cache = $memcache - get($memcache_pointer);
  }
  return $cache;
  }
  }
  }
 
  This is the Funktion I use to load and write data to the memcache
  a write or restore looks like this here site::memcache('pointer',$data);
 
  This is working in many cases pretty fine.
 
  Now I have a codepart, where the 'pointer' is getting created dynamical-
  ly. Which means I do fx. a $content_id.'_'.$translation instead of wri-
  ting a simple 'pointer' as first parameter to the above function.
 
  When I now call my XML Parser, to store data in memcache, and try to
  recall, the data short after, it says:
 
  File not found: This file somewhere in the suburbs.
 
  But when I try to output the XML Object before the data is written to
  the cache, everything goes terribly fine.
 
  Now I figured out, that when I use static naming for the memcache data
  pointer 'pointer' everything goes fine.
 
  When I use the memcache directly, which means, I call the
  $memcache-set() and $memcache-get() function from where I store data
  everything goes fine again, even with dynamically created, variables.
 
  But as soon as I use my function layer, call a to
  site::memcache($pointername,$dataset); only  returnes bullshit.
 
  Mh, this makes me a little bit sad.
 
  Maybe somebody or even you, can help me :))
 
  Best Regards, and a baba Respect from Germany, Dear Sancar!
 
  Sascha
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Sascha Braun - CEO @ Braun Networks
I checked out the book from mister rethans and mister gutmans
and mister bakken, mh, its seems easier to simply say how the
book is named :))

To check out, what exactly it means, to create static and public
and so on methods. Yeah, I can easely call them static, as you
prefered.

But now there came up a new question in me.

Is there a perforamce issue about using public privat static and
so on methods. Will my application even start to run faster?

And another question I would like to ask is, that one of my classes
as prescribed is allready 400 KB in size, does it slow down the sys-
tem more to load that class, into memcached, or additionally
eaccelerator than splitting the class in a hole bunch of smaller
classes, which are getting loaded, as needed too.

Thanks you!

Am Freitag, den 27.07.2007, 14:38 -0400 schrieb Nathan Nobbe:
 judging by the method invocation you have shown
 
 site::memcache($pointername, $dataset);
 
 that indicates site is a class and memecahce is a method defined in site,
 which is being invoked statically in this case.
 and in the definition of memecache you showed, the definition does not have
 the static keyword, therefore you
 should not be invoking it from a static context.
 from the documentation on the static keyword
 Calling non-static methods statically generates an E_STRICT level warning.
 
 its not a solution to your problem but it is a point on proper style.
 
 -nathan
 
 On 7/27/07, Sascha Braun - CEO @ Braun Networks [EMAIL PROTECTED]
 wrote:
 
  Hi dear Sancar,
 
  you seem really the best man in place as what I see in the mailing
  list :)) Thats really lovely I would like to say.
 
  Now lets come to the solution I need:
 
  public function memcache($pointer, $data=, $compress=, $timeout=0)
  // store or load data from the memcache
  {
  if (MEMCACHE_SUPPORT == 'true') {
  $memcached_port = $_SESSION['memcache_port'];
  if (empty($memcached_port)) { $memcached_port = '9'; }
  $memcache = memcache_connect('localhost', $memcached_port);
  if ($memcache) {
  $memcache_pointer = PROJECT.$pointer;
  $cache = $memcache - get($memcache_pointer);
  if (!$cache) {
  $memcache-set($memcache_pointer,$data);
  $cache = $memcache - get($memcache_pointer);
  }
  return $cache;
  }
  }
  }
 
  This is the Funktion I use to load and write data to the memcache
  a write or restore looks like this here site::memcache('pointer',$data);
 
  This is working in many cases pretty fine.
 
  Now I have a codepart, where the 'pointer' is getting created dynamical-
  ly. Which means I do fx. a $content_id.'_'.$translation instead of wri-
  ting a simple 'pointer' as first parameter to the above function.
 
  When I now call my XML Parser, to store data in memcache, and try to
  recall, the data short after, it says:
 
  File not found: This file somewhere in the suburbs.
 
  But when I try to output the XML Object before the data is written to
  the cache, everything goes terribly fine.
 
  Now I figured out, that when I use static naming for the memcache data
  pointer 'pointer' everything goes fine.
 
  When I use the memcache directly, which means, I call the
  $memcache-set() and $memcache-get() function from where I store data
  everything goes fine again, even with dynamically created, variables.
 
  But as soon as I use my function layer, call a to
  site::memcache($pointername,$dataset); only  returnes bullshit.
 
  Mh, this makes me a little bit sad.
 
  Maybe somebody or even you, can help me :))
 
  Best Regards, and a baba Respect from Germany, Dear Sancar!
 
  Sascha
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php