[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



[PHP] PHP IDE needed

2008-08-26 Thread Sascha Braun

Hi people,

I have a webproject which is round about 3 GB in size. I was usually
using eclipse to work with the software but over time eclipse became
very instable regarding that project.

As soon as I open classes with 2000 or more lines of code in it, an out
of memory error occours.

So I need a new IDE for linux.

Please tell me which IDE might be a true alternative for projects at
that size.

Thank you friends,

kind regards,

Sascha

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



[PHP] PHP5 Speed Issues

2007-12-22 Thread Sascha Braun
Hi Fellows,

I figured out, that PHP5 runs faster when I am not inherit classes,
I hope I use the right word.

I mean the class sub_class extends main_class notation.

As well I figured out, that I in most cases should references in
foreach loops. like

foreach($array as $key = $value) {

}

Lots of memory is saved by that.

Now I would like to know, what other speed improvements might be
possible. What about autoload of classes, will it improve speed
when I throw the code out?

Are there other things I should take care of.

I would like to know as much as possible. Please go deep into your-
self and tell me every little thing on how you improved your applica-
tions for speed and memory optimisation, to make this thread the best
compendium on performance and memory optimisation.

Thank you very much, fellows and a merry merry christmas!

Sascha

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



[PHP] PHP Memory Leak

2007-12-06 Thread Sascha Braun
Hi Everybody,

I have a couple of foreach loops which are ending in a for loop,
which causes the apache to consume the complete memory of the
server system the php engine is running on.

The nesting level is at round about three and looking like that:

$num_new = 4;
if (is_array($array)) {
foreach ($array as $key = value) {
if ($value['element'] == 'test1') {
foreach ($value['data'] as $skey = $svalue) {
echo $svalue;
}
} elseif ($value['element'] == 'test2') {
foreach ($value['data'] as $skey = $svalue) {
echo $svalue;
}
}
if ($num_new  0) {

// this part causes the memory leak

for ($i = 0; $i  $num_new; $i++) {
echo sgasdgga;
}
}   
}
}

I dont know if the above code is causing the memory leak the source
is a little more complex, if nessessary I will provide some more code,

Thank you!

I hope for a solution

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



[PHP] Maximum function nesting level of '100' reached

2007-10-25 Thread Sascha Braun
What is the cause for that error:

Fatal error: Maximum function nesting level of '100' reached, aborting!
in /home/Projekte/spectral/modules/xml_mm/classes/xml_mm.class.php on
line 118

Thank you!

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] for/foreach speed

2007-08-20 Thread Sascha Braun, CEO @ fit-o-matic
Hi people,

could somebody please explain me, what loop construct is
faster? The for, while or foreach.

I at the moment don't know if there are more.

And thanks to the person who is missusing the list here
for sending trojan horses everywhere.

Since I write to the PHP General list I am receiving round
about 5 E-Mails from random domains, from this list, containing
a Jpeg image with an embeded trojan horse.

Thats really wonderfull. But maybe I should say, that we are
using a nice mailscanner, and as well we are only working on
linux machines.

So better find another way of performing your frauds.

If there are people here in the list, who would like to discuss
how its possible to fight this kind of fraud. I am very open to
that.

Get the hacking tools prepared and lets fight back. I am sure
the police would love to get an inquiry from a hole bunch of
senior developers wanting to see little assholes in jail!

Best Regards,

Sascha Braun

--
BRAUN Networks

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



Re: [PHP] for/foreach speed

2007-08-20 Thread Sascha Braun, CEO @ fit-o-matic
Thank you very much. When we might have time for testing we can
wager :))

Am Montag, den 20.08.2007, 13:21 -0400 schrieb Robert Cummings:
 On Mon, 2007-08-20 at 18:50 +0200, Sascha Braun, CEO @ fit-o-matic
 wrote:
  Hi people,
  
  could somebody please explain me, what loop construct is
  faster? The for, while or foreach.
 
 I haven't bothered testing but I'd wager $5 that the following is the
 fastest loop:
 
 ?php
 
 while( 1 )
 {
 }
 
 ?
 
 Depending on bytecode creation though, the following might be just as
 fast:
 
 ?php
 
 for( ;; )
 {
 }
 
 ?
 
 Cheers,
 Rob.

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



[PHP] PHP Performance and System Load

2007-07-20 Thread Sascha Braun, CEO @ ejackup.com
Dear People,

I developed a very large Application, which has at the moment strong
performace problems, while pages are loaded.

At the moment I am trying to lower the number of filesystem calls as
much as I can. I was able allready to lower the rate of filesystem
calls from round about 260 calls, which normaly included database calls
each time as well.

Now a page loads with round about 36 Filesystem and database calls, so
a improvement could really get established.

Now, as I might have imagined, the next problem is the object model of
the application which was very flexible in the past two years. But now
over time, for example the content management class grew up to 400 Kb
which is for a web application hell of a lot.

But it seems it is the only class at that enormous size.

I am using the PHP5 autoload functionality exclusive, so no other way
of loading classes is getting used.

No I started to come in mind of, splitting the cms class into smaller
potions. Will it really improve the page load, or will the object ini-
tialisations of the new appearing mass of classes have the same effect
as a class, stored in the eaccelator cache with a memory consumtion
round about 400 Kb?

Another question is, that I started to include my application framework
over a symlink placed in every webspace directory. I've read somewhere
that linux needs time to resolve a symlinks target.

Can this be a real performance issue? All datasets as well as images,
modules and all application relevant informations are loaded from that
symlinked place at the moment.

The webserver does only contain the webspace filesystem structure as
well as 5 line of PHP Code dummies, for every document in the content
management system, to avoid the usage of mod_rewrite.

It would be really wonderfull, to be able to discuss my questions with
you people here :))

Best Regards,


Sascha

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



[PHP] Denial of Service Attack

2007-07-20 Thread Sascha Braun, CEO @ ejackup.com
Today I was writing an E-Mail here in the List
since that time, my webserver detects a virus
which is described as a denial of service attack.

Thank you fellows!

This is really a reliable list.

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



[PHP] SESSION LOST!

2007-05-10 Thread Sascha Braun
Hi Fellows,

I am developing on a large project. Its containing
a couple of ajax scripts. One day, my temporeary
folder was full, because everytime i clicked some-
where in the page, a new session file was created.

So i decided, to change to a database driven session
management. But it did not really help.

Its possible to log into the site. You can do authoring
or use the service as it should be, but after a little
time, the session is just lost.

Sometimes it takes ten minutes, sometimes just a few
mouse clicks. Its very strange.

But it never happens during the first clicks.

Maybe somebody is able to help me.

Best Regards,


Sascha Braun


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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



[PHP] Session Variable in Global Scope

2007-04-23 Thread Sascha Braun
Hi Fellows,

I'm getting this warning on my website:

Warning: Unknown: Your script possibly relies on a session side-effect
which existed until PHP 4.2.3. Please be advised that the session
extension does not consider global variables as a source of data, unless
register_globals is enabled. You can disable this functionality and this
warning by setting session.bug_compat_42 or session.bug_compat_warn to
off, respectively. in Unknown on line 0

I don't really understand, how it comes to that error. In the php.ini is
written, that this error occours when i register a session in a global
scope. What does it mean exactly?

Another thing is, that I'm often loosing the session, while surfing the
website using ajax functionality in the background. I started to send
the session id with the request all the time, but it seems, that some
of the request are made, without showing an IP Adress in the sessions
table, of my installation.

I'm actually not using cookies, but the error does not occour in mozilla
firefox on a windows plattform, its only occouring under linux using
firefox. Internet Explorer isnt tested well enough yet, to come to an
conclusion.

Maybe someone is working with ajax, alot, so you might have experience
with it too.

Thank you very much for your help.

Best Regards,

Sascha


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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



[PHP] Interface to USB Devices

2007-04-21 Thread Sascha Braun
Hi People,

I would like to gather Informations from an USB
Device, to display the transmitted data on a web
interface.

As I read the docs, I found the direct IO functions,
but as i read thru the function descriptions, they
where only meant for direct file access.

Is there a possebility to collect informations from
USB Devices when the manufacturer is going to change
the export specification for this special purpose.

Thank you very much.

Best Regards,


Sascha Braun

fit-o-matic.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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



[PHP] E-Mail Filter/Parser

2006-01-25 Thread Sascha Braun - immosky AG
']), strlen($message) - $pos);
}

$this - 
element[$key] = trim(substr($message, 0,
strpos($message, $xml - email_filter[$key]['attribute']['read_to'])));
}
}
}   
}
closedir($filters);
}   
}
}

It would be nice to know how i can iterate over the next elements of the
email filter array till a valid field part is found and the iteration
can start with the next element of the filter, from the last occourance
of a valid read_init string.

Hope i described my problem well enough, otherwise please ask, because
this filter seems to be a pretty cool script, because there is not found
anything similar at google at this time :))

Thanks for your help.

Best Regards,

Sascha Braun

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



Re: [PHP] E-Mail Filter/Parser

2006-01-25 Thread Sascha Braun - immosky AG
But how can i get the next key in a foreach loop?

Can't see how i can use a continue statement in that circumstance?

