Re: [PHP] Content question
At 1:07 PM -0400 5/19/10, Ernie Kemp wrote: This is not a direct PHP question but I will be using PHP in the website. After a website has been created there will a need to changes say a product or service page over time. The client asking how he will be able to make changes to these pages. Yes, I'm a newbie at this and the only way I can think of is to edit the page in say a HTML editor. Please comment how you might do it another way. Thanks very much, /Ernie Hire one of us to do it. That's what many of us do for a living. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content question
This is not a direct PHP question but I will be using PHP in the website. After a website has been created there will a need to changes say a product or service page over time. The client asking how he will be able to make changes to these pages. Yes, I'm a newbie at this and the only way I can think of is to edit the page in say a HTML editor. Please comment how you might do it another way. Thanks very much, /Ernie
Re: [PHP] Content question
On Wed, 2010-05-19 at 13:07 -0400, Ernie Kemp wrote: This is not a direct PHP question but I will be using PHP in the website. After a website has been created there will a need to changes say a product or service page over time. The client asking how he will be able to make changes to these pages. Yes, I’m a newbie at this and the only way I can think of is to edit the page in say a HTML editor. Please comment how you might do it another way. Thanks very much, /Ernie You need some sort of content management system (CMS) for it. For something as simple as this it's not too difficult to build a basic app yourself, or you could use a pre-built system such as WordPress, Drupal, Joomla or PHPNuke. If you've already got the site built as a series of HTML pages, it might be worth converting those into .php files and then taking out all the common elements and put them into include files. That way, if you need to update the navigation bar, for example, you just need to edit the navbar include file once. I tend to store all the individual content for pages inside a database and then pull it out as I need it. This makes it easy to add in features such as a site search. I use the CKEditor rich text Javascript component to allow the user to format their content (I often limit the options available to them so they don't break stuff!) and give them basic options such as adding content and updating content like that. Thanks, Ash http://www.ashleysheridan.co.uk
[PHP] Storing (html and php) Content in MySQL - help
I have been trying to wrap my mind around how to accomplish this for a few days, and done estensive searching on Google. I know there are free CMS systems available for download, but I want to write my own code so I can maintain it and extend it, I need it to be customizable. So far what I have worked up is this: The mysql row contains a page_id field, title field, content field, and sidebar content field. in index.php: include(module.php) $username = findLoggedinUsername() eval ($content) in module.php: $result = mysqlquery(select * from content where page_id = get['id']) $row = fetcharray9$result) $content = $row['content'] $title = $row['title'] etc. The content mysql field contains: $ct = END pWelcome $username, to the interweb/p END; echo $ct In the heredoc, I can use variables like $username, but not like $row['username']. So far this method works just fine, however I want to be able to edit the content through the website itself. Am I on the right track or is this awkward? I am implementing a new, login system (mine isn't secure enough) and I want to implement it correctly. How should I go about storing content (which may or may not include php) into a page content field?
Re: [PHP] Storing (html and php) Content in MySQL - help
Allen McCabe wrote: I have been trying to wrap my mind around how to accomplish this for a few days, and done estensive searching on Google. I know there are free CMS systems available for download, but I want to write my own code so I can maintain it and extend it, I need it to be customizable. So far what I have worked up is this: The mysql row contains a page_id field, title field, content field, and sidebar content field. in index.php: include(module.php) $username = findLoggedinUsername() eval ($content) in module.php: $result = mysqlquery(select * from content where page_id = get['id']) $row = fetcharray9$result) $content = $row['content'] $title = $row['title'] etc. The content mysql field contains: $ct = END pWelcome $username, to the interweb/p END; echo $ct In the heredoc, I can use variables like $username, but not like $row['username']. So far this method works just fine, however I want to be able to edit the content through the website itself. Am I on the right track or is this awkward? I am implementing a new, login system (mine isn't secure enough) and I want to implement it correctly. How should I go about storing content (which may or may not include php) into a page content field? You are definitely trying to reinvent the wheel. But, having done that myself, I can tell you very generally how I did it. My content table allowed for multiple rows for each page. Each row had a label and value (e.g. body:Hello World, sidebar:Goodbye World). To allow for php code, I added a type to each row. (e.g. body:text:Hello World, sidebar:eval:echo 'Goodbye World';). A template then would have a function call at the appropriate places to parse the expected content elements. As things go, it got a little more complex than that, and then a little more complex than that, etc. It's been working fine for me for five or six years and is still reasonably elegant. I've thought of open sourcing it, but I have a hunch there are several hundred systems like that already. Good luck and have fun. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Storing (html and php) Content in MySQL - help
On Mon, Nov 30, 2009 at 5:52 PM, Allen McCabe allenmcc...@gmail.com wrote: I have been trying to wrap my mind around how to accomplish this for a few days, and done estensive searching on Google. I know there are free CMS systems available for download, but I want to write my own code so I can maintain it and extend it, I need it to be customizable. So far what I have worked up is this: The mysql row contains a page_id field, title field, content field, and sidebar content field. in index.php: include(module.php) $username = findLoggedinUsername() eval ($content) in module.php: $result = mysqlquery(select * from content where page_id = get['id']) $row = fetcharray9$result) $content = $row['content'] $title = $row['title'] etc. The content mysql field contains: $ct = END pWelcome $username, to the interweb/p END; echo $ct In the heredoc, I can use variables like $username, but not like $row['username']. So far this method works just fine, however I want to be able to edit the content through the website itself. Am I on the right track or is this awkward? I am implementing a new, login system (mine isn't secure enough) and I want to implement it correctly. How should I go about storing content (which may or may not include php) into a page content field? Use curly braces around the variable within the string when using arrays. http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex echo Hello {$row['username']}; However, know that string variable parsing can be very inefficient and consider this analysis of PHP internals in your design. http://blog.libssh2.org/index.php?/archives/28-How-long-is-a-piece-of-string.html On small sites with low traffic it doesn't matter much, but as complexity and usage grows so does the overhead of writing your code the easy way. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Content Management
Hi All, I am looking for an open-sourced CMS that is PHP/MySQL based. I would like something simple to setup, but also would be good for a storefront as I want to use it for my indie business. Thoughts? -Jason If you don't need to develop but just click and change things you could use this: http://www.joomla.org/ Lame way to think but it works and is rich in features. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Content Management
On Fri, 2009-01-30 at 14:53 +0200, Thodoris wrote: Hi All, I am looking for an open-sourced CMS that is PHP/MySQL based. I would like something simple to setup, but also would be good for a storefront as I want to use it for my indie business. Thoughts? -Jason If you don't need to develop but just click and change things you could use this: http://www.joomla.org/ Lame way to think but it works and is rich in features. Unless you have a multilingual site... JoomFish just doesn't cut it since it tracks alternate language content elements in a completely separate interface. Drupal gets this part right. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Content Management
Jason Todd Slack-Moehrle wrote: Hi All, I am looking for an open-sourced CMS that is PHP/MySQL based. I would like something simple to setup, but also would be good for a storefront as I want to use it for my indie business. Thoughts? bitweaver www.bitweaver.org 'One stop shop' for cms with commerce ;) (commerce is an add-on not included in the basic downloads) -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Content Management
Hi All, I am looking for an open-sourced CMS that is PHP/MySQL based. I would like something simple to setup, but also would be good for a storefront as I want to use it for my indie business. Thoughts? -Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Content Management
On Friday 30 January 2009 12:16:44 am Jason Todd Slack-Moehrle wrote: Hi All, I am looking for an open-sourced CMS that is PHP/MySQL based. I would like something simple to setup, but also would be good for a storefront as I want to use it for my indie business. Thoughts? -Jason http://drupal.org/ I freely admit that the initial learning curve is a bit higher than we'd like, but you can still get very far without any PHP coding. A custom look and feel unique to your site will, of course, require making a custom theme but if you're good with CSS that won't require much if any PHP either. The payoff for the initial learning curve is a system that will scale and grow with you and your business almost indefinitely. The community around it is also extremely supportive and there's a plethora of options for commercial development and support as well if you are so inclined. For e-commerce, check out the Ubercart suite of modules: http://drupal.org/project/ubercart Disclaimer: I am a Drupal core developer and build sites with it professionally, so I am hardly an unbiased source. :-) -- Larry Garfield la...@garfieldtech.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Content Management
Larry Garfield wrote: On Friday 30 January 2009 12:16:44 am Jason Todd Slack-Moehrle wrote: I would like something simple to setup, http://drupal.org/ lol -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Content Management
On Jan 29, 2009, at 11:27 PM, Nathan Rixham nrix...@gmail.com wrote: Larry Garfield wrote: On Friday 30 January 2009 12:16:44 am Jason Todd Slack-Moehrle wrote: I would like something simple to setup, http://drupal.org/ lol -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Nice. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CONTENT-type for sending HTML attachments
On Fri, March 16, 2007 10:16 am, Angelo Zanetti wrote: Im using the HTML Mime Mail http://www.phpguru.org/static/mime.mail.html class from phpguru.org. Anyway I've written a few scripts that use the class to attach files to it. These files are HTML reports but Im not sure what MIME content-type to use. The content type I use to for the attachments is text/html. But Im not sure that the content type for the email itself should be plain/text as this just displays the HTML attachment as garbage in the body text. Please could anyone advise, what the content type should be. I would hazard a guest that is should be text/html, if you are sending html enhanced (cough, cough) email... Hopefully you realize that doing this drastically reduces the number of people who will actually get the email, as the spammers all use html enhanced email, so the spam filters all penalize for it. And, of course, some of us use mail clients that won't display html email unless we click a couple extra times, since html enhanced email is a blatant security hole waiting to be exploited. So even if the email gets to my Inbox, the odds that I'll bother to read it are much much worse. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] CONTENT-type for sending HTML attachments
Hi guys. Im using the HTML Mime Mail http://www.phpguru.org/static/mime.mail.html class from phpguru.org. Anyway I've written a few scripts that use the class to attach files to it. These files are HTML reports but Im not sure what MIME content-type to use. The content type I use to for the attachments is text/html. But Im not sure that the content type for the email itself should be plain/text as this just displays the HTML attachment as garbage in the body text. Please could anyone advise, what the content type should be. Thanks, Kind regards Angelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CONTENT-type for sending HTML attachments
On 3/16/07, Angelo Zanetti [EMAIL PROTECTED] wrote: Hi guys. Im using the HTML Mime Mail http://www.phpguru.org/static/mime.mail.html class from phpguru.org. Anyway I've written a few scripts that use the class to attach files to it. These files are HTML reports but Im not sure what MIME content-type to use. The content type I use to for the attachments is text/html. But Im not sure that the content type for the email itself should be plain/text as this just displays the HTML attachment as garbage in the body text. Please could anyone advise, what the content type should be. Thanks, Kind regards Angelo AFAIK html has the text/html mime-type. Tijnema -- 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] Opinion Request - No PHP content - Versioning Systems
Hey, I'm about to implement a versioning system here, and was going to go with CVS, but being that I haven't used it in almost two years I was wondering what y'all think? Opinions on the best, user-friendly (Mac Geeks will be using it), etc? Thanks. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Opinion Request - No PHP content - Versioning Systems
Hey, I'm about to implement a versioning system here, and was going to go with CVS, but being that I haven't used it in almost two years I was wondering what y'all think? Opinions on the best, user-friendly (Mac Geeks will be using it), etc? Thanks. Hi John, I only have experience with CVS and Subversion, but of the two, I *much* prefer Subversion. Could be a purely subjective thing, but it's worth looking into all the same. http://subversion.tigris.org/ Much warmth, Murray --- Lost in thought... http://www.planetthoughtful.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Opinion Request - No PHP content - Versioning Systems
At 04:43 PM 9/12/2005, John Nichel wrote: Hey, I'm about to implement a versioning system here, and was going to go with CVS, but being that I haven't used it in almost two years I was wondering what y'all think? Opinions on the best, user-friendly (Mac Geeks will be using it), etc? Thanks. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] John, I'm using Subversion with Tortoise (this is for Windows), in a one man operation, and mostly for Visual Basic work. Merges can get a little hairy because I have some hideously complexforms, but it does allow me to keep a trunk line to support users and do my development in a branch. No experience with a Subversion add-in for the Mac. Heck, ya gotta like it just for its name. Miles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content - strip...
Hi there! Anyone that has an easy solution to this? I have a string filled with content. A lot of content is before Jumping Jack flash I want the $content - string to start at Jumping Jack flash Is there any smart way of doing this? /G @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content - strip...
Hi there! Anyone that has an easy solution to this? I have a string filled with content. A lot of content is before Jumping Jack flash I want the $content - string to start at Jumping Jack flash Is there any smart way of doing this? Use strstr() to find the first occurence of Jumping Jack flash. Then use substr() to extract from that point to the end of the string into a new string. http://us2.php.net/strstr http://us2.php.net/substr -philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content Header
On Wed, July 20, 2005 7:32 am, Christopher J. Umina said: Hello! I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each time they go to the site. The problem is, I want the filename to be in the header, incase somebody right clicks and saves the file, but I don't want the user to be prompted to download the file when they're just trying to look at it. Does anybody know a way I can achieve this result? Sure! Just cram $filename onto the end of your URL in the first place: Instead of: http://example.com/yourscript.php Use this: http://example.com/yourscript.php/?php echo $filename? The browsers are SO STUPID they'll see that as the filename -- most of them. The trick to get the ones that are really really stupid and still insist on using yourscript.php is to get rid of the .php and just call it yourscript Of course, then it's not a PHP script, so you have to tell Apache that it *IS* a PHP script, even if it has no .php on the end. Put this in an .htaccess file next to yourscript: Files yourscript ForceType application/x-httpd-php /Files So *NOW* your URL looks like: http://example.com/yourscript/?php echo $filename? There ain't no way the browser will be able to screw up, because it has NO IDEA you have PHP generating the content. If you give the browser-makers any opportunity to screw up, one of them will in some version or other. So don't let them have a chance to screw up. Make a URL they can't know is PHP. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content Header
* Richard Lynch [EMAIL PROTECTED] : On Thu, July 21, 2005 4:55 am, Chris Shiflett said: Christopher J. Umina wrote: I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each time they go to the site. Then it works. :-) But it will only work on *SOME* browsers -- those which honor the johnny-come-lately Content-Disposition header. Use Content-type: application/octet-stream to guarantee it gets downloaded in ALL browsers. The OP indicated s/he *was* setting Content-Type. They were also sending Content-Disposition in order to indicate the suggested filename -- and wanted to alternately either send the filename *or* have the content echoed to the screen. The 'solution' was to use different URLs, and set Content-Disposition to either 'attachment' or 'inline', respectively. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content Header
Christopher J. Umina wrote: I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each time they go to the site. Then it works. :-) It sounds like you meant to use inline instead of attachment. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content Header
On Thu, July 21, 2005 4:55 am, Chris Shiflett said: Christopher J. Umina wrote: I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each time they go to the site. Then it works. :-) But it will only work on *SOME* browsers -- those which honor the johnny-come-lately Content-Disposition header. Use Content-type: application/octet-stream to guarantee it gets downloaded in ALL browsers. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content Header
Hello! I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each time they go to the site. The problem is, I want the filename to be in the header, incase somebody right clicks and saves the file, but I don't want the user to be prompted to download the file when they're just trying to look at it. Does anybody know a way I can achieve this result? Thank you! Christopher J. Umina -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content Header
Hi, You may try that; header(Content-Disposition: attachment; filename=\. $filename .\); Best Regards -Cafer On 7/20/05, Christopher J. Umina [EMAIL PROTECTED] wrote: Hello! I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each time they go to the site. The problem is, I want the filename to be in the header, incase somebody right clicks and saves the file, but I don't want the user to be prompted to download the file when they're just trying to look at it. Does anybody know a way I can achieve this result? Thank you! Christopher J. Umina -- 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] Content Header
Sorry it was header(Content-Disposition: inline; filename=\. $filename .\); -Cafer On 7/20/05, Cafer Simsek [EMAIL PROTECTED] wrote: Hi, You may try that; header(Content-Disposition: attachment; filename=\. $filename .\); Best Regards -Cafer On 7/20/05, Christopher J. Umina [EMAIL PROTECTED] wrote: Hello! I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each time they go to the site. The problem is, I want the filename to be in the header, incase somebody right clicks and saves the file, but I don't want the user to be prompted to download the file when they're just trying to look at it. Does anybody know a way I can achieve this result? Thank you! Christopher J. Umina -- 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] Content-Type header required for POST?
Chris Shiflett wrote: --- Olaf van der Spek [EMAIL PROTECTED] wrote: Content-Type is required for any request that has content. It's an HTTP requirement and has very little to do with PHP. Can you explain what you're talking about? I was talking about the request, not about the response. As was I. That's why I used the word request. :-) I'm sorry, I misunderstood 'thas has content'. You'll have a very tough time getting an answer if you can't explain your question. That's the only helpful hint I can provide. The reason I'm asking is that I've got a small application that does a POST request without that header and it used to work fine and not it doesn't. So I was wondering in which version PHP changed this behaviour. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content-Type header required for POST?
Chris Shiflett wrote: --- Olaf van der Spek [EMAIL PROTECTED] wrote: Since which version does PHP require the Content-Type header in POST requests? Content-Type is required for any request that has content. It's an HTTP The RFC says should, not is required to. Any HTTP/1.1 message containing an entity-body SHOULD include a Content-Type header field defining the media type of that body. If and only if the media type is not given by a Content-Type field, the recipient MAY attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the resource. If the media type remains unknown, the recipient SHOULD treat it as type application/octet-stream. requirement and has very little to do with PHP. Can you explain what you're talking about? Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content-Type header required for POST?
Hi, Since which version does PHP require the Content-Type header in POST requests? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content-Type header required for POST?
--- Olaf van der Spek [EMAIL PROTECTED] wrote: Since which version does PHP require the Content-Type header in POST requests? Content-Type is required for any request that has content. It's an HTTP requirement and has very little to do with PHP. Can you explain what you're talking about? Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content-Type header required for POST?
Chris Shiflett wrote: --- Olaf van der Spek [EMAIL PROTECTED] wrote: Since which version does PHP require the Content-Type header in POST requests? Content-Type is required for any request that has content. It's an HTTP requirement and has very little to do with PHP. Can you explain what you're talking about? I was talking about the request, not about the response. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content-Type header required for POST?
--- Olaf van der Spek [EMAIL PROTECTED] wrote: Content-Type is required for any request that has content. It's an HTTP requirement and has very little to do with PHP. Can you explain what you're talking about? I was talking about the request, not about the response. As was I. That's why I used the word request. :-) You'll have a very tough time getting an answer if you can't explain your question. That's the only helpful hint I can provide. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content Management Systems
Hey all - I was hoping that I could get some advice! I am setting up a site that will be quazi-portal-ish in nature. As such, a lot of different people in a lot of different departments will be making contributions and editing parts of the site. I have never done something like this before, but I think what I am looking for is a content management system (CMS). Is this correct? I have been looking at a bunch of the packages from the list on HotScripts, and I have to admit I am overwhelmed and confused. It seems that packages such as Midgard, Typo3, etc. would need to be set up by the server admin.. This will not work for my situation. I am looking for a system that: 1. Allows multiple users. 2. Gives me complete design control. 3. Has a non-HTML editor interface (my clients are not so savvy), and 4. Can run just off of a PHP/MySQL interface that I can setup without access to anything but my server space and database. Does anyone have any suggestions? Thanks a bunch - you guys are the best! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Escaping php content output for valid html
Hi there, I am just validating html generated by a php page. There is an error which comes up if ther is a dash in the content text. Those characters come out of a database. Is there a command in php which is escaping those characters for valid html output? Something like urlencode, but for text escaping all such signs? Here is the error msg: non SGML character number 150 This is the text: normal text Thanx in advance, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Escaping php content output for valid html
On Apr 16, 2004, at 3:40 AM, Merlin wrote: Hi there, I am just validating html generated by a php page. There is an error which comes up if ther is a dash in the content text. Those characters come out of a database. Is there a command in php which is escaping those characters for valid html output? Something like urlencode, but for text escaping all such signs? Here is the error msg: non SGML character number 150 This is the text: normal text If the text is coming from a database, how did the invalid character get into the text in the first place? It sounds like the problem is with the original HTML editor, not with PHP. For example, the current version of Adobe GoLive still uses the invalid code #150; for an en dash (the valid code is #8211;). A good reference chart for correct character entities is here -- http://www.roselli.org/adrian/articles/character_charts.asp. You could set up str_replace() translations to correct invalid character entity codes before displaying. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Escaping php content output for valid html
Lowell Allen wrote: On Apr 16, 2004, at 3:40 AM, Merlin wrote: Hi there, I am just validating html generated by a php page. There is an error which comes up if ther is a dash in the content text. Those characters come out of a database. Is there a command in php which is escaping those characters for valid html output? Something like urlencode, but for text escaping all such signs? Here is the error msg: non SGML character number 150 This is the text: normal text If the text is coming from a database, how did the invalid character get into the text in the first place? It sounds like the problem is with the original HTML editor, not with PHP. For example, the current version of Adobe GoLive still uses the invalid code #150; for an en dash (the valid code is #8211;). A good reference chart for correct character entities is here -- http://www.roselli.org/adrian/articles/character_charts.asp. You could set up str_replace() translations to correct invalid character entity codes before displaying. -- Lowell Allen hmm so you would suggest to save the entitty code directly to the database in the first place? What happens if I want to use the text for something else, lets say print outs, or the entity code changes over the years, respectively the browsers comming up with new technologies and dropping the old standards? Another thing I do not understand concerning php, if this is that important, why is there not a function who does this? something like ent_replace()? Do I have to write a str_replace statement for all the entity characters? If yes, does anybody already have such a code line? It sounds to me that this is like inventing the wheel over and over again? regards, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Escaping php content output for valid html
On Friday 16 April 2004 20:19, Merlin wrote: hmm so you would suggest to save the entitty code directly to the database in the first place? If the data is mainly displayed as HTML then yes, store the HTML entities and do a conversion when you want plain text or whatever. What happens if I want to use the text for something else, lets say print outs, or the entity code changes over the years, respectively the browsers comming up with new technologies and dropping the old standards? Do a conversion. Another thing I do not understand concerning php, if this is that important, why is there not a function who does this? something like ent_replace()? Do I have to write a str_replace statement for all the entity characters? If yes, does anybody already have such a code line? It sounds to me that this is like inventing the wheel over and over again? Well if PHP had a function for everything that could be done in a line or two of code then it would have more functions than I could count on my fingers and toes. This might help, get_html_translation_table(). -- 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 -- /* Words have a longer life than deeds. -- Pindar */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 'Content-Type: text/plain; charset=utf-8'
?php header ('Content-Type: text/plain; charset=utf-8'); echo Hi there; ? I need to echo a plain txt on my page, without any HTML tags. my problem, when I run it on my apache, the save/open screen pops up. What's wrong please help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 'Content-Type: text/plain; charset=utf-8'
On Thu, Apr 01, 2004 at 01:55:50PM +0300, nabil wrote: ?php header ('Content-Type: text/plain; charset=utf-8'); echo Hi there; ? I need to echo a plain txt on my page, without any HTML tags. my problem, when I run it on my apache, the save/open screen pops up. What's wrong please help this works fine for me, cutting and pasteing your example. - rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] content management
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anybody know of an extremely simple CMS (to serve pages, documents, not news based like most of them) that can store pages in various languages and comes with interface in various languages (or that it is translatable) ? - -- Pupeno: [EMAIL PROTECTED] http://www.pupeno.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAFZ2stCepaMf3unIRAoL7AJ9BEpUAho0tCl4j8lM1B4XWfjqTVQCeJZml ilhhFqh2ItDx68ad0okMvFs= =Jugz -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] content management
On Mon, Jan 26, 2004 at 08:07:21PM -0300, Pupeno wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anybody know of an extremely simple CMS (to serve pages, documents, not news based like most of them) that can store pages in various languages and comes with interface in various languages (or that it is translatable) ? Straying a bit OT, since this is a PHP list, but MovableType: http://movabletype.org/ is a great CMS whose interface can be fully translated: http://www.movabletype.org/docs/mtmanual_multilanguage.html#multilanguage%20support into the language of your choice. I assume that it can store pages in various languages if you author them that way, but I have no direct experience doing so. To bring it back to PHP, MovableType can be made to output PHP pages if you so desire, letting you extend its functionality that way (or through its built-in plugin interface, which is Perl). joel -- [ joel boonstra | gospelcom.net ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content-type vs session_start()
Do you have any ideas what I should do to make both .php and .cgi versions work? Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n; session_start(); Have you tried putting session_start() before the first print? Yes. Then I get Internal Server Error. -- Børge -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content-type vs session_start()
Cheers Chris I will try to explain using your code: Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n; When you are running as a CGI, you can set the Content-Type header in this way. However, as soon as you send two sequential newlines, you are indicating the end of the headers and the beginning of the content. What should be there instead of \n\n? I tried without any newlines with the error Cannot send session cache limiter - headers already sent... One newline gives Cannot send session cookie - headers already sent... and then the same error as above. Do you know of a site where I can find headers001 and what headers are sent by session_start()? Actually, my program worked just fine before my ISP upgraded to 4.3.4. session_start(); So, when you have this on the next line, PHP cannot set the Set-Cookie header that it is likely trying to set (in addition to whatever cache-related headers it may be setting, depending on your configuration). This is because you have already indicated the end of the headers in your previous line. This is the danger in writing your own headers in this way; you become responsible for adhering to the proper format of things. And test3.php: == ?php session_start(); // print 'Content-type: text/html' . \n\n; // only in .cgi version! While it's not necessary to specify Conetnt-Type here, you can do so using the header() function: header('Content-Type: text/html'); Aha! That explains it a bit. Without me having to print Content-type..., (i.e. in a .php file), sessions seem to be working just fine. -- Børge -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content-type vs session_start()
I have a problem with html headers using sessions. I guess it has to do with the Content-type line. My ISP uses PHP 4.3.4 with register_globals = On (although I want this to work with Off too). My program (test3.cgi, test3.php) simply logs the number of times I have accessed a web site. As a php file it works as supposed to only that there's no Content-type line. As a .cgi file the script has to have the Content-type line in order to be executed. With Content-type BEFORE session_start(), $_SESSION doesn't seem to be set. Alternatively, with Content-type AFTER session_start(), I get Warning: session_start(): Cannot send session cookie - headers already sent by... Do you have any ideas what I should do to make both .php and .cgi versions work? -- Børge Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n; session_start(); print 'html' . \n; print 'body' . \n; print 'This is the test3.cgi filebr' . \n; if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } print 'This is your visit number ' . $_SESSION['count'] . \n; print '/body' . \n; print '/html' . \n; ? == And test3.php: == ?php session_start(); // print 'Content-type: text/html' . \n\n; // only in .cgi version! print 'html' . \n; print 'body' . \n; print 'This is the test3.php filebr' . \n; if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } print 'This is your visit number ' . $_SESSION['count'] . \n; print '/body' . \n; print '/html' . \n; ? == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content-type vs session_start()
On Thu, 2004-01-08 at 14:14, Brge Strand wrote: [snip] Do you have any ideas what I should do to make both .php and .cgi versions work? Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n; session_start(); Have you tried putting session_start() before the first print? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content-type vs session_start()
--- Børge Strand [EMAIL PROTECTED] wrote: I have a problem with html headers using sessions. I think you mean HTTP headers. I guess it has to do with the Content-type line. Yes, and you seem to have a fundamental misunderstanding between using PHP as an Apache module versus using PHP as a CGI interpreter. I will try to explain using your code: Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n; When you are running as a CGI, you can set the Content-Type header in this way. However, as soon as you send two sequential newlines, you are indicating the end of the headers and the beginning of the content. session_start(); So, when you have this on the next line, PHP cannot set the Set-Cookie header that it is likely trying to set (in addition to whatever cache-related headers it may be setting, depending on your configuration). This is because you have already indicated the end of the headers in your previous line. This is the danger in writing your own headers in this way; you become responsible for adhering to the proper format of things. And test3.php: == ?php session_start(); // print 'Content-type: text/html' . \n\n; // only in .cgi version! While it's not necessary to specify Conetnt-Type here, you can do so using the header() function: header('Content-Type: text/html'); Anything that you print or echo is going to be considered as part of the content, not part of the headers. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content of Variable ist html code
Hi php-general, I'm thinking of how I could store the content of a String-variable a) in a Variable to be passed to other functions b) in a Database (MySQL) too . The content is html-code (with tags and style code (css)). The point is that I'm making myself a kind of CMS, and I want to edit a page, enter html code, store it in the database and then display it as content on a page. So, in the edit menu, I have to be able to see the html tags, but on the target page, the html entities have to be translated by the browser... and all that has to be storable in MySQL... How do I do that the best...?!? addslahes, stripslahses, htmlentities, html_entity_decode are the only functions I have found, which seem to be really useful. Are there others I could need, or do you think I'm fine with that? Thanx for answering SvT -- Who is the ennemy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content of Variable ist html code
I'm not sure what you're asking but... Using htmlentities() and undohtmlentities() (look up the real functions) to data going into and out of your database will allow you to store it without getting lots of errors... mySQL storage (even TEXT and BLOB types) can't be larger then so many bytes (system dependent) so you would have to have code to split up and put back together big web pages. -Dan On Sun, 2003-08-24 at 11:55, Matthias Wulkow wrote: Hi php-general, I'm thinking of how I could store the content of a String-variable a) in a Variable to be passed to other functions b) in a Database (MySQL) too . The content is html-code (with tags and style code (css)). The point is that I'm making myself a kind of CMS, and I want to edit a page, enter html code, store it in the database and then display it as content on a page. So, in the edit menu, I have to be able to see the html tags, but on the target page, the html entities have to be translated by the browser... and all that has to be storable in MySQL... How do I do that the best...?!? addslahes, stripslahses, htmlentities, html_entity_decode are the only functions I have found, which seem to be really useful. Are there others I could need, or do you think I'm fine with that? Thanx for answering SvT -- Who is the ennemy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP/Content Management
Just a quick message to let everyone know that after ten months I have finally released the first official open source version of eNetwizard Matrix Server, my sophisticated content management system and application server. All it needs is PHP, MySQL, and Apache. Full instructions are included on the website. More information about it is below... http://matrix.enetwizard.net/default.rsw About eNetwizard Matrix Server eNetwizard Matrix Server takes content management and web application serving to levels undreamt, infusing your web environment with sheer power and possibility. Cutting Edge Technology - Never before has a content management system been designed around the concept of a universal point of contact for all requests. This server knows all, and delivers all. - Never before has a content management system been designed to render and manage the content of an unlimited number of domains and websites for an unlimited number of businesses and organizations. Expect nothing less from our server. Core Features - Production Environment Ready. The server before you has had no corners cut in its design. It is stable and ready for production environments, with only a few minor limitations or idiocyncracies. And it's free and open source. - Infinitely Expansive Design. The server was designed to manage an infinite number of domains, websites, components, organizations, groups, and users, all from a single running copy of its distribution. - Complete Content Management. The server manages the content of all mime types and can deliver the content to the requesting client based on customizable settings of the server for each mime type. - Seemless Integration with Other Server Software. The server was designed to complement the job of the web server and server side scripting languages, and does not replace nor interfere with their purposes. In fact, you can utilize all of them from within the system in a myriad of useful ways. - Language Independent. The server, objects, and wizards were all designed to contain its strings in an XML localization file, allowing it to run in any language it has been translated into. In a near future release, it will also be possible to render content into the language appropriate for the visitor. - Cascading Templates. Web page design and layout are controlled by templates, allowing for quick and cost-effective website redesigns. Templates can be modified in real time, changing the layout, colors, and other style properties instantaneously. Templates are cascading through the matrix folder, meaning templates can be defined for a single page or an entire domain or website. - Workflow Ready. This version of the server includes everything needed to manage an infinite number of organizations, groups, and users, all with unique roles, policy permissions, and access rights throughout the matrix. It lacks only a few things when it comes to workflow, and these added features will be included in a near future release. - Inclusive Session Management. The server does not rely upon cookies at all to manage the individual sessions of each user accessing the server. Instead, it automatically and uniquely propagates this information into each request and embeds the information into every link managed by the server. - Search Engine Aware. The server automatically disables sessions for known search engines, preventing them from including session information in their indexes. This is also useful if you wish to create a page for the search engine that does not include the template, thereby only showing the content of the page to the search engine for indexing. - Browser Aware. The server automatically determines browser information from each visitor and assigns it to their session. Some of the collected information includes the user's languages and screen resolution, as well as their browser capabilities. This information is made available via the $Core-BrowserInfo[] array. - Extensive Logging. The server logs activity to all components, from websites and pages to files and objects. It logs all form post and get data, cookies, system functions, and script warnings and errors, depending upon your configuration. It also logs all attempts at treacherous activity anywhere within the system! - Wizardly Management. The server includes a built-in wizard component, which includes the eNetwizard Control Panel, for easy management of every aspect of the server. As expressed by a recent user of the Control Panel, it's overwhelmingly powerful. - Customizable Website Applications. Objects are a powerful way to make use of the server, allowing you to click once and build anything from a guestbook or newsletter to a first-class e-commerce application, rendered in the style properties appropriate for the website, and fully managed from the eNetwizard Control Panel. - Much More!
Re: [PHP] PHP/Content Management
Do you realize that link does not work with the Safari browser? it just shows up blank :( Rick When one door closes, another opens; but we often look so long and so regretfully upon the closed door that we do not see the one which has opened for us. - Alexander Graham Bell From: Robert Samuel White [EMAIL PROTECTED] Reply-To: Robert Samuel White [EMAIL PROTECTED] Date: Mon, 07 Jul 2003 16:54:11 -0400 To: [EMAIL PROTECTED] Subject: [PHP] PHP/Content Management Just a quick message to let everyone know that after ten months I have finally released the first official open source version of eNetwizard Matrix Server, my sophisticated content management system and application server. All it needs is PHP, MySQL, and Apache. Full instructions are included on the website. More information about it is below... http://matrix.enetwizard.net/default.rsw About eNetwizard Matrix Server eNetwizard Matrix Server takes content management and web application serving to levels undreamt, infusing your web environment with sheer power and possibility. Cutting Edge Technology - Never before has a content management system been designed around the concept of a universal point of contact for all requests. This server knows all, and delivers all. - Never before has a content management system been designed to render and manage the content of an unlimited number of domains and websites for an unlimited number of businesses and organizations. Expect nothing less from our server. Core Features - Production Environment Ready. The server before you has had no corners cut in its design. It is stable and ready for production environments, with only a few minor limitations or idiocyncracies. And it's free and open source. - Infinitely Expansive Design. The server was designed to manage an infinite number of domains, websites, components, organizations, groups, and users, all from a single running copy of its distribution. - Complete Content Management. The server manages the content of all mime types and can deliver the content to the requesting client based on customizable settings of the server for each mime type. - Seemless Integration with Other Server Software. The server was designed to complement the job of the web server and server side scripting languages, and does not replace nor interfere with their purposes. In fact, you can utilize all of them from within the system in a myriad of useful ways. - Language Independent. The server, objects, and wizards were all designed to contain its strings in an XML localization file, allowing it to run in any language it has been translated into. In a near future release, it will also be possible to render content into the language appropriate for the visitor. - Cascading Templates. Web page design and layout are controlled by templates, allowing for quick and cost-effective website redesigns. Templates can be modified in real time, changing the layout, colors, and other style properties instantaneously. Templates are cascading through the matrix folder, meaning templates can be defined for a single page or an entire domain or website. - Workflow Ready. This version of the server includes everything needed to manage an infinite number of organizations, groups, and users, all with unique roles, policy permissions, and access rights throughout the matrix. It lacks only a few things when it comes to workflow, and these added features will be included in a near future release. - Inclusive Session Management. The server does not rely upon cookies at all to manage the individual sessions of each user accessing the server. Instead, it automatically and uniquely propagates this information into each request and embeds the information into every link managed by the server. - Search Engine Aware. The server automatically disables sessions for known search engines, preventing them from including session information in their indexes. This is also useful if you wish to create a page for the search engine that does not include the template, thereby only showing the content of the page to the search engine for indexing. - Browser Aware. The server automatically determines browser information from each visitor and assigns it to their session. Some of the collected information includes the user's languages and screen resolution, as well as their browser capabilities. This information is made available via the $Core-BrowserInfo[] array. - Extensive Logging. The server logs activity to all components, from websites and pages to files and objects. It logs all form post and get data, cookies, system functions, and script warnings and errors, depending upon your configuration. It also logs all attempts at treacherous activity anywhere within the system! - Wizardly Management. The server includes a built-in wizard component, which includes the eNetwizard
Re: [PHP] PHP/Content Management
Hello, I was just alerted of the issue by another fellow with a way excellent website at saturn5.com :-) I wish I could help you! But I have never heard of the Safari browser and without using it or getting more information about what is causing your problem, I cannot do anything! It is known to work with IE 4-6+ on Windows, most Netscapes, Mozilla, Lynx, etc.., but may have some problems with the Mac and now the Safari browser... Is it possible the problem could be Safari does not recognize the Header () command in PHP??? Thanks! = Do you realize that link does not work with the Safari browser? it just shows up blank :( Rick When one door closes, another opens; but we often look so long and so regretfully upon the closed door that we do not see the one which has opened for us. - Alexander Graham Bell From: Robert Samuel White [EMAIL PROTECTED] Reply-To: Robert Samuel White [EMAIL PROTECTED] Date: Mon, 07 Jul 2003 16:54:11 -0400 To: [EMAIL PROTECTED] Subject: [PHP] PHP/Content Management Just a quick message to let everyone know that after ten months I have finally released the first official open source version of eNetwizard Matrix Server, my sophisticated content management system and application server. All it needs is PHP, MySQL, and Apache. Full instructions are included on the website. More information about it is below... http://matrix.enetwizard.net/default.rsw About eNetwizard Matrix Server eNetwizard Matrix Server takes content management and web application serving to levels undreamt, infusing your web environment with sheer power and possibility. Cutting Edge Technology - Never before has a content management system been designed around the concept of a universal point of contact for all requests. This server knows all, and delivers all. - Never before has a content management system been designed to render and manage the content of an unlimited number of domains and websites for an unlimited number of businesses and organizations. Expect nothing less from our server. Core Features - Production Environment Ready. The server before you has had no corners cut in its design. It is stable and ready for production environments, with only a few minor limitations or idiocyncracies. And it's free and open source. - Infinitely Expansive Design. The server was designed to manage an infinite number of domains, websites, components, organizations, groups, and users, all from a single running copy of its distribution. - Complete Content Management. The server manages the content of all mime types and can deliver the content to the requesting client based on customizable settings of the server for each mime type. - Seemless Integration with Other Server Software. The server was designed to complement the job of the web server and server side scripting languages, and does not replace nor interfere with their purposes. In fact, you can utilize all of them from within the system in a myriad of useful ways. - Language Independent. The server, objects, and wizards were all designed to contain its strings in an XML localization file, allowing it to run in any language it has been translated into. In a near future release, it will also be possible to render content into the language appropriate for the visitor. - Cascading Templates. Web page design and layout are controlled by templates, allowing for quick and cost-effective website redesigns. Templates can be modified in real time, changing the layout, colors, and other style properties instantaneously. Templates are cascading through the matrix folder, meaning templates can be defined for a single page or an entire domain or website. - Workflow Ready. This version of the server includes everything needed to manage an infinite number of organizations, groups, and users, all with unique roles, policy permissions, and access rights throughout the matrix. It lacks only a few things when it comes to workflow, and these added features will be included in a near future release. - Inclusive Session Management. The server does not rely upon cookies at all to manage the individual sessions of each user accessing the server. Instead, it automatically and uniquely propagates this information into each request and embeds the information into every link managed by the server. - Search Engine Aware. The server automatically disables sessions for known search engines, preventing them from including session information in their indexes. This is also useful if you wish to create a page for the search engine that does not include the template, thereby only showing the content of the page to the search engine for indexing. - Browser Aware. The server automatically determines browser information from each visitor and assigns it to their session. Some of the collected information includes the user's languages
Re: [PHP] PHP/Content Management
Safari is the new Mac-Browser by Apple. Its using the KHTML-component from Konqueror (Linux). Thomas On Mon, 07 Jul 2003 18:06:29 -0400 [EMAIL PROTECTED] (Robert Samuel White) wrote: Hello, I was just alerted of the issue by another fellow with a way excellent website at saturn5.com :-) I wish I could help you! But I have never heard of the Safari browser and without using it or getting more information about what is causing your problem, I cannot do anything! It is known to work with IE 4-6+ on Windows, most Netscapes, Mozilla, Lynx, etc.., but may have some problems with the Mac and now the Safari browser... Is it possible the problem could be Safari does not recognize the Header () command in PHP??? Thanks! = Do you realize that link does not work with the Safari browser? it just shows up blank :( Rick When one door closes, another opens; but we often look so long and so regretfully upon the closed door that we do not see the one which has opened for us. - Alexander Graham Bell From: Robert Samuel White [EMAIL PROTECTED] Reply-To: Robert Samuel White [EMAIL PROTECTED] Date: Mon, 07 Jul 2003 16:54:11 -0400 To: [EMAIL PROTECTED] Subject: [PHP] PHP/Content Management Just a quick message to let everyone know that after ten months I have finally released the first official open source version of eNetwizard Matrix Server, my sophisticated content management system and application server. All it needs is PHP, MySQL, and Apache. Full instructions are included on the website. More information about it is below... http://matrix.enetwizard.net/default.rsw About eNetwizard Matrix Server eNetwizard Matrix Server takes content management and web application serving to levels undreamt, infusing your web environment with sheer power and possibility. Cutting Edge Technology - Never before has a content management system been designed around the concept of a universal point of contact for all requests. This server knows all, and delivers all. - Never before has a content management system been designed to render and manage the content of an unlimited number of domains and websites for an unlimited number of businesses and organizations. Expect nothing less from our server. Core Features - Production Environment Ready. The server before you has had no corners cut in its design. It is stable and ready for production environments, with only a few minor limitations or idiocyncracies. And it's free and open source. - Infinitely Expansive Design. The server was designed to manage an infinite number of domains, websites, components, organizations, groups, and users, all from a single running copy of its distribution. - Complete Content Management. The server manages the content of all mime types and can deliver the content to the requesting client based on customizable settings of the server for each mime type. - Seemless Integration with Other Server Software. The server was designed to complement the job of the web server and server side scripting languages, and does not replace nor interfere with their purposes. In fact, you can utilize all of them from within the system in a myriad of useful ways. - Language Independent. The server, objects, and wizards were all designed to contain its strings in an XML localization file, allowing it to run in any language it has been translated into. In a near future release, it will also be possible to render content into the language appropriate for the visitor. - Cascading Templates. Web page design and layout are controlled by templates, allowing for quick and cost-effective website redesigns. Templates can be modified in real time, changing the layout, colors, and other style properties instantaneously. Templates are cascading through the matrix folder, meaning templates can be defined for a single page or an entire domain or website. - Workflow Ready. This version of the server includes everything needed to manage an infinite number of organizations, groups, and users, all with unique roles, policy permissions, and access rights throughout the matrix. It lacks only a few things when it comes to workflow, and these added features will be included in a near future release. - Inclusive Session Management. The server does not rely upon cookies at all to manage the individual sessions of each user accessing the server. Instead, it automatically and uniquely propagates this information into each request and embeds the information into every link managed by the server. - Search Engine Aware. The server automatically disables sessions for known search engines, preventing them from including session information in their indexes. This is also useful if you wish to create a page for the search engine that does
Re: [PHP] PHP/Content Management
I fixed the problem; now works with Safari. =) Richard Baskett wrote: Do you realize that link does not work with the Safari browser? it just shows up blank :( Rick When one door closes, another opens; but we often look so long and so regretfully upon the closed door that we do not see the one which has opened for us. - Alexander Graham Bell From: Robert Samuel White [EMAIL PROTECTED] Reply-To: Robert Samuel White [EMAIL PROTECTED] Date: Mon, 07 Jul 2003 16:54:11 -0400 To: [EMAIL PROTECTED] Subject: [PHP] PHP/Content Management Just a quick message to let everyone know that after ten months I have finally released the first official open source version of eNetwizard Matrix Server, my sophisticated content management system and application server. All it needs is PHP, MySQL, and Apache. Full instructions are included on the website. More information about it is below... http://matrix.enetwizard.net/default.rsw About eNetwizard Matrix Server eNetwizard Matrix Server takes content management and web application serving to levels undreamt, infusing your web environment with sheer power and possibility. Cutting Edge Technology - Never before has a content management system been designed around the concept of a universal point of contact for all requests. This server knows all, and delivers all. - Never before has a content management system been designed to render and manage the content of an unlimited number of domains and websites for an unlimited number of businesses and organizations. Expect nothing less from our server. Core Features - Production Environment Ready. The server before you has had no corners cut in its design. It is stable and ready for production environments, with only a few minor limitations or idiocyncracies. And it's free and open source. - Infinitely Expansive Design. The server was designed to manage an infinite number of domains, websites, components, organizations, groups, and users, all from a single running copy of its distribution. - Complete Content Management. The server manages the content of all mime types and can deliver the content to the requesting client based on customizable settings of the server for each mime type. - Seemless Integration with Other Server Software. The server was designed to complement the job of the web server and server side scripting languages, and does not replace nor interfere with their purposes. In fact, you can utilize all of them from within the system in a myriad of useful ways. - Language Independent. The server, objects, and wizards were all designed to contain its strings in an XML localization file, allowing it to run in any language it has been translated into. In a near future release, it will also be possible to render content into the language appropriate for the visitor. - Cascading Templates. Web page design and layout are controlled by templates, allowing for quick and cost-effective website redesigns. Templates can be modified in real time, changing the layout, colors, and other style properties instantaneously. Templates are cascading through the matrix folder, meaning templates can be defined for a single page or an entire domain or website. - Workflow Ready. This version of the server includes everything needed to manage an infinite number of organizations, groups, and users, all with unique roles, policy permissions, and access rights throughout the matrix. It lacks only a few things when it comes to workflow, and these added features will be included in a near future release. - Inclusive Session Management. The server does not rely upon cookies at all to manage the individual sessions of each user accessing the server. Instead, it automatically and uniquely propagates this information into each request and embeds the information into every link managed by the server. - Search Engine Aware. The server automatically disables sessions for known search engines, preventing them from including session information in their indexes. This is also useful if you wish to create a page for the search engine that does not include the template, thereby only showing the content of the page to the search engine for indexing. - Browser Aware. The server automatically determines browser information from each visitor and assigns it to their session. Some of the collected information includes the user's languages and screen resolution, as well as their browser capabilities. This information is made available via the $Core-BrowserInfo[] array. - Extensive Logging. The server logs activity to all components, from websites and pages to files and objects. It logs all form post and get data, cookies, system functions, and script warnings and errors, depending upon your configuration. It also logs all attempts at treacherous activity anywhere within the system! - Wizardly Management. The server includes a built-in wizard component, which includes the eNetwizard Control Panel, for easy management of every aspect
[PHP] Content-Type:
This could be an Apache issues, not really sure. I'm trying to output a php doc as text/css using ?php header( Content-type: text/css ); ? But no matter what I do, changing it in the document, adding/altering apache mime types, all I get is text/html. The reason is I'm trying to use @import url('xx.css.php') and Mozilla seems to be very unhappy with this, it will not recognize that as a css file, IE and Opera are fine with it. The developers say its because Moz does not make assumptions about mime types, whatever, and I need to set the mime type explicitly for php files from within the script however ?php header( Content-type: text/css ); ? seems to have no effect. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content Management Systems
I would really appreciate some advice from anyone who has worked with or developed their own content management system. This is my scenario, when i have finished creating a site, i want to be able to add in the CMS with a minimum amount of fuss. I want to be able to get the CMS to recognize all the tables and somehow allow me to set the tables and fields that the client can update safely (i.e. if it is an employment recruitment site then they will be able to add jobs but not job_id). This will save me so much time rather than having to handcode the CMS for every site. I think i have an answer to my problem, and would be interested to hear your opinion. When i install the CMS it will read the existing tables and create 2 new tables: CMS_TABLES cms_table_id(PK) cms_table_name cms_table_is_editable CMS_FIELDS cms_field_id(PK) cms_table_id(FK) cms_field_name cms_field_is_editable cms_field_type cms_field_size cms_field_is_primary_key As an administrator I will be able to set fields and tables which are editable. Now when i go to the database management page i can do 'SELECT * FROM CMS_FIELDS WHERE cms_table_id = '$_GET[table_id]' AND cms_field_editable = TRUE Also does anyone have any suggestions for editing static content? Any comments here would be greatly appreciated. Thanks -- 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
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
Re: [PHP] content type header for downloading files
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
Re: [PHP] content type header for downloading files
At 03:27 29.01.2003, Dara Dowd said: [snip] I have the following headers in download.php which forces a download dialog box to be opened when a user clicks on a desired file: header(Content-type: application/octet); header(Content-Length: $filelength); header(Content-Disposition: attachment; filename=.basename($fname).;); [snip] The correct Content-type is application/octet-stream. Should work with that. -- 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
Re: [PHP] content type header for downloading files
--- Dara Dowd [EMAIL PROTECTED] wrote: I have the following headers in download.php which forces a download dialog box to be opened when a user clicks on a desired file: header(Content-type: application/octet); header(Content-Length: $filelength); header(Content-Disposition: attachment; filename=.basename($fname).;); This works fine with IE, but Mozilla adds a '.php' extension to the filename if i choose the save option, and asks me to choose which application to use if I want to open the file. What is the value of $fname? If you are trying to tell it the name of your script, then that is why Mozilla names it so. The filename directive should be the filename you want assigned to whatever you are sending the browser. Also, I think you mean to say application/octet-stream, but I don't feel like looking it up. I suggest double-checking that value. Chris -- 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
$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. Dara - Original Message - From: Chris Shiflett [EMAIL PROTECTED] Date: Wed, 29 Jan 2003 06:47:17 -0800 (PST) To: Dara Dowd [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] content type header for downloading files --- Dara Dowd [EMAIL PROTECTED] wrote: I have the following headers in download.php which forces a download dialog box to be opened when a user clicks on a desired file: header(Content-type: application/octet); header(Content-Length: $filelength); header(Content-Disposition: attachment; filename=.basename($fname).;); This works fine with IE, but Mozilla adds a '.php' extension to the filename if i choose the save option, and asks me to choose which application to use if I want to open the file. What is the value of $fname? If you are trying to tell it the name of your script, then that is why Mozilla names it so. The filename directive should be the filename you want assigned to whatever you are sending the browser. Also, I think you mean to say application/octet-stream, but I don't feel like looking it up. I suggest double-checking that value. Chris -- For the largest free email in Ireland (25MB) File Storage space (20MB), visit http://www.campus.ie Powered by Outblaze -- 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
$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. Maybe find a site that works correctly on the browser in question and examine the headers it sends? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- 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
how do i examine the headers sent? - Original Message - From: John W. Holmes [EMAIL PROTECTED] Date: Wed, 29 Jan 2003 20:06:47 -0500 To: ''Dara Dowd'' [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] content type header for downloading files $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. Maybe find a site that works correctly on the browser in question and examine the headers it sends? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- For the largest free email in Ireland (25MB) File Storage space (20MB), visit http://www.campus.ie Powered by Outblaze -- 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
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manually connect and request a page using HTTP echo -e GET / HTTP/1.0\r\n\r\n | nc server 80 works on many boxes... you may have to use telnet and actually type in the request instead of piping On Wednesday 29 January 2003 05:29 pm, Dara Dowd wrote: how do i examine the headers sent? - Original Message - From: John W. Holmes [EMAIL PROTECTED] Date: Wed, 29 Jan 2003 20:06:47 -0500 To: ''Dara Dowd'' [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] content type header for downloading files $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. Maybe find a site that works correctly on the browser in question and examine the headers it sends? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - -- The greatest mistake is to imagine that the human being is an autonomous individual. The secret freedom which you can supposedly enjoy under a despotic government is nonsense, because your thoughts are never entirely your own. Philosophers, writers, artists, even scientists, not only need encouragement and an audience, they need constant stimulation from other people. It is almost impossible to think without talking. If Defoe had really lived on a desert island, he could not have written Robinson Crusoe, nor would he have wanted to. Take away freedom of speech, and the creative faculties dry up. - -George Orwell -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+ONGu/rncFku1MdIRArmpAJ4uI/X4iTe8SsScdX35uYduYzgJEgCbB36d cNfHRaY/3YMMliv4bqr53Zg= =cwmo -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] content type header for downloading files
I have the following headers in download.php which forces a download dialog box to be opened when a user clicks on a desired file: header(Content-type: application/octet); header(Content-Length: $filelength); header(Content-Disposition: attachment; filename=.basename($fname).;); This works fine with IE, but Mozilla adds a '.php' extension to the filename if i choose the save option, and asks me to choose which application to use if I want to open the file. The files are binary. Do I need to change the content-type header? If so, to what? If not, what do I do? Thanks, Dara -- For the largest free email in Ireland (25MB) File Storage space (20MB), visit http://www.campus.ie Powered by Outblaze -- 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
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Change header(Content-Disposition: attachment; filename=.basename($fname).;); to header(Content-Disposition: inline; filename=.basename($fname).;); On Tuesday 28 January 2003 06:27 pm, Dara Dowd wrote: I have the following headers in download.php which forces a download dialog box to be opened when a user clicks on a desired file: header(Content-type: application/octet); header(Content-Length: $filelength);header(Content-Disposition: attachment; filename=.basename($fname).;); This works fine with IE, but Mozilla adds a '.php' extension to the filename if i choose the save option, and asks me to choose which application to use if I want to open the file. The files are binary. Do I need to change the content-type header? If so, to what? If not, what do I do? Thanks, Dara -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+N2aH/rncFku1MdIRAvilAKCn7xrFd+TeIYYCr99xyH59fih16wCfTCHI +7dGxJJU5ikFk/H+zhkZ9hw= =bwBj -END PGP SIGNATURE- -- 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
No, that doesn't change anything with Mozilla, and as for IE the file is automatically displayed in the browser. I actually want the Dialog Box to appear. I think Mozilla doesn't know what to do with 'application/octet.' Dara - Original Message - From: Evan Nemerson [EMAIL PROTECTED] Date: Tue, 28 Jan 2003 21:28:19 -0800 To: Dara Dowd [EMAIL PROTECTED] Subject: Re: [PHP] content type header for downloading files -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Change header(Content-Disposition: attachment; filename=.basename($fname).;); to header(Content-Disposition: inline; filename=.basename($fname).;); On Tuesday 28 January 2003 06:27 pm, Dara Dowd wrote: I have the following headers in download.php which forces a download dialog box to be opened when a user clicks on a desired file: header(Content-type: application/octet); header(Content-Length: $filelength); header(Content-Disposition: attachment; filename=.basename($fname).;); This works fine with IE, but Mozilla adds a '.php' extension to the filename if i choose the save option, and asks me to choose which application to use if I want to open the file. The files are binary. Do I need to change the content-type header? If so, to what? If not, what do I do? Thanks, Dara -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+N2aH/rncFku1MdIRAvilAKCn7xrFd+TeIYYCr99xyH59fih16wCfTCHI +7dGxJJU5ikFk/H+zhkZ9hw= =bwBj -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- For the largest free email in Ireland (25MB) File Storage space (20MB), visit http://www.campus.ie Powered by Outblaze -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] request for help/advice (xml/php content management)
Hello, I am the creator of eNetwizard Content Management Server, an open source content management system using the LAMP suite. I am getting ready for its first major release and have come across some problems that I need to address first... I'm not really sure where to start this is such a *huge* project... Some preliminary information about the project can be found here: http://projects.enetwizard.net/cmserver.ehtml http://sourceforge.net/docman/display_doc.php?docid=12504group_id=59790 Content is stored as XML in files within a matrix folder. eNetwizard defines several scopes allowing templates and content to be generated on the fly in a scopeable manner. For example, any website at enetwizard.net has the same look and feel because of the domain scope matrix file; I have made this file publicly accessible if you go here: http://www.enetwizard.net/matrix1.php Another scope is the page scope which is where the main content for a page is located, so for the default page at enetwizard.net, it looks like this file: http://www.enetwizard.net/matrix2.php This allows the server to automatically assemble and render content in a variety of formats as you can see here: http://www.enetwizard.net/default.exml (as XML) http://www.enetwizard.net/default.ehtml (as HTML) This is the main idea behind general content stored by the server -- there are other ways of doing things that are even more advanced but they will not be discussed here. In order for this to work, I created an xmldoc class that can assemble all of the files together and create the file accordingly. It is then outputted via the server class. Examples of these files are here: http://www.enetwizard.net/xmldoc.php http://www.enetwizard.net/server.php Worth noting, the matrix files can contain PHP code, which is evaluated in the xmldoc class to create an actual XML document. These two classes are in their elementary forms. And they already have more issues than can be tolerated for such an advanced content management system. First of all, I cannot use the character anywhere because of the fact it is an XML file. This creates a serious problem and must be addressed. Secondly, any errors that exist in a matrix file will effectively break the page. This too is a major issue that muse be addressed, especially since it conflicts with the website wizard (which is responsible for managing existing and new content). I believe there must be a smarter way to do this and I would like any feedback one might have in this arena. I believe using regex's might be a better solution, especially since some unique tags, such as a WIZARD tag must replace be replaced by the xmldoc class with the actual content of the wizard it is referencing, same scenario for the OBJECT tag (which are customizable web applications), etc. At present this cannot work the way I have it set up. I cannot make a public release until this is fixed stably and fully productive. I am looking for someone who can help me with this XML stuff, and other competent programmers who would like to volunteer for this project. And I'm always interested in those who can translate both the localization files (eNetwizard supports any language) and the main network (enetwizard.net) into other languages. Please contact me if you can help. Thanks! If you have any questions, please feel free to ask them. Robert Samuel White eNetwizard Technical Services 284 Walnut Highland, Michigan 48357 +1 (248) 889-6363 www.rswfire.com www.enetwizard.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] request for help/advice (xml/php content management)
Haven't you already posted this? J on 05/12/02 10:20 AM, Robert Samuel White ([EMAIL PROTECTED]) wrote: Hello, I am the creator of eNetwizard Content Management Server, an open source content management system using the LAMP suite. I am getting ready for its first major release and have come across some problems that I need to address first... I'm not really sure where to start this is such a *huge* project... Some preliminary information about the project can be found here: http://projects.enetwizard.net/cmserver.ehtml http://sourceforge.net/docman/display_doc.php?docid=12504group_id=59790 Content is stored as XML in files within a matrix folder. eNetwizard defines several scopes allowing templates and content to be generated on the fly in a scopeable manner. For example, any website at enetwizard.net has the same look and feel because of the domain scope matrix file; I have made this file publicly accessible if you go here: http://www.enetwizard.net/matrix1.php Another scope is the page scope which is where the main content for a page is located, so for the default page at enetwizard.net, it looks like this file: http://www.enetwizard.net/matrix2.php This allows the server to automatically assemble and render content in a variety of formats as you can see here: http://www.enetwizard.net/default.exml (as XML) http://www.enetwizard.net/default.ehtml (as HTML) This is the main idea behind general content stored by the server -- there are other ways of doing things that are even more advanced but they will not be discussed here. In order for this to work, I created an xmldoc class that can assemble all of the files together and create the file accordingly. It is then outputted via the server class. Examples of these files are here: http://www.enetwizard.net/xmldoc.php http://www.enetwizard.net/server.php Worth noting, the matrix files can contain PHP code, which is evaluated in the xmldoc class to create an actual XML document. These two classes are in their elementary forms. And they already have more issues than can be tolerated for such an advanced content management system. First of all, I cannot use the character anywhere because of the fact it is an XML file. This creates a serious problem and must be addressed. Secondly, any errors that exist in a matrix file will effectively break the page. This too is a major issue that muse be addressed, especially since it conflicts with the website wizard (which is responsible for managing existing and new content). I believe there must be a smarter way to do this and I would like any feedback one might have in this arena. I believe using regex's might be a better solution, especially since some unique tags, such as a WIZARD tag must replace be replaced by the xmldoc class with the actual content of the wizard it is referencing, same scenario for the OBJECT tag (which are customizable web applications), etc. At present this cannot work the way I have it set up. I cannot make a public release until this is fixed stably and fully productive. I am looking for someone who can help me with this XML stuff, and other competent programmers who would like to volunteer for this project. And I'm always interested in those who can translate both the localization files (eNetwizard supports any language) and the main network (enetwizard.net) into other languages. Please contact me if you can help. Thanks! If you have any questions, please feel free to ask them. Robert Samuel White eNetwizard Technical Services 284 Walnut Highland, Michigan 48357 +1 (248) 889-6363 www.rswfire.com www.enetwizard.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Justin French http://Indent.com.au Web Development Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content-Disposition IE bug
ok i know this has popped up a couple of times before but i'm still having problems. What I need is the download popup to popup and ask the user if they wish to save or open the file they want to download. If you click open IE saves the file in your temp cache and then opens up the associated proggy and for some bizare reason adds [1] at the end of the filename and cant find the file in cache. At the moment i'm using the following: Header(Content-Type: application/octet-stream); Header(Content-Transfer-Encoding: binary); Header(File-Length: $fileSize); Header(Content-Disposition: attachment; filename=$filename); Header(Content-Description: File from DMS); fpassthru($fh); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content-Disposition IE bug
I remember reading on this a long while back. Try searching the archives of this list. The solution pointed to a Microsoft Knowledge Base article. If I recall correctly, it involved simply adding %20 to the end of your filename string... Something like this: Header(Content-Disposition: attachment; filename=$filename%20); Give it a try. I might be way off, but you've got nothing to lose. :) -- Aaron Gould Web Developer Parts Canada Francis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ok i know this has popped up a couple of times before but i'm still having problems. What I need is the download popup to popup and ask the user if they wish to save or open the file they want to download. If you click open IE saves the file in your temp cache and then opens up the associated proggy and for some bizare reason adds [1] at the end of the filename and cant find the file in cache. At the moment i'm using the following: Header(Content-Type: application/octet-stream); Header(Content-Transfer-Encoding: binary); Header(File-Length: $fileSize); Header(Content-Disposition: attachment; filename=$filename); Header(Content-Description: File from DMS); fpassthru($fh); -- 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] Content-Disposition IE bug (ADDENDUM)
I just read the part about caching... Here's the download code that works perfectly for me. Note the first line that deals with caching. The last line also has the filename in quotes. That might make a difference. If you still get [1], try the %20 trick in my last post. header(Cache-control: private); header(Content-type: application/octet-stream); header(Content-length: $filesize); header(Content-Disposition: attachment; filename=\$filename\); -- Aaron Gould [EMAIL PROTECTED] Web Developer Parts Canada - Original Message - From: Francis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 5:45 AM Subject: [PHP] Content-Disposition IE bug ok i know this has popped up a couple of times before but i'm still having problems. What I need is the download popup to popup and ask the user if they wish to save or open the file they want to download. If you click open IE saves the file in your temp cache and then opens up the associated proggy and for some bizare reason adds [1] at the end of the filename and cant find the file in cache. At the moment i'm using the following: Header(Content-Type: application/octet-stream); Header(Content-Transfer-Encoding: binary); Header(File-Length: $fileSize); Header(Content-Disposition: attachment; filename=$filename); Header(Content-Description: File from DMS); fpassthru($fh); -- 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] Content-Disposition IE bug (ADDENDUM)
nope still dont work :( oh well back to bashing my head against a wall and talking to microsoft :) Aaron Gould [EMAIL PROTECTED] wrote in message 012c01c27447$69e831c0$3f63a8c0@pcagould">news:012c01c27447$69e831c0$3f63a8c0@pcagould... I just read the part about caching... Here's the download code that works perfectly for me. Note the first line that deals with caching. The last line also has the filename in quotes. That might make a difference. If you still get [1], try the %20 trick in my last post. header(Cache-control: private); header(Content-type: application/octet-stream); header(Content-length: $filesize); header(Content-Disposition: attachment; filename=\$filename\); -- Aaron Gould [EMAIL PROTECTED] Web Developer Parts Canada - Original Message - From: Francis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 5:45 AM Subject: [PHP] Content-Disposition IE bug ok i know this has popped up a couple of times before but i'm still having problems. What I need is the download popup to popup and ask the user if they wish to save or open the file they want to download. If you click open IE saves the file in your temp cache and then opens up the associated proggy and for some bizare reason adds [1] at the end of the filename and cant find the file in cache. At the moment i'm using the following: Header(Content-Type: application/octet-stream); Header(Content-Transfer-Encoding: binary); Header(File-Length: $fileSize); Header(Content-Disposition: attachment; filename=$filename); Header(Content-Description: File from DMS); fpassthru($fh); -- 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] Content-Length
Hi I am currently having problems with a custom written web-authentication-proxy. The proxy works fine with standard html pages but not with php pages. After doing a bit of digging I have found that the proxy does a HEAD request and checks the Content-Length to see if the page if valid. I have been able to use Header( Content-Length: 100 ) to fool the proxy into loading the php page. My question is how do I go about calculating the correct Content-Length for each and every php page on my site. I have done some digging and presume I need to do Output buffering and calculate the strlen of the response the php returns, but how do I reference the result of a php page to get a strlen from it?? Any assistance would be welcome Thanks Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content-Length
On Thu, Jul 04, 2002 at 01:24:04PM +0200, Grant wrote: My question is how do I go about calculating the correct Content-Length for each and every php page on my site. I have done some digging and presume I need to do Output buffering and calculate the strlen of the response the php returns, but how do I reference the result of a php page to get a strlen from it?? You didn't dig far enough, since there is an example of exactly what you want on: http://www.php.net/manual/en/function.ob-get-length.php Isn't the online reference need? :) -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content Management System in php
I have been looking into some of the CMS' that the php community provides. Now I wonder what the common thoughts about these are. Are they fit for deployment into professtional organisations or simply still on a idealistic-website level? I made a trial installation of php-nuke and frankly i'm very impressed on some matters, like its sceduled posting and admin interface. However it lacs some features in the ability to apply a own design, its forum has something left to desire so on. It might work for a site like /., but I doubt it would work very well on a corporate nework. PostNuke might even look a bit better and dynamic. Am I wrong about this? Do anyone got any experiences with eZ publish? What interests me in a CMS, are subjects like: -Ability to use role/group-based access. -Forum options (access/theading/moderation s.o.) -Ability to easily make a design/theme that fits a strict and ready-set design. -Ability to incorporate existing web-modules/pages/sites I would very much like to hear your thoughts of this... Olav Bringedal jaggu.org __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Content Management System in php
Indeed PHP-Nuke is not meant for Co-orporate sites... I have my own custom built 'bits' that I put together when doing site for a client. If you can't/don't have the luxury of being able to hire/contract a developer to develop a custom-designed solution for your needs then you are unfortinaltley limited to what the various CMS's out there can do. I've looked at most of them and none offer a solution that to me is 'perfect' each of them have bits that are greate, but it's the lack of the rest of the application that lets it down. As for php-nukes admin facility, it's possibly one of the worst I've pseronally seen, but again unless you are able to get something custom developed, you wont find/it'll be hard to find a single pre-built CMS that will do what you want. Going back to php-nuke, I'ts qyite limited in what you can do with it's layout from what i can remember - I may be wrong - looking at a version of it from last month. I also think for co-orporate sites, a CMS/CRM solution would be better, however this is an even bigger undertaking. Just my thoughts on CMS's ;) To me all/most CMS's out there are aimed at 'pet sites', like, personal sites, gamers sites and so on... -Original Message- From: Olav Bringedal [mailto:[EMAIL PROTECTED]] Sent: 18 June 2002 9:33 AM To: [EMAIL PROTECTED] Subject: [PHP] Content Management System in php I have been looking into some of the CMS' that the php community provides. Now I wonder what the common thoughts about these are. Are they fit for deployment into professtional organisations or simply still on a idealistic-website level? I made a trial installation of php-nuke and frankly i'm very impressed on some matters, like its sceduled posting and admin interface. However it lacs some features in the ability to apply a own design, its forum has something left to desire so on. It might work for a site like /., but I doubt it would work very well on a corporate nework. PostNuke might even look a bit better and dynamic. Am I wrong about this? Do anyone got any experiences with eZ publish? What interests me in a CMS, are subjects like: -Ability to use role/group-based access. -Forum options (access/theading/moderation s.o.) -Ability to easily make a design/theme that fits a strict and ready-set design. -Ability to incorporate existing web-modules/pages/sites I would very much like to hear your thoughts of this... Olav Bringedal jaggu.org __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.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
Re: [PHP] Content Management
I would also check out the midgard project which has made vast improvements in the current 1.4.x series. http://www.midgard-project.org/ karthikeyan wrote: Hi, How should i go about to developing a php application to manage the content of a web site OR is there allready some ready made script available which i can use in my project. Looking forward for yours response. karthikeyan. -- Vincent Stoessel [EMAIL PROTECTED] Linux and Java Application Developer (301) 362-1750 AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Content Management
Hi, How should i go about to developing a php application to manage the content of a web site OR is there allready some ready made script available which i can use in my project. Looking forward for yours response. karthikeyan.
RE: [PHP] Content Management
We'd need some more information, as Content Management is as varied as web pages, but depending on your needs: http://www.roadsend.com/siteManager/home/treeMenu.php is a hot script. Look around on-line or on php.net for some leads that suite your complexity requirements, or fill us in on the scope of your project. - sean --- I N T E R C O N N E C T Internet Image Development Tel: 505 989 3749 http://www.InterConnect.is.it --- -Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Content Management Hi, How should i go about to developing a php application to manage the content of a web site OR is there allready some ready made script available which i can use in my project. Looking forward for yours response. karthikeyan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content Management
You might check out binarycloud. This is a platform but there is probably going to be an app for content management very soon as this is being worked on. SEE: http://binarycloud.tigris.org/ SEE: http://www.binarycloud.com/ _justin karthikeyan wrote: Hi, How should i go about to developing a php application to manage the content of a web site OR is there allready some ready made script available which i can use in my project. Looking forward for yours response. karthikeyan. -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Content Management
Zope mantains a lot of large sites. Also I know www.ig.com.br (second most accessed site here in Brazil) uses Vignette. In fact, ALL large sites has to use some kind of CMS, otherwise keeping the large amount of content and related operations between sub-sections is close to impossible. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Erik Price [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wednesday, January 30, 2002, at 02:19 PM, [EMAIL PROTECTED] wrote: Does anyone know of an organization who has built and maintains a web content management application for a large site? Zope. Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Content Management
Does anyone know of an organization who has built and maintains a web content management application for a large site?
[PHP] Content Management
Does anyone know of an organization who has built and is maintaining a web content management app for a large site using PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content Management
CMS is kind of an ambigous term anymore. I contribute to Geeklog, http://geeklog.sourceforge.net so I'd recommend seeing if that fits your needs. If not, give PHP Nuke, Post Nuke, Scoop and slashcode a look. Not sure what exactly your CMS needs are so I'm not sure if what I just suggested are viable options. On Wed, 2002-01-30 at 13:19, [EMAIL PROTECTED] wrote: Does anyone know of an organization who has built and maintains a web content management application for a large site? -- Tony Bibbs | Life is a moderately good play [EMAIL PROTECTED] | with a bad 3rd act. 515.554.8046 | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content Management
What do you mean by the term content management? It is a little ambiguous, do you mean something like a wiki? Large is a bit unquantified as well. Like the time I went to the bank and my wife asked be to bring her some money. She was a bit surprise to be handed three bucks; subsequent requests were more specific. Cheers - Miles At 07:21 PM 1/30/2002 +, [EMAIL PROTECTED] wrote: Does anyone know of an organization who has built and is maintaining a web content management app for a large site using PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content Management
By CMS, I am referring to an application similar to Vignette, that allows users to manage the content on a site through a browser interface. _ Bob Hillhouse Tony Bibbs tony@tonybibb To: [EMAIL PROTECTED] s.com cc: PHP General [EMAIL PROTECTED] Subject: Re: [PHP] Content Management 01/30/2002 02:30 PM CMS is kind of an ambigous term anymore. I contribute to Geeklog, http://geeklog.sourceforge.net so I'd recommend seeing if that fits your needs. If not, give PHP Nuke, Post Nuke, Scoop and slashcode a look. Not sure what exactly your CMS needs are so I'm not sure if what I just suggested are viable options. On Wed, 2002-01-30 at 13:19, [EMAIL PROTECTED] wrote: Does anyone know of an organization who has built and maintains a web content management application for a large site? -- Tony Bibbs | Life is a moderately good play [EMAIL PROTECTED] | with a bad 3rd act. 515.554.8046 | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content Management
When I think content management, I think of: -- separates content from presentation -- ie supports templates with which a content item can be rendered -- allows specification of language (ie French German English whatever) with which content is presented -- provides handy tools for managing content, ie, spell checking, broken link checking, query index / search contents, etc -- supports archiving, versioning and releasing (aka publishing) Famous commercials content management apps are Vignette, Interwoven, MediaBin etc. A search on freshmeat shows several -- I'm familiar with but have not used the Ars Digita Community / Content Management System. At 03:39 PM 1/30/02 -0400, Miles Thompson wrote: What do you mean by the term content management? It is a little ambiguous, do you mean something like a wiki? Large is a bit unquantified as well. Like the time I went to the bank and my wife asked be to bring her some money. She was a bit surprise to be handed three bucks; subsequent requests were more specific. Cheers - Miles At 07:21 PM 1/30/2002 +, [EMAIL PROTECTED] wrote: Does anyone know of an organization who has built and is maintaining a web content management app for a large site using PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Les Neste 678-778-0382 http://www.lesneste.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content Management
On Wednesday, January 30, 2002, at 02:19 PM, [EMAIL PROTECTED] wrote: Does anyone know of an organization who has built and maintains a web content management application for a large site? Zope. Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Content
I have a little problem I have been trying to solve, but so I haven't had any luck so far. A product we use sends an HTTP Post request when certain events happen. We want to write a script which will process this request and take certain actions. Unfortunately, Some of the data comes not as Post variables, but as part of the Content of the HTTP request. Here is a sample: *** Beginning *** POST /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0ApplicationName=NPlexApplicationVersion=6.0.037RequestType=NewMsgRequestTime=01/15/2002%2014:08:23ServerType=email[EMAIL PROTECTED]MessageType=email[EMAIL PROTECTED]%3ESubject=TST26MessageReceivedTime=01/15/2002%2014:08:23 HTTP/1.0 Host: 10.9.35.7 Date: Tue, 15 Jan 2002 14:08:23 GMT Content-Type: text/plain Content-Length: 43 Connection: close First line. Middle line. Last Line. *** End *** The content is everything between First Line and Last Line, inclusive. This is passed through stdin by Apache. I tried reading from php://stdin, but it returns nothing to me. Any clues as to how I might be able to access that? Or any authoritative answer that this is not possible with PHP? Thanks for any help, -- Daniel C. Sobral [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content
Hi Daniel, variables, but as part of the Content of the HTTP request. Here is a sample: POST /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0ApplicationName=NPlexApplicationVersion=6.0.037RequestType=NewMsgRequestTime=01/15/2002%2014:08:23ServerType=email[EMAIL PROTECTED]MessageType=email[EMAIL PROTECTED]%3ESubject=TST26MessageReceivedTime=01/15/2002%2014:08:23 HTTP/1.0 in your php script, try to echo the passed param directly as variable, for example $NotificationProtocolVersion or $ApplicationName if it show the correct value, then you're lucky. otherwise, you have to parse the HTTP request. parse_str($QUERY_STRING); // after this you will have the $NotificationProtocolVersion variable -- Jimmy A woman is like your shadow; follow her, she flies; fly from her, she follows. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content
Jimmy wrote: Hi Daniel, variables, but as part of the Content of the HTTP request. Here is a sample: POST /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0ApplicationName=NPlexApplicationVersion=6.0.037RequestType=NewMsgRequestTime=01/15/2002%2014:08:23ServerType=email[EMAIL PROTECTED]MessageType=email[EMAIL PROTECTED]%3ESubject=TST26MessageReceivedTime=01/15/2002%2014:08:23 HTTP/1.0 in your php script, try to echo the passed param directly as variable, for example $NotificationProtocolVersion or $ApplicationName if it show the correct value, then you're lucky. otherwise, you have to parse the HTTP request. parse_str($QUERY_STRING); // after this you will have the $NotificationProtocolVersion variable Well, I think Daniel means that he wants to use the body of the POST. I would guess that the GET variables are useful as usual. I dunno how to do that from the top of my head, but imo Daniels server is broken since POST variables are sent in the body, but that is clearly no POST request at all. In this case PHP has no way of parsing the broken request. Or am I wrong here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content
Hi Martin, I dunno how to do that from the top of my head, but imo Daniels server is broken since POST variables are sent in the body, but that is clearly no POST request at all. In this case PHP has no way of parsing the broken request. Or am I wrong here? nope. in POST request, all the variable will be in the body/content part, so it is correct. -- Jimmy To Jazz or not to jazz. That's the question. -William Saxpeare- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content
Jimmy wrote: Hi Daniel, variables, but as part of the Content of the HTTP request. Here is a sample: POST /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0ApplicationName=NPlexApplicationVersion=6.0.037RequestType=NewMsgRequestTime=01/15/2002%2014:08:23ServerType=email[EMAIL PROTECTED]MessageType=email[EMAIL PROTECTED]%3ESubject=TST26MessageReceivedTime=01/15/2002%2014:08:23 HTTP/1.0 in your php script, try to echo the passed param directly as variable, for example $NotificationProtocolVersion or $ApplicationName if it show the correct value, then you're lucky. otherwise, you have to parse the HTTP request. parse_str($QUERY_STRING); // after this you will have the $NotificationProtocolVersion variable I have these variables, but these variables are NOT what I want. Well, I want them, but that's the easy part. The problem is the content. -- Daniel C. Sobral (8-DCS) [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] The superior man understands what is right; the inferior man understands what will sell. -- Confucius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content
Grab the latest version of PHP. There is a new php.ini directive called always_populate_raw_post_data which when turned on forces all post data to be available through the $HTTP_RAW_POST_DATA variable. -Rasmus On Tue, 15 Jan 2002, Daniel C. Sobral wrote: I have a little problem I have been trying to solve, but so I haven't had any luck so far. A product we use sends an HTTP Post request when certain events happen. We want to write a script which will process this request and take certain actions. Unfortunately, Some of the data comes not as Post variables, but as part of the Content of the HTTP request. Here is a sample: *** Beginning *** POST /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0ApplicationName=NPlexApplicationVersion=6.0.037RequestType=NewMsgRequestTime=01/15/2002%2014:08:23ServerType=email[EMAIL PROTECTED]MessageType=email[EMAIL PROTECTED]%3ESubject=TST26MessageReceivedTime=01/15/2002%2014:08:23 HTTP/1.0 Host: 10.9.35.7 Date: Tue, 15 Jan 2002 14:08:23 GMT Content-Type: text/plain Content-Length: 43 Connection: close First line. Middle line. Last Line. *** End *** The content is everything between First Line and Last Line, inclusive. This is passed through stdin by Apache. I tried reading from php://stdin, but it returns nothing to me. Any clues as to how I might be able to access that? Or any authoritative answer that this is not possible with PHP? Thanks for any help, -- Daniel C. Sobral [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] content disposition and internet exploder
I am attempting to allow users to download csv files that are created dynamically from a database. In order to do so I use: header( Content-Disposition: attachment, filename=query.csv); This works fine in NS, but not in IE, as it always attempts to save the file using the script name instead of the filename in the header. I have read numerous posts and articles on MS site as well as this list about bugs in MS 4.01 5.0 and 5.5, but each article claims that the problem is fixed with SP2 etc. I have installed each of the service packs and have not been able to get this to work correclty on any of them. Has anyone had success in getting IE to use the correct filename when downloading dynamically generated files? Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] content disposition and internet exploder
I am attempting to allow users to download csv files that are created dynamically from a database. In order to do so I use: header( Content-Disposition: attachment, filename=query.csv); [snip] Has anyone had success in getting IE to use the correct filename when downloading dynamically generated files? I just use: Header(Content-disposition: filename=.$filename); ... ie, no attachment. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] content disposition and internet exploder
You could just trick it with a URL like: http://your.domain.com/script.php/query.csv IE will think your script is called query.csv while Apache is smart enough to run script.php. -Rasmus On Sun, 2 Dec 2001, Fred wrote: I am attempting to allow users to download csv files that are created dynamically from a database. In order to do so I use: header( Content-Disposition: attachment, filename=query.csv); This works fine in NS, but not in IE, as it always attempts to save the file using the script name instead of the filename in the header. I have read numerous posts and articles on MS site as well as this list about bugs in MS 4.01 5.0 and 5.5, but each article claims that the problem is fixed with SP2 etc. I have installed each of the service packs and have not been able to get this to work correclty on any of them. Has anyone had success in getting IE to use the correct filename when downloading dynamically generated files? Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] content disposition and internet exploder
LOL Of course it worked. Open Source outwits MS yet again. Fred Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You could just trick it with a URL like: http://your.domain.com/script.php/query.csv IE will think your script is called query.csv while Apache is smart enough to run script.php. -Rasmus On Sun, 2 Dec 2001, Fred wrote: I am attempting to allow users to download csv files that are created dynamically from a database. In order to do so I use: header( Content-Disposition: attachment, filename=query.csv); This works fine in NS, but not in IE, as it always attempts to save the file using the script name instead of the filename in the header. I have read numerous posts and articles on MS site as well as this list about bugs in MS 4.01 5.0 and 5.5, but each article claims that the problem is fixed with SP2 etc. I have installed each of the service packs and have not been able to get this to work correclty on any of them. Has anyone had success in getting IE to use the correct filename when downloading dynamically generated files? Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]