Re: [PHP-WIN] Category/SubCategory

2004-12-02 Thread Bobo Wieland
Javascript/php seems to work nice for me (i give it to you as it is with no explainations... It's also a bit old so I don't know why I did it just like this and not in any other way): function advancedSearch_js() { global $link_id; print (script language='JavaScript1.2'

[PHP-WIN] [maybe minor ot] cache probs.

2004-11-26 Thread Bobo Wieland
i'm sorry _if_ this is ot... i use php to communicate between flash and mysql... in internet explorer (not in opera or fire fox, where eveything works ok) something goes wrong and flash recives old data that doesn't exist anymore... the php page that loads the flash movie displays the correct

[PHP-WIN] imagecreatefromjpeg()

2004-11-24 Thread Bobo Wieland
hi! i get: Fatal error: Call to undefined function: imagecreatefromjpeg() in e:\www\plantis\plantisadmin\data\imglib.php on line 36 i have wamp5 with php 4.3.9... i can get the script to work by uncomment the use of gd2 in php.ini but the script doesnt work as it should anyway. I was able to

[PHP-WIN] image cache

2004-11-24 Thread Bobo Wieland
i have an image upload script that uses fixed image names... when i update an image, that image will be replaced at the server using the same name as the old image... now, my browser doesn't check for the new image but checkes it cache instead and ofcourse finds the old image... how can i fix

[PHP-WIN] apache config question

2004-10-28 Thread Bobo Wieland
How do I set up permission to access folders and not only specific files in these folders with apache...? I can't find the correct line in httpd.conf _bobo

[PHP-WIN] 4 vs 5

2004-10-08 Thread Bobo Wieland
Hi all! I'm about to reinstall PHP/MySQL/Apache (+ MySQL Front) on my WinXP machine... It's been a while since I last installed this package and there have been some version changes... Should I go for the old Apache or Apache 2? And most important; can I have a dual install of php4 and php5 or

Re: [PHP-WIN] check boxes... set the VALUE or just echo CHECKED????

2004-07-06 Thread Bobo Wieland
With xhtml syntax which I prefer it should be: input type='radio' name='search' value='something' checked='checked' / .bobo - Original Message - From: Gryffyn, Trevor [EMAIL PROTECTED] To: [PHP-WIN] [EMAIL PROTECTED] Cc: Leo G. Divinagracia III [EMAIL PROTECTED] Sent: Tuesday, July

Re: [PHP-WIN] Photo gallery with description

2004-05-14 Thread Bobo Wieland
The downside is that you will have to manually create the thumbnails and the displayed images. I've made a Macromedia Flash MX application that loads a newly uploaded image (uploaded by a php script) where the user can select an area of the image. The coordinates of the selected area is then

Re: [PHP-WIN] Best way to tell how many rows a query returns

2004-05-12 Thread Bobo Wieland
Do this query first to get a variable that holds the total number of rows matching your query count = mysql_result(mysql_query(SELECT COUNT(*) AS count FROM table WHERE condition, $link_id),count); I think this is the correct syntax... .bobo - Original Message - From: Ross

[PHP-WIN] Re:RE: [PHP-WIN] Photo gallery with description

2004-05-12 Thread Bobo Wieland
Doesn't anybody do their own thing anymore? This is so boring, uninspiring and depressing... Does any of the suggested gallery code do exactly what Lenny asked for? In my experience you always get a lot more then you want when using packages like this. And if you want to do something different

Re: [PHP-WIN] Replacing field values in MySQL - is there an easy way?

2004-05-11 Thread Bobo Wieland
Just use: UPDATE table SET fld1= 'foobar' WHERE some-condition or RTM... =) .bobo - Original Message - From: Ross Honniball [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 12:40 PM Subject: [PHP-WIN] Replacing field values in MySQL - is there an easy way? This

[PHP-WIN] sci calculator

2004-05-11 Thread Bobo Wieland
Anyone that has the source for a good php sci-calculator? .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] install win95 problem

2004-03-19 Thread Bobo Wieland
Hi! I'm trying to install PHP under windows95. I'm using easyphp from www.easyphp.org . Whn I'm trying to run php.exe I get an error message saying something like: PHP4TS.DLL is linked for export, ole32.dll:createInstance(something something) which does not exist Anyone know what this is?

[PHP-WIN] deriv

2004-03-15 Thread Bobo Wieland
hi! Anyone that knows about any open source functions for deriv any given math function? .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] sql dumps