Am Mittwoch, den 25.01.2006, 11:28 +0200 schrieb Geoff:
 Possibly the continue statement would help you?
 
 Geoff.
 
 
 On 25 Jan 2006 at 10:12, Sascha Braun - immosky AG wrote:
 
  Hi,
  
  I started to write an E-Mail Parser so E-Mails from different Internet
  Plattforms can be sorted automatically into an customer database.
  
  Everything is working pretty fine, but only if all expected fields
  appear in the Mail from the sending plattform.
  
  But sometimes the Mails send out by a plattform doesnt contain all
  fields the filter expects. And i dont know how to write the foreach
  loop I am using to walk over the current field to check if the start
  element of the next needed field occours so the parsing for the needed
  element can stop somewhere and start reading the next field element.
  
  A Filter looks like that, at the moment:
  
  Array
  (
  [attribute] = Array
  (
  [plattform] = plattform.com
  )
  
  [firstname] = Array
  (
  [attribute] = Array
  (
  [read_init] = Name: 
  [read_from] = Name: 
  [read_to] =  
  )
  
  )
  
  [name] = Array
  (
  [attribute] = Array
  (
  [read_init] =  
  [read_from] =  
  [read_to] = Anschrift: 
  )
  
  )
  
  [adress] = Array
  (
  [attribute] = Array
  (
  [read_init] = Anschrift:
  [read_from] = Anschrift:
  [read_to] = ,
  )
  
  )
  
  [plz] = Array
  (
  [attribute] = Array
  (
  [read_init] = ,
  [read_from] = , 
  [read_to] =  
  )
  
  )
  
  [city] = Array
  (
  [attribute] = Array
  (
  [read_init] =  
  [read_from] =  
  [read_to] = E-Mail:
  )
  
  )
  
  [email] = Array
  (
  [attribute] = Array
  (
  [read_init] = E-Mail: 
  [read_from] = E-Mail: 
  [read_to] = Telefon:
  )
  
  )
  
  [phone] = Array
  (
  [attribute] = Array
  (
  [read_init] = Telefon: 
  [read_from] = Telefon: 
  [read_to] = Folgender
  )
  
  )
  
  [comment1] = Array
  (
  [attribute] = Array
  (
  [read_init] = ussert:
  [read_from] = ussert:
  [read_to] = Kommentar: 
  )
  
  )
  
  [comment2] = Array
  (
  [attribute] = Array
  (
  [read_init] = Kommentar: 
  [read_from] = Kommentar: 
  [read_to] = ===
  )
  
  )
  
  [headline] = Array
  (
  [attribute] = Array
  (
  [read_init] = berschrift: 
  [read_from] = berschrift: 
  [read_to] = Anzeige 
  )
  
  )
  
  [object] = Array
  (
  [attribute] = Array
  (
  [read_init] = Objekt Nr: 
  [read_from] = Objekt Nr: 
  [read_to] = )
  )
  
  )
  
  )
  
  And the filter funltion looks like that, at the moment:
  
  private function filter_email($message)
  // Filter upcomming email messages into the immetix database
  {
  
  if (is_dir($this - filter_folder)) {
  
  if ($filters = opendir($this - filter_folder)) {
  
  while(($filter = readdir($filters)) !== false) {
  
  if ($filter != .  $filter != ..) {
  
  $xml = new xml_mm($this - 
  filter_folder.$filter);
  
  if (!empty($xml - 
  email_filter['attribute']['plattform']) 
  substr_count(strtolower($message), $xml -
  email_filter['attribute']['plattform'])) {
  
  unset($xml - 
  email_filter['attribute

Re: [PHP] selected index

2005-10-25 Thread Sascha Braun

Hi,

just take a look at this function:

http://www.php.net/manual/en/function.array-keys.php
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

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



Re: [PHP] Java editor

2005-10-19 Thread Sascha Braun
Please take a look at http://mozile.mozdev.org/

This is a browser based solution. Pretty cool i find.

bye

Am Dienstag, den 18.10.2005, 23:52 -0400 schrieb John Taylor-Johnston:
 Is there a OS java (or other) html editor I can implement on a Web page. 
 I want a user to type text, use bold, italics, etc.
 I would then store the html in a MySQl record and then use php to insert 
 the edited text.
 I've seen some packaged, in Moodle for example.
 John
 

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



[PHP] Modular Authoring System

2005-10-19 Thread Sascha Braun
Hi,

I am now working on a concept for a webportal software in about 2 and a
halv year. As far as I am in the development of the project I was able
to write an authoring system with support of unlimited language transla-
tions and xml based frontend/screen engine.

All html forms and screens are generated via parsed xml frontend tem-
plates. The navigation elements are consisting of xml elements too.

Alot of things can be done, without the developer has to write html or
php code very much.

The media asset management system is able to convert images, videos and
in near future audio files to any format the player needs to play the
video or audio file without use of mplayer-plugin or windows media pla-
yer.

I wrote a question catalog management system, with which it is very easy
to add question catalogs to the content management system, so individual
services can be offered to customers, by evaluation of the user given
answers to the system.

The user management has a very detailed rights management, and the user
profiles are consisting of xml profile element templates which are
editable, thru the form engine, which is reading the xml profile tem-
plates and is displaying them as forms.

The screentext management is a nice frontend to the screentext database,
in which all frontend screentexts are stored, while the documents of the
content management system are entered by a special xml editor i wrote,
with wich the webauthor dont has to be able to know any html tags or
such things, so write content for the website.

In future i want to add the possebility to the editor, that authors are
going to be able to add tables, generated by the GD lib, so informations
cant just be grabbed by other companys too easy, so informations cant
really be stolen. And i want to add a frontend to the JPGraph lib, so
the authors will be able to enter values into the documents they are
working on, to add diagrams to the document.

I nice working template engine has to be written, so the design of the
hole page can change by daytime or the time of the year.

I added a cronjob management tool, so alot of tasks can be executed
timed as needed. If a customer of an couple finder service want to get
out of his contract, it can be done automatically to the end of the
month, without the site administrators have to do anything about it.

The Online shopping module should consist of a kind of neural network to
find out, what kind of products is fitting best to a customer with
specific account values based on the question catalog management tool.

Later I want to add an tracking system, a product managment system, and
marketing management tool, a statistics tool and many other things.

The hole system is build up modular and is based on php5.

No other programmer did ever take a look at this system, so I dont
really now, if my design is well, or if my php code is just wellformed.

I'm went to work alone, because i did so in the last 8 years.

My question is now, as this concept and the authoring system itself is
not opensource at the moment. If somepeople would like to take a look at
it, and maybe discuss with me, wheather to make it opensource, or
letting it stay as a commercial project.

My only goal is, to set up the webportals I have written concepts for in
the last couple of years. But the project is now comming into a size
where its nearly impossible to start anything new, because there still
are alot of holes in the modules.

And my pressure is growing abit.

All i can say, that is is possible to set up a content management based
website including webdesign and all other things can be done with the
authoring system in about 4 - 6 days, instead of one or two month, it
would take to write something like that on your own if you dont use all
of the modules the authoring system is consisting of at the moment.

I'm not the best programmer, but I'm good in software design and concep-
tion. So it would be really nice, to have some people around, who can
take care abit about the quality of the project. And maybe make use of
it, like i want too.

So best regards,

and lets make it happen :)))

Sascha Braun

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



[PHP] Emacs?

2003-02-26 Thread Sascha Braun
How many Persons in this List are using Emacs as there default Editor?

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



Re: [PHP] explode( , $pizza)

2003-02-25 Thread Sascha Braun
Hi,

i found something like:

var s = This,is,a,String;
lenght = s.lenght;
document.write(s.bold());
t = s.substring(2,4);
a = s.split(,); // This line is the most interesting one ;))

document.write(a[1]); // should write the word 'is'

Dont know if it works, i just looked in one of my old books.

The Book where i found the answer is from O'Reilly: Javascript
the defenetive reference or some like that, another very very good
book is Dynamic HTML from O'Reilly, you should find all infor-
mation you need there.

Good luck!

Sascha

- Original Message - 
From: John Taylor-Johnston [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 7:21 AM
Subject: [PHP] explode( , $pizza)


 Off topic :) ?
 Anyone know how to explode using javascript?
 
 $pieces = explode( , $pizza);
 
 John
 
 
 -- 
 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] Live chat screen

2003-02-25 Thread Sascha Braun
Try to take a look at PHP Socketprogramming and
Flash XML Sockets, this is one of the most usable
ways of handling things like that.


- Original Message -
From: Sami Kyösti [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 2:34 PM
Subject: [PHP] Live chat screen


 Hi!

 Is it possible to create a chat screen that updates screen in some kind
 of loop from the database?

 So if someone sends a message to database it immediately shows on chat
 screen?

 Kind regards,
 Sami


 --
 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] internal site search

2003-02-19 Thread Sascha Braun
You forgot this one...

http://swish-e.org/



- Original Message -
From: olinux [EMAIL PROTECTED]
To: David Otton [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 4:53 AM
Subject: Re: [PHP] internal site search


 Option 2b. - there are several great open source site
 indexers available.

 I really like htdig http://www.htdig.org.
 mnogosearch http://www.mnogosearch.org is another
 often mentioned.

 Search Tools for Web Sites and Intranets
 http://www.searchtools.com

 Open Source Search Engines
 http://www.searchtools.com/tools/tools-opensource.html

 olinux


 --- David Otton [EMAIL PROTECTED]
 wrote:
  On Tue, 18 Feb 2003 13:35:14 +, you wrote:
 
   i wanna make an internal site search, i wanna
  search my internal html
  pages and php pages..and i have no clue how to do
  thatany help!!!
 
  Choices
 
  1. Embed a Google search that only searches within
  your site. Eg
 
 

http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=search+engines+site%3
Ayahoo.com
 
  2. Buy an off-the-shelf product that will spider
  your site locally and
  create an index
 
  3. Do your own plain-text search against your
  database (eg
  http://www.mysql.com/doc/en/Fulltext_Search.html) If
  you have
  significant content outside the database, you'll
  have to search the
  HTML, too.
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 


 __
 Do you Yahoo!?
 Yahoo! Shopping - Send Flowers for Valentine's Day
 http://shopping.yahoo.com

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




[PHP] Set Current Array Pointer

2003-02-18 Thread Sascha Braun
Hi Folks,

is it possible to set the pointer of an array to a specific
key or value of the array, so i can write an array navi-
gation script?

Maybe there is a way to use pos() to set it to a specific
place in the array, but i dont know how.

Please help me.

Sascha

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




[PHP] Global Vars = Off Windows/Linux Differeces???

2003-02-10 Thread Sascha Braun
Hi,

I've made a website and because of presentationproblems I changed the oldstyle
vars to the new globalvars mode (Hope its the right name for it, dont know if
$_SESSION['user'] is a global or it is not???).

Now the Website works perfect on my WAMP System with Apache 1.3.27 and
PHP 4.3.0, but on my Linux Server the Login Functionality of the Website lets
the User log in (Sessionmanagement is used at this point), but as i click on a
link, the area where the username of the registered user should be shown, it
shows just a number and doesnt let me log out. Instead it just shows a 0.
Normaly it should be possible to do a login again from this point.

On Windows everything works just fine.

The Linux Machine is an Debain Woody / Apache 1.3.27 / php 4.2.3

Please help me, because my customers will jump on my neck if I dont, 
find out, where the problem is located.

Hope you'll help me!

Thanks very much

Sascha



Re: [PHP] WYSIWIG CMS Part1

2003-02-10 Thread Sascha Braun
I know how XML works and how a wellformed document may look
like, but I must say, I really dont know why I should use XML as long
I store everything in a Database.

I've read about all good CMS Systems use XML as a musthave, but I
don't understand why.

Would be nice, if you would explain me which data I should store in
XML and why.
Maybe its usefull together with big Customer Management Systems,
or do you have other Ideas?

Please discuss a little about it with me, I would find it very interesting
:))

CYA

Sascha

- Original Message -
From: Aaron [EMAIL PROTECTED]
To: Sascha Braun [EMAIL PROTECTED]
Sent: Sunday, February 09, 2003 11:43 PM
Subject: Re: [PHP] WYSIWIG CMS Part1


 look into using XML if you havent already.


 Sascha Braun wrote:

 Ok,
 
 overspoken. I'm going to write my basic CMS Concept here, and let us see
 what happens then. My Multilanguage Frontend Engine has even finished,
 but still needs a nice Admin Frontend to do the translation of the
Frontend.
 
 Ok, lets start. Later I will tell some about the things which I could not
really
 understand yet, maybe somebody is able to help.
 
 Tasks of the CMS (I called it freecon, dont know if there is something
similar):
 
 1. Template Engine
 2. Design Management
 3. Article Management
 4. Content Management
 5. User Management
 6. Customer Management
 7. Message Management
 
 1. The Template Engine should help developers to easy build Websites
based
 on the CMS. The only Thing the Developer has to do, is to develop an
static
 HTML Webpage Design and replace all the Visitor viewable and Admin
viewable
 textparts with special CMS Based Tags. As there is possibility to write
parts
 of the CMS as Modules, it would be very nice if fx. the customer login
could
 consist of a small code sniped and a border (Table and Images fx.) so the
 developer can easely change the design of the page, probably with the
Design
 Management.
 
 2. The Design Management is part of the Administration Kit for the CMS.
With
 this tool you should be able to change the Design of the Templates and if
you
 used the CMS Based Tags you should be able to upload new parts of the
 homepage design and change the hole page look, with a few mouseclicks.
 So there has be an Design Table in the Database or an configuration file,
 where all the Imageparts are stored and together build the page look and
 feel. The CSS Stylesheet should the be changeable to a lot of forms, seen
 in phpbb or other nice templated website tools.
 
 3. The Article Management should be part of the Admin Interface where you
 can deside, of which parts an article should be consist. Fx. an Article
could
 possibly consist of an Headline, Introduction, Shortdescription,
Description,
 1 Image, 2 Images and much more. So it would be nice, if the Admin could
 give some orders on which parts a text may consist of and which design
you
 should be able to chose from. When you want to write a new Newstext and
 the Admin decided that newstexts should consist of an headline and a
short
 description toghether with the maximum of 1 Picture, you will chose when
 you want to create the text in which language you want to create it and
you
 will enter an custom frontend for the article, where only the form fields
are
 visible you may use to write the article, when you wanted you create the
article
 in more than one language, you will able to choose if you want to see all
forms.
 (I mean for the different translations on one page or you will be able to
enter the
 translate mode, where you will see fx, headline in english and an empty
headline
 form below for Italian language, But Later Ill explain more about the
article mana-
 gement). I choosed to do it in this way, because it will reduce the space
needed
 by the database enormously, because there is an table which only holds
the head-
 lines, in all languages, and another one only holds the introductions, in
all langua-
 ges, and so on.
 
 4. The Content Management, I started to explain in 3. a little about how
it should
 work. Now I will get a little deeper into it.
 
 When your Chief decides that you should write an article, he starts
entering a new
 title or headline for the task and sets the priority and chooses in which
language
 the article should be translated in. After he did this, he chooses
between his em-
 ployes who should write this article, if he doesnt direktly choose one,
he can
 choose the knowledge which the employe needs to have (At this point fits
the
 usermanagement I'll explain later). After he has did all this, one or a
couple of
 of employes will receive an email, that there is a new task to do. When
the Chief
 only choosed one special employe only one will get the message on the
other hand
 of he choosed somebody who knows a lot about PHP and there are ten people
in
 the company who know a lot of php all these ten people will receive the
message unless
 one of the does not speak or is able to write text in one of the needed
languages.
 
 When

Re: [PHP] WYSIWIG CMS Part1

2003-02-10 Thread Sascha Braun
Mh, I don't really know, but I think smarty is even better,
because XSL Stylesheets have to be translatet by an extra
Server Engine, so everything can be translatet into HTML,
so far as I know. So it is not possible to just work with an
standard Apache unless you install an extra XML Module
or special Apache Version on the Server.

Smarty can be used without installing some extra things, I
think. But really don't know either, because I never used
smarty before, just read a little about it ;)).

XML should maybe be used to store Configurationfiles and
Database Content into static files for exchanging the Content
with other Applikations like Quark Xpress or Indesign or
maybe to share it with with Cellphones (Which there is no
need to, because PHP is able to write XHTML).

I don't know if there is an XML/XSL Browser Around or
how the Data could be shown, if I would know I would
start to write all my Websites in XML, if this is possible.

Maybe someone knows a litte more and want to tell some
about.

Have a nice day!

Sascha


- Original Message -
From: Hardik Doshi [EMAIL PROTECTED]
To: Sascha Braun [EMAIL PROTECTED]; PHP General list
[EMAIL PROTECTED]; Aaron [EMAIL PROTECTED]
Sent: Monday, February 10, 2003 3:55 PM
Subject: Re: [PHP] WYSIWIG CMS Part1


 I have a same question in my mind about XML.

 I have another question in my mind too.

 If we are using smarty template engine in our
 development then what is need of XML and XSLT for
 presentation layer? I think XML and XSLT work is
 automatically done in smarty template engine. Am i
 right? Please correct me if i am wrong. Let me know
 which one is good to use smarty engine or XML,XSLT for
 seperating interface and php code?

 thanks

 Hardik

 --- Sascha Braun [EMAIL PROTECTED] wrote:
  I know how XML works and how a wellformed document
  may look
  like, but I must say, I really dont know why I
  should use XML as long
  I store everything in a Database.
 
  I've read about all good CMS Systems use XML as a
  musthave, but I
  don't understand why.
 
  Would be nice, if you would explain me which data I
  should store in
  XML and why.
  Maybe its usefull together with big Customer
  Management Systems,
  or do you have other Ideas?
 
  Please discuss a little about it with me, I would
  find it very interesting
  :))
 
  CYA
 
  Sascha
 
  - Original Message -
  From: Aaron [EMAIL PROTECTED]
  To: Sascha Braun [EMAIL PROTECTED]
  Sent: Sunday, February 09, 2003 11:43 PM
  Subject: Re: [PHP] WYSIWIG CMS Part1
 
 
   look into using XML if you havent already.
  
  
   Sascha Braun wrote:
  
   Ok,
   
   overspoken. I'm going to write my basic CMS
  Concept here, and let us see
   what happens then. My Multilanguage Frontend
  Engine has even finished,
   but still needs a nice Admin Frontend to do the
  translation of the
  Frontend.
   
   Ok, lets start. Later I will tell some about the
  things which I could not
  really
   understand yet, maybe somebody is able to help.
   
   Tasks of the CMS (I called it freecon, dont know
  if there is something
  similar):
   
   1. Template Engine
   2. Design Management
   3. Article Management
   4. Content Management
   5. User Management
   6. Customer Management
   7. Message Management
   
   1. The Template Engine should help developers
  to easy build Websites
  based
   on the CMS. The only Thing the Developer has to
  do, is to develop an
  static
   HTML Webpage Design and replace all the Visitor
  viewable and Admin
  viewable
   textparts with special CMS Based Tags. As there
  is possibility to write
  parts
   of the CMS as Modules, it would be very nice if
  fx. the customer login
  could
   consist of a small code sniped and a border
  (Table and Images fx.) so the
   developer can easely change the design of the
  page, probably with the
  Design
   Management.
   
   2. The Design Management is part of the
  Administration Kit for the CMS.
  With
   this tool you should be able to change the Design
  of the Templates and if
  you
   used the CMS Based Tags you should be able to
  upload new parts of the
   homepage design and change the hole page look,
  with a few mouseclicks.
   So there has be an Design Table in the Database
  or an configuration file,
   where all the Imageparts are stored and together
  build the page look and
   feel. The CSS Stylesheet should the be changeable
  to a lot of forms, seen
   in phpbb or other nice templated website tools.
   
   3. The Article Management should be part of the
  Admin Interface where you
   can deside, of which parts an article should be
  consist. Fx. an Article
  could
   possibly consist of an Headline, Introduction,
  Shortdescription,
  Description,
   1 Image, 2 Images and much more. So it would be
  nice, if the Admin could
   give some orders on which parts a text may
  consist of and which design
  you
   should be able to chose from. When you want to
  write a new Newstext and
   the Admin decided that newstexts

Re: [PHP] Shopping Cart

2003-02-10 Thread Sascha Braun
Shopping Carts are pretty easy to write.

Just make a new table in your mysql DB and
then write a session_id together with the sku
and name, color, size, quantity and maybe
customer_id into the the new shoppingcart table.

When you want to show the shopping carts
content just do an select from the carts table.

As I save the prices into an extra table I do a
SELECT * FROM basket, price, item
WHERE basket.sku = item.sku
AND item.price = price.key

Later i use a price.q1 field and multiply it with
the quantity of the item to get the full price.

Hope this helps you a little.

Sascha

- Original Message -
From: Chris Cook [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 09, 2003 10:35 PM
Subject: [PHP] Shopping Cart


 Hello everybody,

 I am interested in designing a site with a shopping cart. I have several
 years of programming experience in php and perl, but I have never made a
 shopping cart.

 I was looking into some of the already made shopping carts and was
wondering
 what peoples' experiences have been with already made shopping carts.
 Ultimately, I am wondering whether I should code it from scratch or not.

 Thanks in advance for any help,
 Chris


 _
 STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
 http://join.msn.com/?page=features/junkmail


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




[PHP] $_SESSION['user']['nickname'] = Herbert

2003-02-10 Thread Sascha Braun
Hi is something wrong with the above show argument?

Under Windows everything works fine under linux it just
shows me an 0 or 1, maybe for true or false, dont know.

Please help me, what did i do wrong???

Sascha

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




Re: [PHP] any windows php developers out here?

2003-02-10 Thread Sascha Braun
http://php.e-novative.de/ephp.php

Just look at this link, you will find a windows installer there,
it installs Apache, PHP, MySQL and phpMyAdmin just
from scratch, without you to know what you do ;)))

