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 ("\n");
 // RESET_FO

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

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

[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 doesnät work as it should anyway. I was able to re

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

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: .bobo - Original Message - From: "Gryffyn, Trevor" <[EMAIL PROTECTED]> To: "[PHP-WIN]" <[EMAIL PROTECTED]> Cc: "Leo G. Divinagracia III" <[EMAIL PROTECTED]> Sent: Tuesday, July 06, 2004 3:54 PM Subject: RE: [PHP-WIN] check boxes... set th

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 pass

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

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 Honni

[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

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

[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] load data infile

2004-03-14 Thread Bobo Wieland
This 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)."".str_replace("\\","/",$sqlfil["tmp_name"])); ...gives the output: -1 C:/WINDOWS/TEMP/php1D0.tmp Any ide

Re: [PHP-WIN] sql dumps

2004-03-14 Thread Bobo Wieland
[PHP-WIN] sql dumps > What does "sql file" mean? (no such thing exists) > > -Original 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 co

[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

[PHP-WIN] Windows 95

2004-03-14 Thread Bobo Wieland
Hi! Is it possible to install apache/php/mysql under Windows 95? .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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)" <[EM

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 PR

[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] 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)" <[EMAI

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

Re: [PHP-WIN] imagecopyresampled question

2003-12-27 Thread Bobo Wieland
gA); imagedestroy($tmpImgB); return $fileName; } - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: "'Bobo Wieland '" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, December 27, 2003 11:43 AM Subject: RE:

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

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

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: theName.name = "Robert"; now use the sendAndLoad with the POST-method and specify a php-file with the f

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

2003-12-03 Thread Bobo Wieland
y, December 02, 2003 10:20 PM Subject: [PHP-WIN] Re: ereg-replace removing whitespace... > I don't use ereg myself, but with preg_replace you could do: > > $str = preg_replace('/\[\/URUB\]\s*/', '', $str); > > Bobo Wieland wrote: > > Hi... > > > >

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

2003-12-02 Thread Bobo Wieland
Hi... I'm trying to use ereg_replace to replace "[/URUB]" with "" 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 "" So far I u

[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 program,

[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 "first_param_

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 0

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 P

[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: Pointing IE to http://local

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(""); for($i = 0; $i < $td1; $i++) { print(); } print(""); print(""); for($i = $td1; $i < $td2; $i++) { print(); } print(""); .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] to get the value to php i then have this code: if (isset($_GET["w"])) {

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

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

[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] 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 full

Re: [PHP-WIN] Bitwize operations

2003-06-08 Thread Bobo Wieland
INTO user VALUES( 'localhost', 'phpuser' Password('shhdonttellanyone'), 00); .bobo thanks for your help... - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: "'Bobo Wieland '" <

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

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
ould do any changes to php.ini, 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

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

2003-05-30 Thread Bobo Wieland
! .b > >>-----Original 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 re

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]>; &l

[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

[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

[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 'q&a' 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 s

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 ne

[PHP-WIN] Tables (might be OT)

2003-03-29 Thread Bobo Wieland
When using dynamic content, like PHP interacting with MySQL it is easier to use tables then anything else. But tables will get you into trouble! If someone enters a really long word the tablecell will expand so that the hwole word will be shown. Is there some way I can prevent this? With html, php

[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] crop images

2003-03-23 Thread Bobo Wieland
Hi If I have an image that is 300x150px and I need to crop it so that it gets 150x150px by croping 75px fom each side of the image, how do I do this? .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? Javascript

[PHP-WIN] Re: stripslashes problem

2003-03-10 Thread Bobo Wieland
Can't you just use Where the name should be visible, and never really modify the variable, just the output...? . bobo . "rotsky" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I have a user registration form. If someone enters a name like O'Brien, then > it turns up on the nex

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

2003-03-10 Thread Bobo Wieland
You can do it with javascript... but this question would be better suited somewhere else than @ PHP-WIN, don't you think? =) . bobo . - Original Message - From: "Stephen K Knight" <[EMAIL PROTECTED]> To: <[E

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-

[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";

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

[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] 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/) To

[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] 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:]/])","\\2", $str); I'm trying to get the grips of regular expressions but I c

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

[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" (strin

[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: First object Second Object ... n Object I usually use mysql_fetch_object like this: \n"); while ($fp_kat = mysql_fetch_object($result)) { if ($fp_kat->kat_id ==

Re: [PHP-WIN] Wierd Windows Problems

2003-02-01 Thread Bobo Wieland
> imo: 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 exampl

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

Re: [PHP-WIN] Wierd Windows Problems

2003-01-30 Thread Bobo Wieland
ase though. Thus must be > matched with , with , and with > . > > 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 [mai

Re: [PHP-WIN] Wierd Windows Problems

2003-01-30 Thread Bobo Wieland
in that case: since quoting attributes is only _really_ neccesary in xhtml, should be , since all tag and attribute namnes must be in lower-case, too... And I think that; Add if ($action == "Add"){ do something; } shold do the trick for att browsers and platforms... . bobo . www.elstudion

[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 . www

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

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; eval(\"parent.\"+frame1+\".l

[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) {

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

[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. When

[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] 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] 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 so

[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 isn't

Re: [PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
he session 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 PRO

Re: [PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
okej.. here it comes as short as I could get it... try the 'test' link to go to page2... page one: test"); ?> page 2: - Original Message - From: "Rich Gray" <[EMAIL PROTECTED]> To: "Bobo Wieland" <[EMAIL PROTECTED]>; <[EMAIL PROTE

Re: [PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
er(). > > Try creating a couple of test pages as follows... > > page1.php > session_start(); > $_SESSION['test'] = 'Blah'; > ?> > > page2.php > session_start(); > echo $_SESSION['test']; > ?> > > HTH > Rich > -Origina

[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

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

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

2003-01-13 Thread Bobo Wieland
n.com/bobo/ www.elstudion.com - Original Message - From: "Stephen 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-

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

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 M

[PHP-WIN] TEXT (again)

2003-01-10 Thread Bobo Wieland
ween VARCHAR/TINYTEXT and TEXT, right? 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

[PHP-WIN] TEXT

2003-01-10 Thread Bobo Wieland
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://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

  1   2   >