2004-03-14 Thread Bobo Wieland
Hi! Is there some good tutorial or example code for dumping sql-files back-and-forth via php? .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] sql dumps

2004-03-14 Thread Bobo Wieland
Message- From: Bobo Wieland To: [EMAIL PROTECTED] Sent: 14-3-2004 13:58 Subject: [PHP-WIN] sql dumps Hi! Is there some good tutorial or example code for dumping sql-files back-and-forth via php? .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP-WIN] load data infile

2004-03-14 Thread Bobo Wieland
This code... code $q = LOAD DATA INFILE '.str_replace(\\,/,$sqlfil[tmp_name]).' REPLACE INTO TABLE sortiment; $res = mysql_query($q, $link_id); print(mysql_affected_rows($link_id).br /.str_replace(\\,/,$sqlfil[tmp_name])); /code ...gives the output: -1 C:/WINDOWS/TEMP/php1D0.tmp Any idea

[PHP-WIN] a for-loop syntax question

2004-01-12 Thread Bobo Wieland
Hi... Is there a way to set a for loop to exit when the FIRST of many expresions evaluate to false? the code: for ($i = 0, $j = 0; $i 10, $j 5; $i++, $j++) {} will execute 10 times, but i was hoping it would exit when $j was set to 5... Is there some way of doing this? .bobo

Re: [PHP-WIN] a for-loop syntax question

2004-01-12 Thread Bobo Wieland
thank you! You learn something new everyday... Didn't think you could use expressions like that in a for-loop... .bobo - Original Message - From: Svensson, B.A.T. (HKG) [EMAIL PROTECTED] To: Bobo Wieland [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 12, 2004 3:16 PM

Re: [PHP-WIN] a for-loop syntax question

2004-01-12 Thread Bobo Wieland
worked like a charm! =) don't think it'll tell you much, but this is the acctual code i'm using now: for ($j = 1; $j 10 $num_rows 0; $num_rows -= MAXSHOWN, $j++) {} .bobo - Original Message - From: Svensson, B.A.T. (HKG) [EMAIL PROTECTED] To: Bobo Wieland [EMAIL PROTECTED] Cc

[PHP-WIN] chmod

2004-01-02 Thread Bobo Wieland
I'm trying to set write permission for a folder to be able to write images... chmod(./../img/sort,0777) just causing a warning: Warning: chmod(): Operation not permitted in /home/p/plantsko/www/administration/data/imglib.php on line 11 Anyone know what might cause this warning? I've tried

Re: [PHP-WIN] chmod

2004-01-02 Thread Bobo Wieland
I've contacted my ISP and it accually was an error from their side. thanks anyway... .bobo - Original Message - From: Frank M. Kromann [EMAIL PROTECTED] To: Warren Vail [EMAIL PROTECTED] Cc: Svensson, B.A.T. (HKG) [EMAIL PROTECTED]; 'Bobo Wieland ' [EMAIL PROTECTED]; [EMAIL PROTECTED

[PHP-WIN] imagecopyresampled question

2003-12-26 Thread Bobo Wieland
Hi all and merry christmas (and a happy new year)! I use fixed values in this example, but of course it is variables in my script... Let's say I have an image uploaded to the server: 650x400px... Now, I've selected a square out of this image using a flash app that returns the coordinates i've

Re: [PHP-WIN] imagecopyresampled question