Sascha

- Original Message - 
From: Victor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 09, 2003 12:13 AM
Subject: [PHP] any windows php developers out here?


 Hello, I am wondering if any of you got a reliable php and MySQL
 installation (MySQL is easy) I am mostly wondering if there is a point
 in tying to use windows as a development platform for PHP. I have a nice
 and working red hat 8.0 installation, but I did an upgrade from 7.3 and
 now apache doesn't work cuz it wants me to switch form apache 1.X to 2.X
 and all I want is to erase the old apache and use the new one or erase
 the new one and use the old one, whichever works. But anyway... I also
 do design and I have people submit me illustrator and Photoshop files
 and word docs, so for now I might have to stick to windows for work. BUT
 what do u suggest? I it futile to try to get php to work in windows?
 With IIS preferably so that I can play with ASP and Cold Fusion once in
 a while. Please help if you are using windows with php and send me some
 instructions if you feel like it, much appreciated.
 
 - Vic
 
 __ 
 Post your free ad now! http://personals.yahoo.ca
 
 -- 
 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




[PHP] WYSIWIG CMS Part1

2003-02-07 Thread Sascha Braun
Ok,

overspoken. I'm going to write my basic CMS Concept here, and let us see
what happens then. My Multilanguage Frontend Engine has even finished,
but still needs a nice Admin Frontend to do the translation of the Frontend.

Ok, lets start. Later I will tell some about the things which I could not really
understand yet, maybe somebody is able to help.

Tasks of the CMS (I called it freecon, dont know if there is something similar):

1. Template Engine
2. Design Management
3. Article Management
4. Content Management
5. User Management
6. Customer Management
7. Message Management

1. The Template Engine should help developers to easy build Websites based
on the CMS. The only Thing the Developer has to do, is to develop an static
HTML Webpage Design and replace all the Visitor viewable and Admin viewable
textparts with special CMS Based Tags. As there is possibility to write parts
of the CMS as Modules, it would be very nice if fx. the customer login could
consist of a small code sniped and a border (Table and Images fx.) so the
developer can easely change the design of the page, probably with the Design
Management.

2. The Design Management is part of the Administration Kit for the CMS. With
this tool you should be able to change the Design of the Templates and if you
used the CMS Based Tags you should be able to upload new parts of the
homepage design and change the hole page look, with a few mouseclicks.
So there has be an Design Table in the Database or an configuration file,
where all the Imageparts are stored and together build the page look and
feel. The CSS Stylesheet should the be changeable to a lot of forms, seen
in phpbb or other nice templated website tools.

3. The Article Management should be part of the Admin Interface where you
can deside, of which parts an article should be consist. Fx. an Article could
possibly consist of an Headline, Introduction, Shortdescription, Description,
1 Image, 2 Images and much more. So it would be nice, if the Admin could
give some orders on which parts a text may consist of and which design you
should be able to chose from. When you want to write a new Newstext and
the Admin decided that newstexts should consist of an headline and a short
description toghether with the maximum of 1 Picture, you will chose when
you want to create the text in which language you want to create it and you
will enter an custom frontend for the article, where only the form fields are
visible you may use to write the article, when you wanted you create the article
in more than one language, you will able to choose if you want to see all forms.
(I mean for the different translations on one page or you will be able to enter the
translate mode, where you will see fx, headline in english and an empty headline
form below for Italian language, But Later Ill explain more about the article mana-
gement). I choosed to do it in this way, because it will reduce the space needed
by the database enormously, because there is an table which only holds the head-
lines, in all languages, and another one only holds the introductions, in all langua-
ges, and so on.

4. The Content Management, I started to explain in 3. a little about how it should
work. Now I will get a little deeper into it.

When your Chief decides that you should write an article, he starts entering a new
title or headline for the task and sets the priority and chooses in which language
the article should be translated in. After he did this, he chooses between his em-
ployes who should write this article, if he doesnt direktly choose one, he can
choose the knowledge which the employe needs to have (At this point fits the
usermanagement I'll explain later). After he has did all this, one or a couple of
of employes will receive an email, that there is a new task to do. When the Chief
only choosed one special employe only one will get the message on the other hand
of he choosed somebody who knows a lot about PHP and there are ten people in
the company who know a lot of php all these ten people will receive the message unless
one of the does not speak or is able to write text in one of the needed languages.

When of of the employes enters the page, the first thing he will look at is is task 
pool.
In the Task are stored all undone articles who need to be written. After the 
employe(from
now on just called user) did chose one of the tasks from the todo list the article 
will dis-
apear from all the other user pools. Till the first text in any of the chosed 
languages is
written completely the text will only apear in the tasks/todo list of the authoring 
user.
after this text has finished the author can choose, based on the user management, which
user or users are able to write the translations to the other languages. If the text 
has to be
translated into english, german, italian und french the user can choose between one out
of all french speaking and one of all italian speakin users or just send to text to 
all french
or italian 

[PHP] WYSIWYG CMS Part2

2003-02-07 Thread Sascha Braun
Parts which should be entered in the Site, but which are not written down yet:

1. Newsletter / Mailinglist Funktionality

The Newsletter should be part of the Article Management and work in the same way as
writing a new article.

Mailinglist is what ever it is. Maybe a Majodomo implementation or something else.

2. Maybe a nice webbased E-Mail Client for all the Users, so this webpage becomes a
very important position in a company and saves a lot of money, cause of all the 
technican
and installation support for MS-DOS Mailclients and so on.

And Maybe other things.

Now I will writte down the translation of my handwritten notes, maybe its a little 
repetition
of the part above, but maybe its good for the understanding.

Customers should be able to write commentarys to the Articles, The Author or the 
Administrator
should be able to choose if the arcticles are for the internal use or may be viewed 
from outer space.
Every Article is having a clear designator, consisting of charakters and a number.

Translation of Articles:

Every Employe has, after the login, access to his personal Tasks Pool. This pool 
consist of tasks
which where personaly assigned to him or tasks which are able to be worked out from 
multiple
persons.
Due to the Priority the User, he can decide which task he wants to do first, and start 
with the work.
After the user has choosen which task he wants to do, he is asked in which language he 
want to
to translate the article.
After this is done a mask/form is generated where the user sees the text in the 
choosen language
and can enter his translation below.
When the translation is done, the article is going to be written back in the pool of 
the main author,
who can decide if the text is ready to be published.
If the text is not ready the text can be written back to the pool of the translator of 
the article.
It should be possible to enter internal comments to the articles, which only the users 
of the admin
tool can see, and external comments from customers.

Entering Texts:

The CMS should, cause of an interaktive Inquiry of the needed functions, generate a,  
for the article
design, customized input mask.
The writing of the Content follows the given Sample:
The User wants to create an Article. He clicks on a button and and can decide in which 
languages
the text should be published in. In fact of the number of languages, there will be 
created an custo-
mized input mask.
1. Content written only in one language is going to be entered just on one page which 
consists of
some WYSIWYG Editor Elements Designed for the parts of the texts eg. Headline, Intro, 
Short,
description, Imageupload and so on.
2. Cause of the number of languages the content should be published in there will be 
generated
different customized input masks. First the text has to be written in you 
motherlanguage or 
language you are able to write in best. After this is done you will enter into some 
forms where
you see the first part you have done and down below that you will see a input mask 
where you
can enter the translation or choose a user who should do this translation for you.
When the text has to be written in the languages there will be three steps and forms 
you have
to work thru or you have to choose translaters for.
Fx.: The User is only able to do two of the needed translations, the user can 
explicitly define one
user to do the translation in a certain language or he is able to choose a group of 
users who are
able to speak the needed language.
3. If the User starts to work in an translation the task is going to hide in the pool 
of users who are
able to translate in the same language as the user. The Task doesnt hide in the pools 
of other
language speaking users as long the content is translated in a fully publishable 
language eg.
all parts of the text are translated.
4. For every texttranslation the Author is able to set a priotity bit.

User Management:

Every User may choose parts of the website he want to take part in developing content.
After the the Administrator has created a user account for the user, the user is able
to create a profile about his abilities.
Did the user enter a language into the porfile, which the CMS did not recognize all 
forms
are automatically exented with this new language, and the texts which should be trans-
lated to every language should automatically be shown in the pool of the user, so the
parts can be translated direcly into the new language.

Alternative to the Userprofile the Administrator is able to decide in which Field the 
user
should work in.

Ok, this was it.

How you will like what i though myself about. I can just send you the things i have 
done
until yet.

I wanted to past links to my work, but I have problems on installing freecon on my
webserver. Something is wrong with the PHP Configuration and today I dont have
time to find out.

the URL's are
http://bmc.customer.speedlink.de/freecon For the Frontend
http://bmc.customer.speedlink.de/freecon/admin 

Re: [PHP] WYSIWYG CMS Part2

2003-02-07 Thread Sascha Braun
Now it is fixed, and the language translation does work now the
right way. Its not much to see, but there is something to see. So
dont expect to much.

In http://bmc.customer.speedlink.de/freecon/admin/admin_from.php
is a small script which alows you to to enter a new language, but yet
there is no frontend for entering frontend translations into the DB
so if you want to do so, it has to be done with phpMyAdmin at:
http://bmc.customer.speedlink.de/phpMyAdmin
The Tables for the CMS are:
front_lang
page_kat
languages
art_desc
art_short
art_headline
art_images

Please excuse that they are not placed in an extra database but instead
in the weitsicht DB, something went wrong as i entered the freecon DB,
there for i just used the otherone.

The Server is not configured very nice, because as i got it i was not so
super well at jugling around with linux, and i began to install linux at
home. It took all my time to install XFree and all the other nice proggies
so i had no time for configuring the server anymore.

Ok, hope you will be satisfied for the moment.

Rock on.

Sascha



- Original Message -
From: Hatem Ben [EMAIL PROTECTED]
To: Sascha Braun [EMAIL PROTECTED]; PHP General list
[EMAIL PROTECTED]
Sent: Friday, February 07, 2003 4:32 PM
Subject: Re: [PHP] WYSIWYG CMS Part2


 Warning: Access denied for user: 'root@localhost' (Using password: YES) in
 /home/sascha/www/docs/freecon/includes/global.inc.php on line 8

 Warning: MySQL Connection Failed: Access denied for user: 'root@localhost'
 (Using password: YES) in
 /home/sascha/www/docs/freecon/includes/global.inc.php on line 8
 Fehler beim Öffnen der DB auf localhost User: root

 Take your time to install it :)))

 Cheers,
 Hatem

 - Original Message -
 From: Sascha Braun [EMAIL PROTECTED]
 To: PHP General list [EMAIL PROTECTED]
 Sent: Friday, February 07, 2003 4:27 PM
 Subject: [PHP] WYSIWYG CMS Part2


 Parts which should be entered in the Site, but which are not written down
 yet:

 1. Newsletter / Mailinglist Funktionality

 The Newsletter should be part of the Article Management and work in the
same
 way as
 writing a new article.

 Mailinglist is what ever it is. Maybe a Majodomo implementation or
something
 else.

 2. Maybe a nice webbased E-Mail Client for all the Users, so this webpage
 becomes a
 very important position in a company and saves a lot of money, cause of
all
 the technican
 and installation support for MS-DOS Mailclients and so on.

 And Maybe other things.

 Now I will writte down the translation of my handwritten notes, maybe its
a
 little repetition
 of the part above, but maybe its good for the understanding.

 Customers should be able to write commentarys to the Articles, The Author
or
 the Administrator
 should be able to choose if the arcticles are for the internal use or may
be
 viewed from outer space.
 Every Article is having a clear designator, consisting of charakters and a
 number.

 Translation of Articles:

 Every Employe has, after the login, access to his personal Tasks Pool.
This
 pool consist of tasks
 which where personaly assigned to him or tasks which are able to be worked
 out from multiple
 persons.
 Due to the Priority the User, he can decide which task he wants to do
first,
 and start with the work.
 After the user has choosen which task he wants to do, he is asked in which
 language he want to
 to translate the article.
 After this is done a mask/form is generated where the user sees the text
in
 the choosen language
 and can enter his translation below.
 When the translation is done, the article is going to be written back in
the
 pool of the main author,
 who can decide if the text is ready to be published.
 If the text is not ready the text can be written back to the pool of the
 translator of the article.
 It should be possible to enter internal comments to the articles, which
only
 the users of the admin
 tool can see, and external comments from customers.

 Entering Texts:

 The CMS should, cause of an interaktive Inquiry of the needed functions,
 generate a,  for the article
 design, customized input mask.
 The writing of the Content follows the given Sample:
 The User wants to create an Article. He clicks on a button and and can
 decide in which languages
 the text should be published in. In fact of the number of languages, there
 will be created an custo-
 mized input mask.
 1. Content written only in one language is going to be entered just on one
 page which consists of
 some WYSIWYG Editor Elements Designed for the parts of the texts eg.
 Headline, Intro, Short,
 description, Imageupload and so on.
 2. Cause of the number of languages the content should be published in
there
 will be generated
 different customized input masks. First the text has to be written in you
 motherlanguage or
 language you are able to write in best. After this is done you will enter
 into some forms where
 you see the first part you have done and down below that you will see a
 input mask where you
 can

Re: [PHP] WYSIWYG Content Management system?

2003-02-06 Thread Sascha Braun
I am working on such a CMS right yet.

I want to implement infinitly Language Support and an Wordpad
like HTML Editor which allows you to chose basic design tem-
plates and lets you upload some images.

I want to build an extraordinary Usermanagement, where you can
write parts of an Text while somebody else is writing on another
Part of the same text maybe in different language at the same Time.

When you wrote a text you can chose between your mates for
let them make the translation based on userprofiles every web-
content admin has to fill out.

And a lota more things, but right now i dont have very much time,
I have to build a small shop inbetween. But the Multilanguage sup-
port ist basically finished.

But I may say some more, have you ever read about the execCommand
in IE (Internet Explorer)? You can build an fully working wysiwyg HTML
Editor with these commands. I'm going to send you a nice example after-
wards Hardik.

Maybe somebody wants to help me with the CMS System. I dont really
like the Design of PHPNuke and I want to build an even more professional
Article Management than it is developed in phpnuke.

See Ya

Sascha

- Original Message -
From: Hardik Doshi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 05, 2003 3:32 PM
Subject: Re: [PHP] WYSIWYG Content Management system?



 Hey Jason,
 I am looking for the same. Do you have or any one in this list has any
idea? Please let me know.
 thanks
 Hardik
  Jason Wong [EMAIL PROTECTED] wrote:On Wednesday 05 February 2003
09:43, J J wrote:
  I've seen CMS systems like phpnuke but it's kind of
  overkill for what I need and almost more news like.
  I'm looking for something that would allow the user to
  change content, change/upload images, all in a wysiwyg
  style so it's easy to see and use.
 
  It'd be cool to be able to login to the admin area,
  select a page to edit, and it would allow you to
  preview the page just like it looks. Then you click
  on a text area or image you want to update.
 
  Is there a CMS that allows for WYSIWYG like editing
  but will work within specified headers/footers, style
  sheets, etc? Then the site content would all be
  generated on the fly from php/mysql.

 All the major/popular ones would/should have been registered at freshmeat
and
 soureforge so check them out.

 --
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 You're already carrying the sphere!
 */


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



 -
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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




Re: [PHP] content type header for downloading files

2003-01-30 Thread Sascha Braun
Hi, I would like to test you code in my webpage, but
i dont really know how to get along with path informations
like ../images/pictures/image24.jpg

Do I have to split the string in multiple parts, so i at last only
got the picture name? But how then do i open the file?

- thru fopen() or something equal or how do you do it?

Please gimme some more informations if you like :))

Greetings

Sascha

- Original Message -
From: Ernest E Vogelsinger [EMAIL PROTECTED]
To: Dara Dowd [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 10:27 AM
Subject: Re: [PHP] content type header for downloading files


 At 02:04 30.01.2003, Dara Dowd said:
 [snip]
 $fname is the name of the file i want to download. It works in IE, as in
the
 name of the file to be downloaded appears correctly in the dialog box. I
 changed 'application/octet' to 'application/octet-stream' and this had no
 effect.
 [snip]

 This is what I do to transmit a file for a save-as download, and it works
 in all browsers I know and have tested the same (Netscape, IE, Opera/Win;
 Mozilla, Konqueror et al. / Linux):

 header('Content-type: application/octet-stream');
 header('Content-length: ' . strlen($this-export));
 header('Content-Disposition: attachment' .
 (empty($fname) ? '' : ';filename='.$fname.'.csv'));
 echo $this-export;
 exit();

 Note that it seems to be necessary to surround the filename using quotes
to
 make it work correctly.



 --
O Ernest E. Vogelsinger
(\)ICQ #13394035
 ^ http://www.vogelsinger.at/



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




Fw: [PHP] help needed with session variables

2003-01-28 Thread Sascha Braun
Isnt it better to do it in this way?

session_start();
session_register('USER');

$USER['valid'] = true;
$USER['firstname'] = $first_name;
$USER['lastname'] = $last_name;

Then I really know what I am doing!

Good luck

Sascha


- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Pushpinder Singh Garcha [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, January 27, 2003 11:02 PM
Subject: Re: [PHP] help needed with session variables


 Are you sure $first_name and $last_name have a value? Double check...

 ---John Holmes...

 - Original Message -
 From: Pushpinder Singh Garcha [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 27, 2003 4:44 PM
 Subject: [PHP] help needed with session variables


 hello,

 I am making use of sessions in my PHp/MySQL Database application. When
 the user is successfully authenticated against the database, a session
 is created in following manner:


 session_register(valid_user,firstname,lastname);

 $valid_user = $login;
 $firstname  = $first_name;
 $lastname   = $last_name;

 While I  am able to use the $valid_user variable all thru the sesion ,
 when I try to use the $valid_user it works fine (i.e. I am able to
 access the value) throughout the session, however when I try to use the
 other two registered session variables i.e firstname and lastname,  I
 am not able to extract the value.  Can you suggest what might be going
 wrong. Note I am locally testing the setup on my Mac.

 Many Thanks
 Pushpinder Singh Garcha
 _
 Web Architect


 --
 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] Transition Page?

2003-01-28 Thread Sascha Braun
If there is really need for such a page, my first guess was, as i thought about
it, to enter the content, which is responsible for the upload in a invisible frame.

For an invisible Frame you just have to make a frameset, where you only can
see one part of the frame frameset rows=*,1 or some like that, and on the
other hand you are just making your transition page. after your upload is finished
you just have to run a javascript parent.location.href= command.

Dont know if it works but just give it a try.

mh, dont know if it really works, have no time yet, would be nice to know :))

Greetings

Sascha


[PHP] Problems with Fileupload

2002-10-10 Thread Sascha Braun

Hi freaks,

my image library isn't still finished yet, but it's running and with a
running system are comming new problems up.

I remember that there was a discussion about big file uploads.

It seems, that i stepped into the same trap, 'cause my web-
server doesn't accept more than two uploads each upload
session. I wrote a script which should make it possible to
upload 10 files at a time. The files are up to 3 MB each so
I had to set up the upload_max_filesize in php.ini to an 
amount of 50 MB Data. But it seems, that there still can
be uploaded about 5 or 6 MB in two files at a time.

Would be nice if somebody could tell me about made
experiences.

Thank you very much.

Sascha Braun



[PHP] Date Arithmetic

2002-10-01 Thread Sascha Braun

I have a small but hard to solve problem to solve.

Wrote a Select Query for my webpage.

The query should select all values which where
written into the DB the last seven Days.

I thought everything was working fine, but now
the month has changed and everything went
wrong.

My Select Query is not able to go into the Last
month in calculation.

I don't really know how to manage this problem.

Please Help

Here is the Query:

$Query = SELECT * FROM bild_db WHERE datum  '.date('Y') . '-' . date('m') . '-' . 
(date('d') - $_REQUEST['days']) . ' 00:00:00'.';

Another code snipped:

? echo date('Y') . '-' . date('m') . '-' . (date('d') - 7); ?

The code will work fine as long you are not at the beginning
of the month. Or in the first six days.

Good luck

Sascha



[PHP] Header Content x-tar

2002-09-28 Thread Sascha Braun

Hi Erwin,

and anyone else too.

It's me again. Maybe you are able to solve another problem for me.