2003-12-26 Thread Bobo Wieland
end_x: 300px; (or width:200px;) end_y: 350px; (or height:200px;) I ment 320px; for end_y... .bobb -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] cookies and sessions...

2003-12-08 Thread Bobo Wieland
what is the difference between cookies, sessions and sessioncookies? I use sessions only when I design websites and it works great. But sometimes when I check the statistics for my sites the visiting paths ends with a PHPSID, but most of the time they don't. when does one occur and when does the

Re: [PHP-WIN] Re: ereg-replace removing whitespace...

2003-12-03 Thread Bobo Wieland
-replace removing whitespace... I don't use ereg myself, but with preg_replace you could do: $str = preg_replace('/\[\/URUB\]\s*/', '/strongbr /', $str); Bobo Wieland wrote: Hi... I'm trying to use ereg_replace to replace [/URUB] with /strongbr / The problem is that ther might, and might

Re: [PHP-WIN] Flash and PHP 4.3.4

2003-12-03 Thread Bobo Wieland
if you use sendAndLoad into a loadVars object in flash you can just have a php script that prints a query string... lets say you have the name Robert in a loadVars object names theName. So: flash code theName.name = Robert; /flash code now use the sendAndLoad with the POST-method and specify a

[PHP-WIN] ereg-replace removing whitespace...

2003-12-02 Thread Bobo Wieland
Hi... I'm trying to use ereg_replace to replace [/URUB] with /strongbr / The problem is that ther might, and might not, be any number of trailing whitespaces after the [/URUB]-tag... Everything between the [/URUB] (and the tag itself) and the next alphanumeric char should be replaced with

[PHP-WIN] talking to flash

2003-11-06 Thread Bobo Wieland
Hi! How do I set up a php-script so that it can communicate with Flash MX? I send a querystring to the php-script - but I don't know how to return anything from that function or how to check if it works... Anyone? I guess it would be the same principles as to communicate with some other

[PHP-WIN] best php editor?

2003-11-04 Thread Bobo Wieland
Hi! What is the best php editor out there? Preferbly freeware... I use Homesite+ right now. It's the best one so far that I've tried but I would like codehints which Homesite doesn't provide. So I would like an editor that, when I write a_defined_php_function( the editor would show

[PHP-WIN] Installation probs...

2003-11-01 Thread Bobo Wieland
Trying to install php/apache/mysql again after buying a new computer... I have Apache runing as a service in WinXP (Home)... I think it works as it should... The server is set to 127.0.0.1 In my webservers rootdir I have a file named index.php that contains the code: ?php phpinfo(); ? Pointing

Re: [PHP-WIN] Installation probs...

2003-11-01 Thread Bobo Wieland
No... I'm still using the old version of Apache... :/ anyone? .bobo - Original Message - From: Steven Mac Intyre [EMAIL PROTECTED] To: Bobo Wieland [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 10:26 PM Subject: Re: [PHP-WIN] Installation probs... Bobo

Re: [PHP-WIN] Installation probs...