The last Scriptcode I returned to you is working fine in IE6 and below
(I believe), but a friend of mine tried to download a tared file with IE
on MacOS. After checking this behaviour (I'm not really able to do a
real check, because I'm not really able to understand what really
happens with theese mime-types), I thought about to check it in 
Netscape too, and later Mozilla in Mac and Win, but it worked
nowhere else than in IE 6 until now. In Netscape the download
starts and a 10 KB file is safed to disk called download.php. In
Mozilla the download starts and a file named picture_name.tar.php
is safed. Size 10KB. The main picture Size is still 406 KB, packed
as a Tar File it's 410 KB.

Thats the problem I need a solvation for.

I read something about theese headers on php.net. There was
an workaround for the circumstace that the download would not
start in IE but not in the other direction.

So please, if you know some more, please share it with me.

There are only two days left, to finish my project. So I'm really
in trouble. After this projekt I will step up and start learning Linux
and Apache configuration to the fullest.

So later I maybe will be an helpfull guy too.

Greetz

Sascha

PS.: Just for remembrance, the old working samplecode:

!-- download.php --
?
Header('Content-Type: application/x-tar');
Header(Content-disposition: filename=.$_REQUEST['name']..tar);
$dir = explode(/, $_REQUEST['image']);
chdir('../images/'.$dir['0']./.$dir['1']./.$dir['2']./);
$command = 'tar -cf - '.$_REQUEST['name'].'.jpg';
passthru($command);
// Insert the download into order_db for statistic use
include('global.inc.php');
$Query = INSERT INTO order_db (id, user_id, image_id, date, time) ;
$Query .= VALUES 
('','.$_REQUEST['customer_id'].','.$_REQUEST['image_id'].','.date('Y-m-d').','.date('H:i:s').');
mysql_query($Query, $connect);
? 



[PHP] Header content x-tar

2002-09-28 Thread Sascha Braun

Hi,

I think I could solve the problem on my own.

Thanks anyone for listening, thanks!

Sascha



[PHP] Imagemagick Mailinglist

2002-09-28 Thread Sascha Braun

Hi,

I need some discussion about the imagemagick library.

Does anyone know some about an good Imagemagick Mailinglist?

Please send me some Links if you got some ;)

Thanks very much

Sascha



Re: [PHP] mkdir() failed: Permission denied

2002-09-28 Thread Sascha Braun

I've made many dirs:

$path_to_dir = '../';
  $images = 'images/';
  $year = date('Y').'/';
  $month = date('m').'/';
  $source = 'jpg/';
  $thumbs = 'thumbs/';
  $preview = 'preview/';
  $files = $HTTP_POST_FILES['image'];
  $path = $path_to_dir.$images.$year.$month.$source;
  if(!file_exists($path_to_dir.$images.$year)) {
   mkdir($path_to_dir.$images.$year, 0755);
   if(!file_exists($path_to_dir.$images.$year.$month)) {
mkdir($path_to_dir.$images.$year.$month, 0755);
if(!file_exists($path_to_dir.$images.$year.$month.$source)) {
 mkdir($path_to_dir.$images.$year.$month.$source, 0755);

But you need to be the owner of the dir where you want to create another dir
and the permissions have to allow you to make some dirs.

The abowe script doesn't work unless you close the if () { constructs.


 Ok, I'm confused.. tell me how to make a directory, please.

 Phil
 - Original Message -
 From: Sascha Braun [EMAIL PROTECTED]
 To: Phil Powell [EMAIL PROTECTED]
 Sent: Saturday, September 28, 2002 3:53 PM
 Subject: Re: [PHP] mkdir() failed: Permission denied


  You have to be the owenr too and maybe set the permission to 755.
 
 
   Ok, I am stuck.  I am trying to create a folder in the same directory
as
   process.php and then use
 move_uploaded_file($FILES['myImage]['tmp_name'])
   and it constantly fails:
  
   mkdir() failed (Permission denied)
  
   Here is my code:
  
   ?
 $willChangeLayout = 1; $isEmptyLayoutValues = 1;
  
 foreach ($_POST as $key = $val) {
  if (strcmp($key, isDefaultLayout) == 0) $willChangeLayout = 0;
  if (!empty($_POST[$key])) $isEmptyLayoutValues = 0;
  ${$key} = $val;
 }
  
 // SERVER-SIDE VALIDATION
 if ($willChangeLayout  $isEmptyLayoutValues)
  header(Location:  . $refURL . ?errorMsg= . urlencode(Please
fill
  out
   all required fields));
  
 // FILE UPLOAD HANDLING
  
 $attempt = mkdir(/users/ppowell/web/my/images, 0655);
  
 if (is_uploaded_file($_FILES['myImage']['tmp_name']))
  move_uploaded_file($_FILES['myImage']['tmp_name'],
   /users/ppowell/web/my/images/ . $_FILES['myImage']['name']);
  
  
   ?
  
   Please someone tell me what I'm doing wrong :(
  
   Thanx
   Phil
  
  
  
   --
   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




Fw: [PHP] php on apache on win2k

2002-09-27 Thread Sascha Braun


- Original Message -
From: Sascha Braun [EMAIL PROTECTED]
To: Vic [EMAIL PROTECTED]
Sent: Friday, September 27, 2002 10:02 AM
Subject: Re: [PHP] php on apache on win2k


 Hi Vic,

 the Apache DLL resides in the php/sapi folder.

 But if you use Apache Version 2000 and above you have to change
 load_module c:/php/sapi/php4apache.dll to c:/php/sapi/php4apache2.dll

 After that you only have to put the last following lines named in the
 install.txt
 in the httpd.conf.

 But it's not pobably working when you put these line direktly under the
 load_module option. Search thru the httpd.conf and find out where it may
 fit best.

 I had another problem when I installed PHP4.2.3 together with apache
2.0.42.
 Hole PHP did't work to an unchangable error. So at last I installed the
 CGI Version of PHP. If you are able to to this in a different way,
 please remind me and tell me how you did it and what Apache Version
 you used for it.

 Have it nice

 Sascha Braun



  I used to have php 4.2.3 on iis on 200 and xp and it worked fine, but I
  decided o now go with apache for open source's sake and the sake of my
  sanity.
 
  Well right now my sanity is in question, php tells me that I have to
  manually config the apache conf file - no prob here done this many
  times; but it tells me to add theis line here:
 
  LoadModule php4_module c:/php/sapi/php4apache.dll
 
  Now I don't see php4apache.dll anywhere in sight.
 
  What I do see is: php4ts.dll; and I wonder if the documentation is
  outdated. - (or if I am a complete fool)
 
  Either way I get this error when running the apache test:
 
  Cannot load blah blah module blah blah LoadModule php4_module
  c:/php/sapi/php4apache.dll
 
  Not only that, but I see no sapi anywhere in c:/php/
 
  Ok, cool, now what? Any help?
 
  - Victor - www.argilent.com
 
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
 
 
  __
  Post your ad for free now! http://personals.yahoo.ca
 
  --
  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




[PHP] Tar Files and send back to browser

2002-09-26 Thread Sascha Braun

Hi,

I want to make some people download files the server tar's on demand.

But i don't know really how to send the files back to the browser.

I used the following command for taring the file:

? 
$command = 'tar -c '.$arrResult['name'].'.tgz ../images/'.$arrResult['image'];
system($command);
?

This command starts taring, I think, but fills the browser window with the pure code 
of the tar file I belive. How can I make it behave different. When I search for the 
tar on the webserver I can't find it anywhere.

Please Help

Sascha



Re: [PHP] Re: Tar Files and send back to browser

2002-09-26 Thread Sascha Braun

Now I tried to use your script:

$_REQUEST['image'] is =
'../images/2002/09/jpg/ls006022_pettersson_johan.jpg';

?
Header('Content-Type: application/x-gzip');
$command = 'tar -cf - ../images/' . $_REQUEST['image'] . ' | gzip -cf';
system( $command );
?

It opens the download dialog again and lets me download the archive, but
it's named
download.gz (How can I change it to ls006022_pettersson_johan.gz?)

And if I open it with winrar it says, the content is named 'download' Size
is about
160 bytes, seems to be correct. when I try to extract the files there
pops up
an error message which says: Unexpected end of archive.

Have you got a sollution on that?

Grettings

Sascha


  Hi Erwin,

 Hi Sascha,

 
  I tried to put the Header at top of the page. After this it opens an
  download window
  in the browser. But the download seems to be damaged. What can I do
  about this?
 
  My commandline looks like this:
 
  ?
  Header( 'Content-Type: application/x-tar' );
  $command = 'tar -c '.$arrResult['name'].'.tgz
  ../images/'.$arrResult['image'];
  system($command);
  ?

 Ah...well...you are creating a tar file, named $arrResult['name'], with
 $arrResult['image'] as contents.
 You're creating this .tar file with the extension .tar.gz...which is
wrong,
 because that has to be .tar

 After that you are using the system() function to print the output to a
 user...the output from the tar -c command will NOT be a tarred archive,
but
 probably will return nothing...

 Try the following:

 ?
 Header( 'Content-Type: application/x-gzip); // CHANGED!!!
 $command = 'tar -cf - ../images/' . $arrResult['image'] . ' | gzip -cf'
 system( $command );
 ?

 Step by step:
 tar -cf - filename | gzip -cf

 The first part: tar -cf - filename. With the -c argument, you'll create
a
 new archive. The -f option specifies the output. In this case, the output
is
 '-', which is STDOUT.
 The second part: gzip -cf. The -c options will print the output of the
gzip
 command to STDOUT, the -f option will force the output

 Between those two commands is a pipe (|). This character pipes the output
 from the first program to the second, so the output of the tar command
will
 be given to gzip, which will create a .tar.gz ( or .tgz) file for you!

 Also, if the arrResult['image'] file is given by a user, take a good look
at
 http://www.php.net/escapeshellarg. If you get this value from a database,
 which is secure (e.g. only contains items which you inserted), then you
 don't have to worry about that...

 I hope this helps?

 Greetz,
 Erwin




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




Re: [PHP] Re: Tar Files and send back to browser

2002-09-26 Thread Sascha Braun


Seems to work not that bad, but I got another Question.

Why isn't there anything in the archive?

This is my code yet:

?
Header('Content-Type: application/x-tar');
Header(Content-disposition: attachment;
filename=.$_REQUEST['name']..tar);
$command = 'tar -cf - ../images/' . $_REQUEST['image'];
passthru($command);
?

I did put away the gzip routine couse I find it a little nerving if i always
have to open
two files ;)

The source pictures size is 406 KB, the download is about 340 KB in size,
isn't it wrong a bit?

Greetings

Sascha

PS.: Isn't it wrong, when I write greetings in english? Sounds so german,
what could i write else? Thank you very much.



  Now I tried to use your script:
 
  $_REQUEST['image'] is =
  '../images/2002/09/jpg/ls006022_pettersson_johan.jpg';
 
  ?
  Header('Content-Type: application/x-gzip');
  $command = 'tar -cf - ../images/' . $_REQUEST['image'] . ' | gzip -
  cf'; system( $command );
  ?
 
  It opens the download dialog again and lets me download the archive,
  but it's named
  download.gz (How can I change it to ls006022_pettersson_johan.gz?)

 Add another header (another one???) ;-))
 Header( 'Content-Disposition: attachment;
 filename=ls006022_pettersson_johan.gz' );

  And if I open it with winrar it says, the content is named 'download'
  Size is about
  160 bytes, seems to be correct. when I try to extract the files
  there pops up
  an error message which says: Unexpected end of archive.
 
  Have you got a sollution on that?

 Yes...my mistake, use passthru( $command ) instead of system( $command )

 Grtz Erwin



 --
 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] Re: Tar Files and send back to browser

2002-09-26 Thread Sascha Braun

Ok, somebody told me, the archive contains the Image, only winrar seems not
to show the image, grrr.

I tried the gzip method and it did not work that fine for me.


 Sascha Braun wrote:
  Seems to work not that bad, but I got another Question.
 
  Why isn't there anything in the archive?

 It works in here (just tested it), I don't know why it's empty (don't stop
 reading here!!! :-) )

 
  This is my code yet:
 
  ?
  Header('Content-Type: application/x-tar');
  Header(Content-disposition: attachment;
  filename=.$_REQUEST['name']..tar);
  $command = 'tar -cf - ../images/' . $_REQUEST['image'];
  passthru($command);
  ?

 Nothing wrong with this...

 By the way, make sure there is no newline in the second Header:

 Header(Content-Disposition: attachment;
 filename=.$_REQUEST['name']..tar);

 I don't know if the mailingprogram breaks this line, but it's one line
(just
 in case).

  I did put away the gzip routine couse I find it a little nerving if i
  always have to open
  two files ;)

 ;-))

  The source pictures size is 406 KB, the download is about 340 KB in
  size, isn't it wrong a bit?

 That's wrong...tar doesn't compress...a tar archive does have a small
 footprint (about 1k-2k with one file), so the tar file should ALWAYS be
 bigger than the source file(s)...

 H...thinking about this...I'm sure you would like compression instead
of
 archiving. Use gzip only instead of tar:

 - Set the header back to application/x-gzip
 - Change the command to gzip -c filename

 I'm very curious if you get any (correct) output then...

  Greetings
 
  Sascha

 Greets back :)
 Erwin

  PS.: Isn't it wrong, when I write greetings in english? Sounds so
  german, what could i write else? Thank you very much.

 Try Greets or Thanks in advance ;-))
 Greetings sounds (to me) more like what you say at the start of a
 conversation.


 --
 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] Re: Tar Files and send back to browser

2002-09-26 Thread Sascha Braun

Do you know how to exclude the path informations in the tar archive?


 Sascha Braun wrote:
  Ok, somebody told me, the archive contains the Image, only winrar
  seems not to show the image, grrr.

 ;-))
 That's why...i did see the image too!

  I tried the gzip method and it did not work that fine for me.

 Hmz...too bad, because you will get smaller downloads then (use Winzip
;-) )

 Grtz Erwin


 --
 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] Re: Tar Files and send back to browser

2002-09-26 Thread Sascha Braun

IT'S WORKING, GOOD DAMN, IT'S WORKING!

Yo, this was a really hard Job, if I look at the working snipped below!

?
Header('Content-Type: application/x-tar');
Header(Content-disposition: filename=.$_REQUEST['name']..tar);
$dir = explode(/, $_REQUEST['image']);
chdir('../images/'.$dir['0']./.$dir['1']./.$dir['2']./);
$command = 'tar -cf - '.$_REQUEST['name'].'.jpg';
passthru($command);
?

Ey man, this was the second Time you helped me out,

Thanks alot. You are really a great PHP Guru I believe.

So, if my page is finished you will be one of the first Persons
to watch it.

I'm really glad, that you are such an helpfull guy.

So, stay helpfull! - Untill next time.

Thanks really a lot!

Sascha


 Sascha Braun wrote:
  Do you know how to exclude the path informations in the tar archive?
 
 Yes, first chdir to the ../images directory
 http://www.php.net/getcwd
 http://www.php.net/chdir
 
 Grtz Erwin
 
 -- 
 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




[PHP] Searchengine

2002-09-26 Thread Sascha Braun

Hi again,

when I was verifying my search funktions on my webpage, I came thinking of,
how I will be able to build a search that would be able to find words which
are spelled incorrect.

I came to this point, 'cause I have a name in my Database called pettersson.
Some people believe this guy is written peterson ot petersson.

But I want all my visitors to find Him in each cases.

I read myself thru Rexular Expressions in MySQL and read thru
Fulltext searches thru MATCH() AGAINST() but I think, it would
not do what i want.

I remember an OpenSource Shop System called Interchange(MiniVend)
written in perl, which had failuretollerant search thru the use of egrep.
But I dont know how it works.

I hope I can find someone here, who has done something like that before.

I know it's not easy. So if you could help me a little, i would be very
pleased.

Have it nice!

Sascha



[PHP] Newsletter Script

2002-09-25 Thread Sascha Braun

Hi,

I wanted to write an Newsletter script. So I created two tables in my Database. One is 
storing the Newsletters and one is Storing the bunch of folks who want to have them.

Everything works fine, I can write the Newsletter very easy in my selfwritten admin 
tool, but when I send the Newsletter
only the first person in the list it getting this awfull Newsletter.

Here is the script which sends out the Newsletter:

if ($_REQUEST['action'] == 'send') {

 $Query = SELECT * FROM newsletters_db WHERE id = '.$_REQUEST['id'].';
 $Result = mysql_query($Query, $connect);
 $arrResult = mysql_fetch_array($Result, MYSQL_ASSOC);
  $MailQuery = SELECT * FROM newsletter_db;
  $MailResult = mysql_query($MailQuery, $connect);
  $subject = $arrResult['head'];
  $message = $arrResult['text'];
  while ($arrMailResult = mysql_fetch_array($MailResult, MYSQL_ASSOC)) {
  
   mail($arrMailResult['address'], $subject, $message,
 From: webmaster@$SERVER_NAME\r\n
.Reply-To: info@$SERVER_NAME\r\n
.X-Mailer: PHP/ . phpversion()) or die(mysql_error());
  }
 echo 'p class=text01Newsletter erfolgreich verschickt./p';
}

Would be nice if i could get a hint =O)

Sascha



Re: [PHP] Why my php pages are cached in browsers?

2002-09-25 Thread Sascha Braun

In the german apache Mailinglist somebody wrote some like this:

a) aktivate the modul mod_expires.so
b) Fill in the lines
# enable expirations
ExpiresActive On
# expire php pages after a minute in the client's cache
ExpiresByType text/php A6

into httpd.conf

But I don't really know if it works (:0

Thought about I maybe have to write

application/x-httpd-php

instead of text/php

Please tell me if it works

Sascha




  In browsers, my php pages are cached. All the code that is returned by
php
  are stored. In version 4.1 this not ocurred, anybody can help me?

 First: Check if you send headers:
   header('Pragma: no-cache');
   header('Expires: Thu, 01 Jan 1970 01:00:00 GMT');
   header('Cache-Control: no-cache, must-revalidate, private');

 Second: If your appache sends HTTP 1.0 try to change to HTTP 1.1.
 HTTP 1.0 do not know Cache-Control.


 --
 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] Jpeg resize quality problem

2002-09-24 Thread Sascha Braun

Try to use Imagemagick for better quality, it's even easyer to use also.

Ciao

- Original Message -
From: Michael F. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 24, 2002 7:23 PM
Subject: Re: [PHP] Jpeg resize quality problem



 But what is this convert function? (I use WinXP)
 Or how can I install the imlib extension?

 Thanks!


 Marek Kilimajer [EMAIL PROTECTED] az alábbiakat írta a következo
 hírüzenetben: [EMAIL PROTECTED]
  The algoritm gdlib uses is fast but worst. Use either exec(convert
  ...) or imlib extension
 
  Michael F. wrote:
 
  Hello,
  
  I have a php script which resizes a jpeg file.  I use ImageCopyResized
 and
  ImageJPEG function. But the result picture quality is not enough good.
I
 use
  ImageJPEG with quality = 90 but the picture is not as nice as a picture
I
  made with AcdSee and 65%.
  Is it normal?
  
  Thanks!
  
  
  
  
  
  
 



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




[PHP] PHP Installation under WinXP Apache 2.0.39

2002-09-24 Thread Sascha Braun

I have a small problem I'm not able to solve.

I wanted to install PHP 2.2.3 under WinXP together with an
Apache 2.0.39, but after installation and reconfiguration of
all Ini's and conf files the service did not start again.

After starting the Apache manually from command´line it
stops with the following error (translatet from german) :

Syntax Error on line 174 of C:/Webverzeichnis/bin/apache/conf: Cannot load 
C:/Webverzeichnis/bin/php/sapi/php4apache2.dll into server:
Procedure could not be found.

All Pathes are correct.

What causes this error? Is it an failure in php.ini or what did i do wrong.

Please gimme a hint.

Sascha



[PHP] Update undefined List Values in DB

2002-09-22 Thread Sascha Braun

Hi,

I am creating a kind of Shopsystem right now.

One of the Funktions is going to be the possibiliy that the page admin can set an 
customer status to 1 or 0
via an listing of all customers.

My Problem is, that I have to change more than one value at a time due to the Listing, 
where all
customers are listed in one big list.

So I have to write multiple values in to the database as Update.

I don't have a clue how to do this, the only thing i could do is
to make the change possible via an extrapage per customer,
but I'm not able to change all values at a time.

Would be nice if somebody would give me a hint.

Please excuse my english

Sascha Braun



[PHP] Redirection

2002-09-22 Thread Sascha Braun

Hi,

I want to post a form and after parsing i want to redirect the user to the home page.

header() doesn't work in this circumstance, what can I do else?

Greetings

Sascha



[PHP] getimagesize error

2002-09-20 Thread Sascha Braun

Please can somebody help my, why i get this errormessage:

Warning: getimagesize: Unable to open '../images/2002/11/jpg/' for reading. in 
C:\Webverzeichnis\docs\living_sports\living_sports\lsadmin\includes\image.handling.inc.php
 on line 852

While the echo $name says winter.jpg f.x.:

 echo $name;
  $size = getimagesize($path_to_dir.$images.$year.$month.$source.$name);
  if ($size[0]  $size[1]) {
   $faktor = ($size[1]/120);
   $newWidth = ($size[0]/$faktor);
   $command = 'convert -size 120x'.$newWidth.' 
'.$path_to_dir.$images.$year.$month.$source.$name.' -resize 120x'.$newWidth.' +profile 
* '.$path_to_dir.$images.$year.$month.$thumbs.$name;
   system($command);
   $Query = UPDATE bild_db SET thumb = '.$year.$month.$thumbs.$name.' WHERE 
bild_db.name = '.$name.';
   mysql_query($Query,$connect) or die(mysql_error());
  } else {
   $faktor = ($size[0]/120);
   $newHeight = ($size[1]/$faktor);
   $command = 'convert -size '.$newHeight.'x120 
'.$path_to_dir.$images.$year.$month.$source.$name.' -resize '.$newHeight.'x120 
+profile * '.$path_to_dir.$images.$year.$month.$thumbs.$name;
   system($command);
   $Query = UPDATE bild_db SET thumb = '.$year.$month.$thumbs.$name.' WHERE 
bild_db.name = '.$name.';
   mysql_query($Query,$connect) or die(mysql_error());
  }


Please gimme a hint

Sascha



[PHP] getimageresize error

2002-09-20 Thread Sascha Braun

I found out, that always when my script ist executed, 
one $HTTP_REQUEST_FILE is empty.

so the scripts writes the pics where I want it and 
tries to convert one none existing file.

But why?

Sascha



[PHP] Global Vars

2002-09-18 Thread Sascha Braun

Hi Everone,

for my newest projekt i started to use global var like $_REQUEST['varname'] and so on.

But in some cases i started again to use old var mode.

Finally i have read some about there is need to define the vars, before I'm going to 
create
the source for my webpages.

But how can i make definitions like form action=test.php?action=update 
method=post
working without usage of hidden fields.

Or links like test.php?action=update and so on.

Please gimme a hint

Sascha



[PHP] PHP Installation

2002-09-18 Thread Sascha Braun

Hi Peops,

I need some help for an PHP Installation.

I did uninstall my apache on my domain. I reinstalled it again and now want to install 
PHP again.

I believe all option in httpd.conf are correct. My Linux Distribution is: RedHat 7.3

I looked into the Modules Direktory from Apache and I could find an libphp4.so, but no 
mod_php.
I did download the final release of PHP 4.2.3 and started to ./configure it.

It told me at last something about the cgi installation and some things i dont 
understand,
so i feel very insecure.

Please help me a little.

Sascha Braun



Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Sascha Braun

Yeah,

I believe so, but you could reinitialize them when you jump to the other
webserver, or you use one
mysql database for sessionmanagement for both webservers.

Ciao

Sascha


- Original Message -
From: David Buerer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 18, 2002 7:38 PM
Subject: [PHP] Sessions /Cross Domain


 Are sessions domain specific?

 What I mean is this.

 Suppose I have two websites:
 secure.web.com
 www.web.com http://www.web.com
 and both web sites point to the same set of data.

 If I looking at web page http://www.web.com/index.html
 http://www.web.com/index.html  and have a set of session variables
defined
 and then I call the page https://secure.web.com/index.html
 https://secure.web.com/index.html  do I still have access to the same
 session variables?



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




Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Sascha Braun

Normaly you store SESSION Data in variables.

When you make the step to another domain, you should reassign a new Session
and
give to data of the old session to the new one.

Or isn't is possible to put some date behind an url like
www.somedomain.com?check=itout=mh

If you are working with databases you just have to take some values out of
your session,
like username and password, or some like this and find out, what data in the
database belongs
to this user (basket, or viewed artikels)

But you still need to work with one database for both servers, or write all
data to both databases
(Server1  Server2)

Am I wrong are would this work out?

Sascha


- Original Message -
From: David Buerer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 18, 2002 7:48 PM
Subject: RE: [PHP] Sessions /Cross Domain


 I do have control over the content of both domains...in fact right now