2003-11-01 Thread Bobo Wieland
Thanks! That was it! Now it works perfectly... Time to try to get MySQL to work... ;) .bobo - Original Message - From: Dash McElroy [EMAIL PROTECTED] To: Bobo Wieland [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 11:58 PM Subject: Re: [PHP-WIN] Installation

Re: [PHP-WIN] MySQL Help

2003-09-25 Thread Bobo Wieland
$num_items = amount user wants; $td2 = floor($num_items/2); $td1 = $num_items-$td2; print(td); for($i = 0; $i $td1; $i++) { print(); } print(/td); print(td); for($i = $td1; $i $td2; $i++) { print(); } print(/td); .bobo - Original Message - From: Dean Hayes [EMAIL

Re: [PHP-WIN] Problem with 2 buttons

2003-09-23 Thread Bobo Wieland
maybe you could do it like this: change the name attribute of the buttons to something else (or leave them out all together)... add and onclick event and some javascript to set the values of the hidden fields... something like this (simplified): [CODE] script language='JavaScript'!--

[PHP-WIN] array math...

2003-09-22 Thread Bobo Wieland
Hi! if I have an multi dimensional array, like this: $myArr[0][points] = 5; $myArr[1][points] = 19; $myArr[2][points] = 12; $myArr[3][points] = 46; ...and I need to get the highest value stored in the $myArr[][points]-element, in this case 46, how do I do it? Thanks for your help! .bobo

Re: [PHP-WIN] Re: generate img with fonts...

2003-09-20 Thread Bobo Wieland
Thanks for your replay. But, why do I have to install freetype? As I've come to understand you can just use the built in php functions with any server installed font. No extra software necessary... Please enlighten me :) .bobo [EMAIL PROTECTED] - Original Message - From: Sek-Mun Wong

[PHP-WIN] generate img with fonts...

2003-09-18 Thread Bobo Wieland
Hi! I've never tried generating graphics with php before but thought that I might have to because of a problem with non-standard web fonts. Because a css with the following code... font-family: BlissIf Caps BoldItalic, verdana, helvetica; ...would most certanly show verdana in the users

Re: [PHP-WIN] mysql+php query

2003-09-10 Thread Bobo Wieland
$SQL = SELECT 'password' FROM 'table' WHERE 'username' = '.$user.';; $result = mysql_query($db,$SQL,$cid); With the above you then do a: $pass = mysql_fetch_object($result); $pass-passord //is the password then... .bobo - Original Message - From: Exiang [EMAIL PROTECTED] To: [EMAIL

Re: [PHP-WIN] mysql+php query

2003-09-10 Thread Bobo Wieland
$SQL = SELECT 'password' FROM 'table' WHERE 'username' = '.$user.';; $result = mysql_query($db,$SQL,$cid); With the above you then do a: $pass = mysql_fetch_object($result); $pass-passord //is the password then... .bobo - Original Message - From: Exiang [EMAIL PROTECTED] To: [EMAIL

Re: [PHP-WIN] Help me!

2003-09-01 Thread Bobo Wieland
I've used something like this for optimizing webpages for different resolutions and have not had any problems... code script language='JavaScript' !-- Begin function setWidth() { var W = screen.width; location = thepage.php?w= + W; } // End -- /script to get the value to php i then have

Re: [PHP-WIN] Displaying one record per page

2003-08-28 Thread Bobo Wieland
If I understood you correct you could do something like this with mysql: code $recnum = (isset($_GET[recnum])) ? $_GET[recnum] : 1; $q = SELECT * FROM table LIMIT .$recnum.,1; $r = mysql_query($q, $link_id); $row = mysql_fetch_object($r); print ($row-some_field); print (a

[PHP-WIN] mysql search question

2003-07-27 Thread Bobo Wieland
Is there a way to ORDER BY best-match-first when _not_ using FULLTEXT searches in MySQL? How can I calculate the relevance percentage? Can I do it in the mysql query directly or do I have to find a way to do it with PHP...? .bobo [EMAIL PROTECTED]

[PHP-WIN] replacing strings... (hope it isn't too basic...)

2003-07-25 Thread Bobo Wieland
Q1 :If I'm for example is going to replace all occurences of foo in the following sentence with bar in case-insensetiv manner how would I do it? Foo foo foo Foo fOO fOo should be replaced with Bar bar bar Bar bAR bAr... I guess I would need regular expressions? Right? - Q2:

[PHP-WIN] Making search functions (Search engine newbie)

2003-07-02 Thread Bobo Wieland
How do I best implement search functions on my site? (just local search). All info that should be searched is in a MySQL table. I wan't both a simple search that searches everything and one advanced seach form. What I need to know is how to set up the SQL-query. I've only done searches with

[PHP-WIN] Admin pages as simple as possible...

2003-07-02 Thread Bobo Wieland
I want my client to be able to update his site him self, and I want it to be as simple as possible for him. I think I will save the data as XML in a MySQL db (since I've allready made the parser for presenting the XML data...) Now the problem is this; If my client wants to publish a new article

[PHP-WIN] Admin pages as simple as possible...

2003-07-02 Thread Bobo Wieland
I want my client to be able to update his site him self, and I want it to be as simple as possible for him. I think I will save the data as XML in a MySQL db (since I've allready made the parser for presenting the XML data...) Now the problem is this; If my client wants to publish a new article

[PHP-WIN] Bitwize operations

2003-06-07 Thread Bobo Wieland
Hi! [LONG EXPLAINATION OF THE PROBLEM (questions further down)] I'm about to create a MySQL db for a company dealing with plants (trees and bushes and that sort of thing). Now a user should be able to search for a specific plant in this db - but that specific plant could come in many different

Re: [PHP-WIN] Installation problems...

2003-06-05 Thread Bobo Wieland
Hi! To all that helped me before; Thanks! It works now! I didn't install phpMyAdmin, but MySQL Front, though... -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Installation problems...

2003-05-31 Thread Bobo Wieland
, httpd.conf or my.ini. Please help me! Thank you all! .bobo - Original Message - From: Bobo Wieland [EMAIL PROTECTED] To: Ryan Marrs [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 12:57 PM Subject: Re: [PHP-WIN] Installation problems... I'm running PHP as ISAPI (i

Re: [PHP-WIN] Installation problems...

2003-05-30 Thread Bobo Wieland
Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 6:51 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Installation problems... Trying to reinstall PHP/MySQL/Apache on my WinXP setup... Ran in to some trouble though, that I hope you can help me with... First

[PHP-WIN] Installation problems...

2003-05-29 Thread Bobo Wieland
Trying to reinstall PHP/MySQL/Apache on my WinXP setup... Ran in to some trouble though, that I hope you can help me with... First, I'm getting the following warning message: Warning: session_start() [function.session-start]: open(/tmp\sess_a0b08aae778010e958503bfde26c0ab5, O_RDWR) failed: No

Re: [PHP-WIN] Installation problems...

2003-05-29 Thread Bobo Wieland
I'm running PHP as ISAPI (i think... ;-) ) and I use Apache2 - which I've restarted a number of times... *sigh* thanks! .bobo - Original Message - From: Ryan Marrs [EMAIL PROTECTED] To: 'Bobo Wieland' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 12:54 PM

[PHP-WIN] db search

2003-04-05 Thread Bobo Wieland
Hi all! Any good tutorials for adding a search-function to your homepage? I have a 'qa' section with three fields fetched from a mysql table. The fields are: headline(varchar(50)), question(text) and answer(text). These are the feilds that should be searched... I think my ISP has mysql 3.23.54

[PHP-WIN] ereg_replace...

2003-04-05 Thread Bobo Wieland
is there some way to change the following code: $wrd = ereg_replace([^[:alnum:]], , $wrd); so that it does not remove , and ? .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP-WIN] Tables (might be OT)

2003-03-30 Thread Bobo Wieland
Thanks to all of you for helping me. So far, the css-option - word-wrap:break-word; - is the best solution. But it's worthless since it doesn't work in Mozilla... To bad... =( The code (below and in previous mail) is great too, but doesn't work either. It is only _words_ that are too long that

[PHP-WIN] uploading files

2003-03-26 Thread Bobo Wieland
Is it possible to upload multiple files at once? ...In a form, using a file input and being able to select more then one file? .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Calculationg lines of text

2003-03-19 Thread Bobo Wieland
When you're dealing with layout w text and images in documents on the web, where the text/images is updatable by the client, it would be nice to be able to calulate lines of text and charachters per line. Is there some way to do this in php? If not, is it possible in some other language?

Re: [PHP-WIN] Passing value in URL to form

2003-03-10 Thread Bobo Wieland
You can do it with javascript... script language=JavaScript!-- document.formName.fieldName.value = location.search.substring(1); //--/script but this question would be better suited somewhere else than @ PHP-WIN, don't you think? =) . bobo . - Original Message - From: Stephen K

[PHP-WIN] unique month-year (MySQL-php)

2003-03-05 Thread Bobo Wieland
Hi all! I have a mysql table with a timestamp field. I need to get the information on which month's and year's there are present in this table. How can I get this info? It's important that I don't get any duplicates... $q = SELECT (?) AS year, (?) AS month FROM my_table ORDER BY year, month;

Re: [PHP-WIN] unique month-year (MySQL-php)

2003-03-05 Thread Bobo Wieland
Hi again. I took a closer look at the archives and found the solution myself! Sorry for not doing that first thing... .bobo - Original Message - From: Bobo Wieland [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 12:36 PM Subject: [PHP-WIN] unique month-year (MySQL

[PHP-WIN] Uploading images stuff

2003-02-19 Thread Bobo Wieland
hi! anyone got some good code or something for letting users of a website upload pictures. The pictures should preferably be resized in some different sizes to fit the criterias of the website, then be presented to the user again so that he/she could pick the best one... . bobo . -- PHP

[PHP-WIN] fopen

2003-02-16 Thread Bobo Wieland
Hi... This fopen-command is working on my local machine from my local server, but the same code at my web hosts server produces this: --- Warning: fopen(http://www.someplace.xx/showvers.jsp?visaverser=2+Mack+1%3A2;, r) - No such file or directory... ---

[PHP-WIN] Warnings

2003-02-15 Thread Bobo Wieland
What does this mean: Warning: Cannot send session cookie - headers already sent by (output started at /customers/pingstkyrkan.net/pingstkyrkan.net/httpd.www/fp/index.php:1) in customers/pingstkyrkan.net/pingstkyrkan.net/httpd.www/fp/index.php on line 5 Warning: Cannot send session cache limiter

[PHP-WIN] html_entity_decode

2003-02-15 Thread Bobo Wieland
Hi! i just noticed that the server I'm using doesn't got the latest version of PHP installed... Until I get the people managing it to upgrade, does anyone have the function html_entity_decode-code so that I can include it in my pages? .bobo -- PHP Windows Mailing List (http://www.php.net/)

[PHP-WIN] quotes and backslashes

2003-02-12 Thread Bobo Wieland
Hi! When I have strings like 'Hello World' containing quotes and passes them to another page I use: rawurlenecode(html_entity_decode($string, ENT_QUOTES)). And then I use rawurldecode to display them again, getting the string: 'Hello \World\' ... Why, and hw do I fix it? My brain isn't in the

[PHP-WIN] ereg_replace

2003-02-12 Thread Bobo Wieland
I'm using ereg_replace to find urls as said in the manual. I've changed it a tiny litte bit to remove the http:// part when displaying the link, like this: $str = ereg_replace(([[:alpha:]]+://)([^[:space:]]+[[:alnum:]/]),a href='\\0' class='red' target='_blank' onfocus='this.blur()'\\2/a, $str);

[PHP-WIN] Difficult String/number fomatation plz hlp!

2003-02-04 Thread Bobo Wieland
Hi! I have a textfield wich allows any number of integers seperated with , , or -... I need this input to be formated in two steps: First into a sequence of numbers into an array, lowest first... Second to the correct form of the initial input... Example: User input: 1,3, 3-6, 8 (string)

[PHP-WIN] Re: Selected Value!

2003-02-02 Thread Bobo Wieland
Do you get a selection at all? A select-tag should, in xhtml (that i think everyone should use), look like this: select size='1' name='mySelect' option value='0' selected='selected'First object/option option value='1'Second Object/option ... option value='n'n Object/option /select

Re: [PHP-WIN] Wierd Windows Problems

2003-02-01 Thread Bobo Wieland
imo: button tag isn't standard HTML.. well... you're wrong there... here's a little from the html-manual: Buttons created with the BUTTON element function just like buttons created with the INPUT element, but they offer richer rendering possibilities: the BUTTON element may have content. For

Re: [PHP-WIN] Wierd Windows Problems

2003-01-30 Thread Bobo Wieland
in that case: since quoting attributes is only _really_ neccesary in xhtml, /Button should be /button, since all tag and attribute namnes must be in lower-case, too... And I think that; button type=submit name=actionAdd/button if ($action == Add){ do something; } shold do the trick for att

Re: [PHP-WIN] Wierd Windows Problems

2003-01-30 Thread Bobo Wieland
must be matched with /button, BUTTON with /BUTTON, and Button with /Button. I still don't know if any of this will help the original questioner, but at least we're encouraging good practice. Jill -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: Thursday

Re: [PHP-WIN] Something like trim()

2003-01-30 Thread Bobo Wieland
I'll answering it myself so that no one else has to bother; $str = ereg_replace([[:space:]]+, , trim($str)); . bobo - Original Message - From: Bobo Wieland [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 8:26 AM Subject: [PHP-WIN] Something like trim

[PHP-WIN] MySQL - question

2003-01-29 Thread Bobo Wieland
I'm most of the time using MySQL in conjuction with PHP and I hope that it's okey to post questions regarding MySQL. There isn't much traffic here anyway so I hope you can live with it... Anyway... I'm going to put two different translations of the bible in a MySQL-db. And before I do anything I

[PHP-WIN] Something like trim()

2003-01-29 Thread Bobo Wieland
Is there an easy way to get rid off white space characters in a string? Like trim() but for the whole string and leaving single white spaces as they are but removing all occurences of '\t','\n' and ' '(leaving a single ' ')... I've tried the manual but couldn't find anything... . bobo .

[PHP-WIN] constants in functions

2003-01-28 Thread Bobo Wieland
if you look at, for example, htmlentities(), it can take a constant as argument (the quote_style parameter). How would you do this in a user define function? like this (?) : function foo($bar=0) { define(ALL,0); define(FIRSTHALF,1); define(SECONDHALF,2); switch ($bar) {

Re: [PHP-WIN] Is this possible

2003-01-28 Thread Bobo Wieland
You could allways call a javascript when you submit the form. the javascript could look something like this for calling two frames: function loadFrames(form,frame1,page1,frame2,page2) { var query = ?name= + form.field1.value + email= + form.field2.value;

[PHP-WIN] The general way to go...

2003-01-27 Thread Bobo Wieland
Hi! I have a question that might not be directly php-related, not all aspects of it anyway, but it has to do with things that I belive most of you have come across and know how to do. I would like to know the general way to go in these situations: First thing, I'm developing a sort of forum.

[PHP-WIN] maximun execution time

2003-01-27 Thread Bobo Wieland
Is there some way to get around the time limit of maximum execution time whitout making any changes in the ini file? I have a function that fetches a file generated by another server, that is fetching it's data from a db. And this process will be repeated for as many times as I've telled the

[PHP-WIN] Geting information back...

2003-01-24 Thread Bobo Wieland
Hi! I'm trying to do something that might not be so very kind if it wasn't known by those I'm targeting at. ;) Anyway, I would like to retrive the content of a file I link to using a querystring like this: http://www.thebook.dk/showvers.jsp?visaverser=1%20mos+2%3A10 ... Can this be done? I don't

[PHP-WIN] strpos and wildcards

2003-01-24 Thread Bobo Wieland
Hi! I need to find the first occurence of a '' that isn't followed by a '' or a '' in a string and then use the index to extract a substring... How do I do this? Anyone? .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] printing (might be OT)

2003-01-23 Thread Bobo Wieland
Hi! I'm sorry if this is OT but I really need an answer to this question and I can't find it anywhere... I have a link on a page that basicly should work as a print-button. When you click it, it should print some of the information that is currently displayed and ad a header and footer of some

[PHP-WIN] SQL-query

2003-01-17 Thread Bobo Wieland
I hope this isn't to much OT... Sorry if it is... In my MySQL-db that I use for a php-driven site I have many tables with the Primary Key set as an auto increment value. If I have 4 records with id 1, 2, 3 and 4 and then delete number 3 and add one more record I get the id's 1,2,4 and 5. It

Re: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Bobo Wieland
Edmonds [EMAIL PROTECTED] To: Bobo Wieland [EMAIL PROTECTED] Cc: PHP Windows Helplist [EMAIL PROTECTED] Sent: Sunday, January 12, 2003 4:15 PM Subject: Re: [PHP-WIN] initialize variables (was: Using the GET Method) - Original Message - From: Bobo Wieland [EMAIL PROTECTED] To: Sean

[PHP-WIN] Installation problems =(

2003-01-13 Thread Bobo Wieland
Hi all... Thought that I should upgrade from PHP4.0 to 4.3 and so I did... But I ran into trouble, as always. when ever I try to load an PHP page I get an alert message saying: Unknown(): Unable to load dynamic library 'G:\PHP\extensions\php_zlib.dll' I really do hate php.ini... Why should

[PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
Hi... Feels like I'm spaming this list with this many questions all at once. But here is one more: I'm having problems with displaying session variables now since I turned register_globals off... before I had this code for a session variable: session_register(test); $test = Hello world; and to

Re: [PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 10:56 To: [EMAIL PROTECTED] Subject: [PHP-WIN] $_SESSION Hi... Feels like I'm spaming this list with this many questions all at once. But here is one more: I'm having problems with displaying session variables now

Re: [PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
); echo(a href='svar.php'test/a); ? page 2: ?php session_start(); echo($_SESSION[xhtmlStart]); ? - Original Message - From: Rich Gray [EMAIL PROTECTED] To: Bobo Wieland [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, January 13, 2003 2:21 PM Subject: RE: [PHP-WIN] $_SESSION Can

Re: [PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
variable: $test = $_SESSION['test']; and now everything works... thanks! =) .bobo :: www.elstudion.com/bobo/ - Original Message - From: Rich Gray [EMAIL PROTECTED] To: Bobo Wieland [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 3:04 PM Subject: RE: [PHP-WIN

Re: [PHP-WIN] Using the GET Method

2003-01-12 Thread Bobo Wieland
shouldn't it just be: echo($author); and not: echo $author; :: Bobo Wieland :: www.elstudion.com/bobo/ - Original Message - From: Wade [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 12, 2003 6:42 AM Subject: [PHP-WIN] Using the GET Method 01112003 2132 CST Im

[PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-12 Thread Bobo Wieland
Please, explain this to me, because I couldn't figure it out by myself... If register_globals is set to 'off', and because it's good practice, you should allways initzialize your variables? So I should write: $test = $_POST['test']; and then I can use $test as usuall... But what about local

[PHP-WIN] TEXT

2003-01-10 Thread Bobo Wieland
Hi everybody! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] TEXT

2003-01-10 Thread Bobo Wieland
Hi everybody! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] TEXT

2003-01-10 Thread Bobo Wieland
Hi everybody! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] TEXT

2003-01-10 Thread Bobo Wieland
Hi everybody! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] TEXT

2003-01-10 Thread Bobo Wieland
4.0.4, MySQL 4.0.3-beta and I echo out my pages to work with the XHTML standard... - Bobo Wieland, Sweden. [EMAIL PROTECTED] www.elstudion.com www.elstudion.com/bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] TEXT (again)

2003-01-10 Thread Bobo Wieland
? If it helps I'm using Win XP, Apache 2.0.40, PHP 4.0.4, MySQL 4.0.3-beta and I echo out my pages to work with the XHTML standard... - Bobo Wieland, Sweden. [EMAIL PROTECTED] www.elstudion.com www.elstudion.com/bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http