it's
 the identical contenteven the same physical data store on the disk, I
 just seem to be losing session variables for one reason or another.

 DAvid

 -Original Message-
 From: Robert Cummings [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 11:06 AM
 To: David Buerer
 Cc: '[EMAIL PROTECTED]'
 Subject: Re: [PHP] Sessions /Cross Domain


 Domains are specific, and so you do not get the same sesion variables.
 here's are
 ways around this, but you need control of the content of both servers.

 Cheers,
 Rob.

 David Buerer wrote:
 
  Are sessions domain specific?
 
  What I mean is this.
 
  Suppose I have two websites:
  secure.web.com
  www.web.com http://www.web.com
  and both web sites point to the same set of data.
 
  If I looking at web page http://www.web.com/index.html
  http://www.web.com/index.html  and have a set of session variables
 defined
  and then I call the page https://secure.web.com/index.html
  https://secure.web.com/index.html  do I still have access to the same
  session variables?

 --
 .-.
 | Robert Cummings |
 :-`.
 | Webdeployer - Chief PHP and Java Programmer  |
 :--:
 | Mail  : mailto:[EMAIL PROTECTED] |
 | Phone : (613) 731-4046 x.109 |
 :--:
 | Website : http://www.webmotion.com   |
 | Fax : (613) 260-9545 |
 `--'



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




Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Sascha Braun

That seems to be a more perfekt way.

Honorabel, nice.

Sascha

- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Sascha Braun [EMAIL PROTECTED]
Cc: PHP Mailingliste [EMAIL PROTECTED]; David Buerer
[EMAIL PROTECTED]
Sent: Wednesday, September 18, 2002 8:16 PM
Subject: Re: [PHP] Sessions /Cross Domain


 Sascha Braun wrote:
 
  Yeah,
 
  I believe so, but you could reinitialize them when you jump to the other
  webserver, or you use one
  mysql database for sessionmanagement for both webservers.

 Not exactly true, since if they jump to another server, you can make the
 assumption they have a session cookie if they referrer is given, or if you
 set their session ID in the URL. This however breaks down if they don't
 click to the second site but go there without using the first as a jump
 point. A sneakier, but more effective solution IMHO, is to bury an
invisible
 1x1 pixel in the first site which is located on the second server and vice
 versa in the second site. This 1x1 pixel should actually be a PHP script
and
 you pass it the newly generated session ID, or permanent cookie ID, so
that
 the second site can synch up on the same ID, which is only really useful
if
 they use a shared database :)

 Cheers,
 Rob.
 --
 .-.
 | Robert Cummings |
 :-`.
 | Webdeployer - Chief PHP and Java Programmer  |
 :--:
 | Mail  : mailto:[EMAIL PROTECTED] |
 | Phone : (613) 731-4046 x.109 |
 :--:
 | Website : http://www.webmotion.com   |
 | Fax : (613) 260-9545 |
 `--'

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




[PHP] Installation

2002-09-18 Thread Sascha Braun

All these installation docs are just driving me crazy.

How am I installing PHP 4 any version on my RedHat 7.3 Server.

Isn't it done by an RPM easily?

Bye

Sascha



[PHP] Image Upload

2002-09-11 Thread Sascha Braun

Hi Freaks,

I got a problem to solve. This script i wrote seems to have an failure but I don't 
know why.

The Error Message is telling me, that I don't have the permission to do the action I 
want to do. I thought it has some to do with my windows apache installation, but on 
linux its the same behavior.

  if(!file_exists('../images/upload_tmp')) {
   $dir = '../images/upload_tmp';
   mkdir($dir);
   chmod($dir, 07557);
   $path = dirname($PATH_TRANSLATED).$dir.'/';
   for ($i = 0; $i  10; $i++) {
switch($i) {
 case $i:
  $source = $image[$i];
  $source_name = $image_name[$i];
  break;
}
if ($source  none) {
 if ($error  1) {
  $dest = $path.$source_name;
  if (copy($source, $dest)) {
   echo 'strong'.$source_name-'/strong wurde hochgeladenbr';
  } else {
   echo 'Schreibrechte im Zielverzeichnis fehlenbr';
   $error = 1;
  }
 }
 unlink($source);
}
   }
  } else {
   echo 'Verzeichnis ist vorhanden';
  }


If want the script to upload mulitple files, so the form is made like this:

input name=image[] type=file class=formfield size=31

Will this be working ?


Thanks



[PHP] Image upload

2002-09-11 Thread Sascha Braun

Please Excuse,

the code must look like this:


  if(!file_exists('../images/upload_tmp')) {
   $dir = '../images/upload_tmp';
   mkdir($dir);
   chmod($dir, 0777);
   $path = dirname($PATH_TRANSLATED).$dir.'/';
   for ($i = 0; $i  10; $i++) {
switch($i) {
 case $i:
  $source = $image[$i];
  $source_name = $image_name[$i];
  break;
}
if ($source  none) {
 if ($error  1) {
  $dest = $path.$source_name;
  if (copy($source, $dest)) {
   echo 'strong'.$source_name-'/strong wurde hochgeladenbr';
  } else {
   echo 'Schreibrechte im Zielverzeichnis fehlenbr';
   $error = 1;
  }
 }
 unlink($source);
}
   }
  } else {
   echo 'Verzeichnis ist vorhanden';
  }



[PHP] upload

2002-09-11 Thread Sascha Braun

This is the original code:

?

  if(!file_exists('../images/upload_tmp')) {
   $dir = '../images/upload_tmp';
   mkdir($dir);
   chmod($dir, 0777);
   $path = dirname($PATH_TRANSLATED).$dir.'/';
   for ($i = 0; $i  10; $i++) {
switch($i) {
 case 0:
  $source = $image1;
  $source_name = $image_name1;
  break;
 case 1:
  $source = $image2;
  $source_name = $image_name2;
  break;
 case 2:
  $source = $image3;
  $source_name = $image_name3;
  break;
 case 3:
  $source = $image4;
  $source_name = $image_name4;
  break;
 case 4:
  $source = $image5;
  $source_name = $image_name5;
  break;
 case 5:
  $source = $image6;
  $source_name = $image_name6;
  break;
 case 6:
  $source = $image7;
  $source_name = $image_name7;
  break;
 case 7:
  $source = $image8;
  $source_name = $image_name8;
  break;
 case 8:
  $source = $image9;
  $source_name = $image_name9;
  break;
 case 9:
  $source = $image10;
  $source_name = $image_name10;
  break;
}
if ($source  none) {
 if ($error  1) {
  $dest = $path.$source_name;
  if (copy($source, $dest)) {
   echo 'strong'.$source_name-'/strong wurde hochgeladenbr';
  } else {
   echo 'Schreibrechte im Zielverzeichnis fehlenbr';
   $error = 1;
  }
 }
 unlink($source);
}
   }
  } else {
   echo 'Verzeichnis ist vorhanden';
  }

?



[PHP] Upload

2002-09-11 Thread Sascha Braun

This is the Error Message:

value of $source : C:\WINNT\TEMP\php98.tmp

Error:

0
Warning: Unable to open '' for reading: Permission denied in 
C:\Webverzeichnis\docs\living_sports\living_sports\lsadmin\includes\image.handling.inc.php
 on line 129



[PHP] Imagemagick

2002-09-02 Thread Sascha Braun

Hi,

I want to use Imagemagick together with PHP, but I'm not able to find some 
documentation for it.

I've read, that some people are buildung an PHP Module for Imagemagick.

And how is the --with-imagemagick command working, when I compile PHP?

Is it possible to compile Imagemagick into PHP on a Windows System for testing?

Or is it just better to set up an Linux Webserver for my test runs.

Where can I find some docs?

PLEASE HELP

Schura



[PHP] Script Execution via URL

2002-08-31 Thread Sascha Braun

Hi everybody,

i wrote a script which will be executed by HREF's. If a command is going to be 
executed by a click on a link the page reloads itself and jumps
in the part of the script, which should be executed.

Normaly I wrote some like this for doing this:

echo 'a href='.$PHP_SELF.'?action=deleteid='.$arrResult['id'].' class=text01';

but now in a very special case i forgot to write $PHP_SELF like this

a href=?action=deleteid='.$arrResult['id'].' class=text01

without knowing that I have forgotten to write this $PHP_SELF thing I clicked on the 
Link and i did execute the Script, like i wanted it to.

Is it normal that it works so fine? Can I use this everytime I link on the same page 
for script execusion?

Can I send Forms via an PHP Function like the submit() statement in Javascript?

Have a nice day, and please answer.

Sascha Braun



[PHP] UPDATE Query

2002-08-31 Thread Sascha Braun

I want to know if its possible to update two databases with one query?

Please look at this example:

UPDATE news_db, newsreferenz_db SET news_db.head = 'DFB Pokalasfasf', news_db.text = 
'alkfhaslk fl akshf lakshf lkahs lfk aslf yxvyxvyxvyxv', newsreferenz_db.kat_id = '3' 
WHERE news_db.id = '6' AND newsreferenz_db.news_id = '6'

it doesn't work.



[PHP] crone job for iptc image creation

2002-08-20 Thread Sascha Braun

Hi,

I want to build up an image library for the first time and there are some problems to 
solve.

I need to create a cron job (whatever this may be) for picking up pictures in an 
special folder and extracting the iptc text fields in the images and write them to a 
DB. On the other hand the cronejob should create jpeg preview images on the fly and 
also create small thumbnails.

I'm not the super dupa PHP Programmer and need some informations or help about doing 
this. If you got some information or scripts you would like to provide, please send me 
an email.

Ciao, Folks

Schura



Re: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Sascha Braun

Can't you use a fopen('$file','r+'); or some like this instead?

Otherwise, I don't use vars to store includes in.

I always use constructs like this:

include('/path-to-file/file-name.inc.php');

But what happens when you put a file via fopen() driektive into an array? -
Will it be parsed later on?

Schura

- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: 'Harry.de' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 6:25 PM
Subject: RE: [PHP] include opens source, but it shouldn't


 [snip]
 why does include always opens my included file
 although it is defined as a variable

 Example:

 $file=include(/myfile/myfile.txt/);

 shouldn't it only be opend by typing

 echo $file;
 [/snip]

 The include() opens the file to place it in the variable, in other words
 include means READ INTO. Therfore
 $file=READ INTO THIS FILE(/myfile/myfile.txt/);

 HTH!

 Jay

 I'm really easy to get along with, once you people learn to worship me

 ***
 * Texas PHP Developers Conf  Spring 2003  *
 * T Bar M Resort  Conference Center  *
 * New Braunfels, Texas*
 * San Antonio Area PHP Developers Group   *
 * Interested? Contact [EMAIL PROTECTED] *
 ***



 --
 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] include opens source, but it shouldn't

2002-08-15 Thread Sascha Braun

What happens to a javascript, which only is able to hold code snippets in
one lined vars (if u understand what i mean);

But my Content, comming from my Database (HTML) is longer than a javascript
line. And I put it there for in an php variable?

It will be the same, or?

Schura (O;?


- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: 'Jay Blanchard' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 7:03 PM
Subject: RE: [PHP] include opens source, but it shouldn't


 [snip]
 [snip]
 What is in the file? Do you have a print($file) or echo somewhere? Does
the
 included file have print() or echo() in it?

 No, in the file is only html
 [/snip]

 There you go ... HTML will be parsed by the browser and displayed. So it
is
 doing exactly what it is supposed to do.
 [/snip]

 Are you wanting to place the file into the variable so that you can echo
it
 out later? That is an extra step that you do not need. Just place the
 include() function where you want it to appear.

 HTH!

 Jay

 ***
 * Texas PHP Developers Conf  Spring 2003  *
 * T Bar M Resort  Conference Center  *
 * New Braunfels, Texas*
 * San Antonio Area PHP Developers Group   *
 * Interested? Contact [EMAIL PROTECTED] *
 ***



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




[PHP] Frames and PHP

2002-08-15 Thread Sascha Braun

I have some links wich open a new window, wich contains some frames. Each frame 
selects something from a database, based on an id i put an the window open link. But 
the ID never enters one of my frames, it terribly stays outside, maybe in the frame 
set, what can I da about that?

Schura



Re: [PHP] Frames and PHP

2002-08-15 Thread Sascha Braun

Yo,

i found out how it is working. I just have to make some adds to the url, as
i did to the window.open() too.

Was easy, but if you never made it before ;OP

Thanx

Schura


- Original Message -
From: Brian V Bonini [EMAIL PROTECTED]
To: Sascha Braun [EMAIL PROTECTED]; PHP Mailingliste
[EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 11:09 PM
Subject: RE: [PHP] Frames and PHP


 Are you saying $id is not passed some of your frames content but not
others
 or it does nto get passed at all?

  -Original Message-
  From: Sascha Braun [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 4:34 PM
  To: PHP Mailingliste
  Subject: [PHP] Frames and PHP
 
 
  I have some links wich open a new window, wich contains some
  frames. Each frame selects something from a database, based on an
  id i put an the window open link. But the ID never enters one of
  my frames, it terribly stays outside, maybe in the frame set,
  what can I da about that?
 
  Schura
 



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




Re: [PHP] Frames and PHP

2002-08-15 Thread Sascha Braun

Now my frameset looks like this:

!-- frames --
frameset  rows=25,*,25 border=0
frame name=popwinhead src=includes/popwin.head.inc.php?id=? echo
$_REQUEST['id'] ? marginwidth=0 marginheight=0 scrolling=no
frameborder=0 noresize
frame name=popwincontent src=includes/popwin.inc.php?id=? echo
$_REQUEST['id'] ? marginwidth=0 marginheight=0 scrolling=auto
frameborder=0 noresize
frame name=popwinfoot src=includes/popwin.foot.inc.php
marginwidth=0 marginheight=0 scrolling=no frameborder=0 noresize
/frameset

works fine!



- Original Message -
From: Brian V Bonini [EMAIL PROTECTED]
To: Sascha Braun [EMAIL PROTECTED]; PHP Mailingliste
[EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 11:09 PM
Subject: RE: [PHP] Frames and PHP


 Are you saying $id is not passed some of your frames content but not
others
 or it does nto get passed at all?

  -Original Message-
  From: Sascha Braun [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 4:34 PM
  To: PHP Mailingliste
  Subject: [PHP] Frames and PHP
 
 
  I have some links wich open a new window, wich contains some
  frames. Each frame selects something from a database, based on an
  id i put an the window open link. But the ID never enters one of
  my frames, it terribly stays outside, maybe in the frame set,
  what can I da about that?
 
  Schura
 



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




[PHP] Search Engine

2002-08-15 Thread Sascha Braun

Whats wrong with this code?

? 
 $arrSearch = explode( , $_REQUEST['string']);
 $RSQuery = SELECT * FROM referenzen_tbl;
 if (strlen($arrSearch)  0) { // Überhaupt einschränken?
  $Query .=  WHERE (;
  $Query .=  referenzen_tbl.kat LIKE '% . $arrSearch[0] . %';
  $Query .=  OR referenzen_tbl.head LIKE '% . $arrSearch[0] . %';
  $Query .=  OR referenzen_tbl.text LIKE '% . $arrSearch[0] . %';
  $Query .=  OR referenzen_tbl.technik LIKE '% . $arrSearch[0] . %';
  $Query .=  OR referenzen_tbl.year LIKE '% . $arrSearch[0] . %');
 // mehrere Suchwörter sind UND-Verknüpft
 for($i = 1; $i  count($arrSearch); $i++) {
  $Query .=  AND (;
  $Query .=  referenzen_tbl.kat LIKE '% . $arrSearch[$i] . %';
  $Query .=  OR referenzen_tbl.head LIKE '% . $arrSearch[$i] . %';
  $Query .=  OR referenzen_tbl.text LIKE '% . $arrSearch[$i] . %';
  $Query .=  OR referenzen_tbl.technik LIKE '% . $arrSearch[$i] . %';
  $Query .=  OR referenzen_tbl.year LIKE '% . $arrSearch[$i] . %');
  }
 }
 $Result = mysql_query($Query, $connect);
 if (mysql_fetch_row($Result)0) {
  echo Es wurden keinen Beitrauml;ge zu b.$_REQUEST['string']./b;
 } else {
  echo Die Suche war erfolgreich!;
  while ($arrResult = mysql_fetch_array($Result, MYSQL_ASSOC)) {
   echo 'p class=text01';
   echo $arrResult['referenzen_tbl.kat'].br;
   echo $arrResult['referenzen_tbl.head'].br;
   echo $arrResult['referenzen_tbl.text'].br;
   echo $arrResult['referenzen_tbl.technik'].br;
   echo $arrResult['referenzen_tbl.year'].br;
   echo '/p';
  }
 }
?

I know that there is a result comming out of the string i entered, but these failure 
messages are comming up when i load the page:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in 
C:\Webverzeichnis\docs\schuraWeb\includes\result.inc.php on line 40

Die Suche war erfolgreich!

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource 
in C:\Webverzeichnis\docs\schuraWeb\includes\result.inc.php on line 44

This is my global inc from where the $connect comes:

?
$host = 'localhost'; // SQL Server zu dem eine Verbindung aufgebaut werden soll.
$user = 'root'; // Name des SQL Benutzers
$pass = 'none'; // Kennwort des SQL Benutzers
$dbase = 'weitsicht'; // Datenbank

// Verbindung zum SQL Server wird hergestellt
$connect = mysql_connect($host, $user, $pass) or die(Fehler beim Öffnen der DB auf 
$host User: $user Kennwort: $pass);
// Datenbank wird ausgewählt
$Query = USE .$dbase;
$selectDB = mysql_query($Query, $connect) or die(Konnte Datenbank aus folgenden 
Gründen nicht auswählen: . mysql_error());
?

Please Help!

Schura





[PHP] Search Engine

2002-08-15 Thread Sascha Braun

Excuse me, this is line 40 in the script...

if (mysql_fetch_row($Result)0) {

... and this is line 44...

while ($arrResult = mysql_fetch_array($Result, MYSQL_ASSOC)) {





[PHP] Credit Card Transactions and Micropayment

2002-08-14 Thread Sascha Braun

Hello,

while I'm building a very nive page for buying images over the web, but there are some 
parts of the site where the development not is evaluated to the end. (Hope you all 
understand this sentence.)

One part will be the payment module. I read the parts about the creditcard security in 
this mailinglist very carefully and got some new questions about that theme.

Are there some ways of using a micropayment system together with PHP? - Maybe 
something where Customers can see the Amount of Money they have to pay, and then they 
do a phonecall to e specific number and then the page redirects teh customer to a 
downloads page where the user can receive his picturepackage.

Or how does the cybercash module in PHP work? I saw it in the php.ini, but could not 
find it in the extensions dir.

What else can I do for my customers to have an secure payment possibility?

It would be very usefull for me and maybe for others to discuss these points in the 
list.

So I hope, somebody will share his or hers knowledge.

Thanks

Sascha Braun

-
www.weitsicht.org




Re: [PHP] Re: mysql statement (still a semi newbie)

2002-08-14 Thread Sascha Braun

I'm always making my inserts like this:

$Insert = INSERT INTO basket_db (name, image_id, customer_id, session_id)
;
$Insert .= VALUES ('$name', '$image_id', '$customer_id', '$PHPSESSID');

...and I'm using the SET Field = '$Value' in the Update Querys like this:

$UpdateQuery = UPDATE produkt ;
$UpdateQuery .= SET produkt_name = '$produkt_name', ;
$UpdateQuery .= size = '$size', kategorie = '$kategorie' ;
$UpdateQuery .= WHERE produkt_key = '$produkt_key';

hope it helps someone out ;o)

Schura


- Original Message -
From: Tim Stoop [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 11:00 PM
Subject: [PHP] Re: mysql statement (still a semi newbie)


 Alexander Ross wrote:

  That first column is an auto_incrementing column so i don't want any
data
  INSERT INTO cast VALUES(DEFAULT, 'Rick', 'Blaine', 'Humphrey', 'Bogart',
  'male');

 I think you need to use NULL instead of DEFAULT... I'm not 100% sure. Just
 try it :)

 --
 Kind regards,
 Tim

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




[PHP] SESSION Security

2002-08-14 Thread Sascha Braun

Is it possible that someone from outside can read the session stored
on my webserver for getting unencrypted password and usernames?

Schura



Re: [PHP] SESSION Security

2002-08-14 Thread Sascha Braun

So, if somebody gets an ftp account somehow, he will be able to get session
vars via a system() command?


- Original Message -
From: Ilia A. [EMAIL PROTECTED]
To: Sascha Braun [EMAIL PROTECTED]; PHP Mailingliste
[EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 1:27 AM
Subject: Re: [PHP] SESSION Security


 If a person 'somehow' gains read access to the directory where the
sessions
 are stored on your server, then yes it is possible for them to get the
 session id.

 Ilia

 On August 14, 2002 06:41 pm, Sascha Braun wrote:
  Is it possible that someone from outside can read the session stored
  on my webserver for getting unencrypted password and usernames?
 
  Schura


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

2002-08-14 Thread Sascha Braun

So, the system() command allows a user only to start services in his own
home direktory?




- Original Message -
From: Ilia A. [EMAIL PROTECTED]
To: Sascha Braun [EMAIL PROTECTED]; PHP Mailingliste
[EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 1:36 AM
Subject: Re: [PHP] SESSION Security


 On August 14, 2002 07:03 pm, Sascha Braun wrote:
  So, if somebody gets an ftp account somehow, he will be able to get
session
  vars via a system() command?

 If their FTP client allows them to go into the directory where session ids
are
 stored, then that user will be able to see current session ids. On most
 servers FTP clients are setup to only allow user access to their own home
 directory.

 Ilia

 
 
  - Original Message -
  From: Ilia A. [EMAIL PROTECTED]
  To: Sascha Braun [EMAIL PROTECTED]; PHP Mailingliste
  [EMAIL PROTECTED]
  Sent: Thursday, August 15, 2002 1:27 AM
  Subject: Re: [PHP] SESSION Security
 
   If a person 'somehow' gains read access to the directory where the
 
  sessions
 
   are stored on your server, then yes it is possible for them to get the
   session id.
  
   Ilia
  
   On August 14, 2002 06:41 pm, Sascha Braun wrote:
Is it possible that someone from outside can read the session stored
on my webserver for getting unencrypted password and usernames?
   
Schura
  
   --
   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




[PHP] mysql_num_rows($Result)

2002-08-14 Thread Sascha Braun

Mh,

right yet I have another problem. I want to select a username an a =
password from a database. The Values for tghe select are stored in a =
session variable.

And my problem is, that when I run the Query there is no difference in =
the mysql_num_rows($Result)

it both time (When the User is in the Database, or the Username is =
emtpy) 0.

How am i able to ckeck the value to do some branching?

Schura




Fw: [PHP] SESSION Security

2002-08-14 Thread Sascha Braun

 Yeah,

 I guess I meant that! - The Attacker just needs to upload a nice PHP Script
 wich is able to spy all serverpathes, maybe via phpinfo() and then open
each
 file stored in the session tmp path via dir_list() funktion, hope this was
 the right funktion, but there are some, with php it's easy to browse the
 hole server i think, via the file funktions.

 Puh, I'm sweating to much...

 hard to write.

 Schura


 - Original Message -
 From: Bas Jobsen [EMAIL PROTECTED]
 To: Sascha Braun [EMAIL PROTECTED]; PHP Mailingliste
 [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Thursday, August 15, 2002 12:30 AM
 Subject: Re: [PHP] SESSION Security


 
  Op donderdag 15 augustus 2002 01:03, schreef u:
   So, if somebody gets an ftp account somehow, he will be able to get
 session
   vars via a system() command?
 
  You holds him in its own dir by the chroot setting of you ftpserver.
   via a system();
  you mean if they upload a php file?
  prevent that with your php.ini settings:
 
  open_basedir string:  Limit the files that can be opened by PHP to the
  specified directory-tree.
  or
  safe_mode boolean
Whether to enable PHP's safe mode. Read the Security and Safe Mode
 chapters
  for more information.
 
  if you allow cgi, you must built the same sort restrictions for that
too.
 
  
 
  --
  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




[PHP] mysql_num_rows();

2002-08-14 Thread Sascha Braun

This is my query with some dummy loginformations:

SELECT * FROM benutzer_db where Benutzername = 'Herbert' AND Passwort = 'hals'

and this is the code i use for the database transaction:

$Query = SELECT * FROM benutzer_db where Benutzername = '.$SESSION['nickname'].' ;
$Query .= AND Passwort = '.$SESSION['password'].';
$Result = mysql_query($Query, $connect);
if(mysql_num_rows($Result)'0') {
while(...)...
} else {
...
}

But the branching don't work?



Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Sascha Braun

Maybe something wrong with the return?

I was thinking about return What?. (U understand me?)

in Javascript a simple return does nothing. maybe you can just leave the
return out of your script.



- Original Message -
From: Mike Eales [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 10:44 AM
Subject: [PHP] Include/require and the HTML Code


 Hi,

 Can anybody tell me why I get a Parse error: parse error,
 unexpected '}' in /usr/local/apache/htdocs/logbook/Functions.inc on line
 17 
 for the following code:

 Appreciate any help.

 Using PHP 4.2.2 and Apache 1.3.26 on Redhat 7.3 x86

 (The  stuff is not part of the code. index.php and
 Functions.inc exists in the same dir)

  File: index.php 
 ?
 require('./Functions.inc');

 HtmlHeader();

 # Do things

 HtmlFooter();

 ?

  End of file 


  File: Functions.inc
 
 function HtmlHeader()
 {
 ?

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 htmlhead
 meta http-equiv=Content-Type content=text/html;
 charset=iso-8859-1
 titleLogBook/title
 /head

 body bgcolor=#FF text=#00 link=#FF
 vlink=#80 alink=#FF

 ?

 return;
 } --- This is line 17, the error point..


 function HtmlFooter()
 {
 ?
 /body /html

 ?

 return;
 }

  End of file 


 Thanks
 Mike.



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




  1   2   >