[PHP] Re: Selectoption....../select

2003-07-23 Thread sven
sorry, i didn't understand your problem. can you give an example what you can get from your database (your keys, years, months, ...) and how it should be transformed? ciao SVEN Etienne Mathot wrote: I am quite new to web programming and PHP/mySQL, I try to find my way between all these tools

[PHP] Re: Mail functions in php

2003-07-23 Thread sven
hi, 1. for mime-types try rfc2046. there are two top-level media types for you: 'audio' and 'video'. the subtypes depend on your media files. 2. to send files simply as attachment you can use 'application/octet-stream'. or use a readymade php-mime-mail-class. ciao SVEN Uma Shankari T. wrote

[PHP] Re: homemade authentication function

2003-07-23 Thread sven
'][$value]) || !$this-user['groups'][$value]) { return false; } } return true; ciao SVEN SævË Ölêöyp wrote: I'm making an authentication script with groups and roles. This function checks if the groups the user belongs to specified groups and compares them to the groups required

[PHP] Re: people who has done a POS system before

2003-07-24 Thread sven
hi, for mobiles: there is a wap-browser for windows-plattform: http://www.winwap.org ciao SVEN Tan Ai Leen wrote: Hi, I was just wondering there is a emulator for us developers to develop programs for palm and handphone, etc. Is there a program that emulates the output from various printers

[PHP] Re: Please help!!! thx a lot~~~

2003-07-24 Thread sven
hi joe, you want a server-script, that lists a dir on a client? i think that's impossible. think of if you visit a website written in php and in background your hdd is scanned? that's simply a security reason. ciao SVEN Joe wrote: any alternative method is also welcome Joe [EMAIL PROTECTED

Re: [PHP] removing parts of a string...

2003-07-24 Thread sven
hi, Juan Nin wrote: From: [EMAIL PROTECTED] I wanna be able to take a URL http://www.mysite.com/downloads/file_1_a.pdf and then remove: http;//www.mysite.com/ [...] look at preg_match() ... or preg_replace(); regards, ciao SVEN -- PHP General Mailing List (http://www.php.net

[PHP] Re: sorting multi-array

2003-07-24 Thread sven
hi, try usort(); ciao SVEN JiøîÆèî eË wrote: hello, i have got a problem, tehere is an array: $x = array( array(15,55,array(1,2,3),3,5,array(1,2,5)), array(25,55,array(1,2,3),3,5,array(1,2,5)), array(5,55,array(1,2,3),3,5,array(1,2,5)) ); and I need to sort this arraybz

Re: [PHP] Include Problems

2003-07-25 Thread sven
hi eric, as far as i can see, there is no definition for your '$subnav' in your 'incHeader.php'. if you call your main script like this: 'http://example.com/index.php?subnav=home;', this should work with your inclusion. ciao SVEN Eric Fleming wrote: Here is a snippet from the header file

Re: [PHP] ereg problem?

2003-07-25 Thread sven
by the way, it's to complicated. the brackets [ and ] are used for cha-groups. you can leave them for only one char. so this would be the same: \\n (you have to escape the backslash with a backslash) Curt Zirzow wrote: * Thus wrote John W. Holmes ([EMAIL PROTECTED]): [EMAIL PROTECTED] wrote:

[PHP] Re: Classes

2003-07-25 Thread sven
do you get an error-message? which? maybe you use var $id = array(); instead of var $id[]; ciao SVEN Patrik Fomin wrote: I need to create a class that looks like this: class Artikel { var $id[]; var $rubrik[]; var $ingress[]; var $kategori[]; var $frontbildtyp[]; var $frontbild

[PHP] Re: File upload

2003-07-25 Thread sven
Peda wrote: I want to upload some file to my web site. The upload_single.php script is just this: ?php $ime = $_FILES[thefile][name]; print ($ime); I just want for begining to print the name of file. But It doesn't work. did you look what comes from your form? try:

Re: [PHP] Get the current file name

2003-07-25 Thread sven
how about this: $_SERVER[PHP_SELF]; ciao SVEN Shaun wrote: thanks for your reply, but that doesn't seem to work either, how about removing everything after and including the ?, how would i do that? Manoj Nahar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] u can try $filename

Re: [PHP] function: global, static and...?

2003-07-25 Thread sven
global and static are defined in the manual. hi, look here: http://www.php.net/manual/en/language.variables.scope.php ciao SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamically generate a drop down list

2003-07-28 Thread sven
... or even shorter (since php 4.1.0): function init_auth_list() { print select name=author option value=\\select the name of the author/option\; $query=select name from author order by name; $result=pg_exec($GLOBALS[db],$query); while ($row = pg_fetch_row($result)) {

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread sven
($result)) { echo trtd $resultat[ip] /td; here is '/tr' missing: /td/tr; echo /table; } the echo '/table'; should come after the closed while: } echo '/table'; $mysql_link=mysql_close($mysql_link); Un saludo, Danny ciao SVEN -- PHP General Mailing List (http

[PHP] Re: xls2pdf

2003-07-29 Thread sven
SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: wheres the problem?

2003-07-29 Thread sven
$result; echo implode(' ', $id); exit; } hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to you compare dates in a query in Mysql

2003-07-31 Thread sven
take a look into mysql-manual 6.3.1.2 Comparison Operators ciao SVEN Bogdan Stancescu wrote: Depends on what exactly you're after, but for strict comparison arithmetic operators work as expected (, , =). Bogdan Safal Solutions wrote: Dear friends, Plesae help in finding the correct

[PHP] Re: Mysql query and PHP loops

2003-07-31 Thread sven
did you also play with group by? what does this return? select * from `yourTable` group by `val1` ciao SVEN Petre Agenbag wrote: Hi List I've been trying to do something with one MySQL query, but I don't think it is possible, so, I would need to probably do multiple queries, and possibly

[PHP] Re: HTML form handling

2003-08-26 Thread sven
\ tr td width=\50%\Applicant 1 Forename:/td td$App_1_Forename/td ...; ? look at the quotes. which style you want to use depends on you (i prefer the 1st) ciao SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Compare dates

2003-06-05 Thread sven
you can work with a timestamp. mktime() changes your date into a number you can sort, compare, ... ciao SVEN Shaun [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi, I have two dates retrieved from a database stored as variables: $mindate and $maxdate, how can i compare

[PHP] Re: SQL Select on a DATE field

2003-06-05 Thread sven
. ciao SVEN Lorenzo Ciani [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi all! I would like to ask your advice on a script that I wrote. As you can surely see from my script below, I really need help as I am totally new to PHP. Regular expressions are my worst nightmare

Re: [PHP] flawless script

2003-05-28 Thread sven
you can use the default: statement as last case in switch, too. Jason K Larson [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Greetings- I prefer to check the $_SERVER['REQUEST_METHOD'] before I do anything in a script that operates for both GET and POST methods. Also,

[PHP] Re: POST Values

2003-06-02 Thread sven
take a look at the $_POST array (or $_REQUEST). they contain all submitted values. if there are still empty fields, try foreach() and !empty(). Shaun [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi, I have a page with 78 textfields on, is there a way of picking out the

[PHP] Re: $_POST array

2003-06-02 Thread sven
this works too: $message = $_POST['first_name']. .$_POST['last_name'].\n. $_POST['address'].\n. $_POST['city']. .$_POST['state']. $_POST['zip'].\n. $_POST['country'].\n. $_POST['email'].\n. $_POST['design'].\n. $_POST['comments']; Zbranigan [EMAIL PROTECTED] schrieb im Newsbeitrag

[PHP] Re: problem with apache 2.0

2003-06-03 Thread sven
php.ini: register_globals = off? look at $_POST['id']. ciao Franck Collineau [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Greeting, I have just change my server to apache 2.0.44 and php 4.3.1 (from mandrake 9.1) and i have a problem now When i pass a numeric parameter to

[PHP] Re: LoadModule Help

2003-06-03 Thread sven
/sapi/php4apache2.dll AddType application/x-httpd-php .php (note the apache2 module) ciao SVEN Tmcclelland [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi all, As you will guess from this question I'm new to all this. Firstly I hope this is the right list. I have

[PHP] Re: Problem on Date Function

2003-06-03 Thread sven
have a look at date() and mktime(): from the manual: $tomorrow = mktime(0, 0, 0, date(m), date (d)+1, date(Y)); ciao SVEN Jack [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Dear all Here is the situation : Our automation system will generate a large number of pdf file

Re: [PHP] Link to a Site

2003-06-04 Thread sven
don't echo anything before the header. else there is automatically a header generated by your server. Mishari [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi, I used it before, but I had a problem my code look like, if (--) { echo ---; header(--); } I

[PHP] Re: unix time stamp to readable date

2003-06-05 Thread sven
use date(). first argument is the structure of your readable date, second ist the unix timestamp. ciao SVEN Diana Castillo [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I know this is a stupid question but I am confused, how do I convert a unix timestamp to a readable date

[PHP] Re: preg_match

2003-06-20 Thread sven
preg_matchtry without backslashes. $pattern = /$search/i; if (preg_match ($pattern, $date[$i])) { echo $date[$i]br /; } you don't need the .*? in your regex (either * or ? multiplier) as preg_match searches for any occurance (not from begin ^ or to end $). ciao SVEN Aaron Axelsen [EMAIL

[PHP] Re: Problem with GET variables

2003-06-24 Thread sven
/function.extract.php). so you also don't rely on register_globals by hosting externally. ciao SVEN Sid [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hello, I just updated PHP on my local computer from PHP 4.0.2 to 4.3.2 (Yes, I know, its a very very long time). I also downloded

[PHP] Re: rtf files

2003-06-25 Thread sven
that opens the file. in that case, maybe a splitt by chapter or by a special amount of lines would be a start? ciao SVEN Steven wrote: I need some advice on how to go about importing rtf files page by page seperatly into a mysql database, or some way that can read a file and break each page

[PHP] Re: remove characters, add newline making a twodimensional array

2003-06-25 Thread sven
E[EMAIL PROTECTED] Whttp://www.let.rug.nl/~s1000454 +++ ciao SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help please!

2003-06-25 Thread sven
hmm, well this post is here twice. so it works better than you thought? ;-) Nadim Attari wrote: Hi php-general, I have subscribed to news://news.php.net/php.general. But when I post something (i'm using Outlook Express), it seems that the post is sent; but in fact it isn't and so I don't

[PHP] Re: ereg_replace and quotation marks

2003-06-25 Thread sven
maybe stripslashes() can solve your problem? Paul Nowosielski wrote: I'm trying to strip quotation marks out of user from input but it doesn't seem to work correctly. $string=ereg_replace(\,,$string); I get a \ mark after I run a quote through the form. When I want the quote turned to

[PHP] Re: twodimensional array / word-frequencylist

2003-06-26 Thread sven
the array: echo table; foreach($occurences as $word = $count) { echo trtd$word/tdtd$count/td/tr } echo /table; hope this helps. (didn't test the code, just wote it from brain. but the manual would be your friend) ciao SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Regex Help with - ?

2003-06-27 Thread sven
times) ciao SVEN Gerard Samuel [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I have a string something like - [TIT2] ABC [TPE1] GHI [TALB] XYZ Im applying a regex as such - // Title/Songname/Content preg_match('/\[TIT2\](.*?)(\[)?/', $foo, $match); $title = trim( $match[1

[PHP] Re: unexpected return from $_POST['foo']

2003-06-27 Thread sven
strange. look into the sourcecode of your output-page, whether there is more information (html-tags, i.e.). and try var_export($_POST); instead of you echo to see what information come with post. maybe it's your server/php config. your code works for me. ciao SVEN Kyle W. Cartmell [EMAIL

[PHP] Re: How can I get all vars

2003-07-02 Thread sven
get_defined_vars (); ? Slava wrote: Hi, Can somebody say how can I get all vars and their values from a script. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string modification

2003-07-03 Thread sven
thanks, this works. ciao SVEN Leif K-Brooks wrote: hi, i didn't find a function for this in the manual, but maybe there is one (or a workaround): does anyone have a solution for replacing multiple whitespaces with a single whitespace whitin a string? similar to trim(). maybe a regular

[PHP] Re: Connect Active Directory using LDAP... please help :)

2003-07-03 Thread sven
SVEN echo pConnected and ready to bind...; if (!($res = @ldap_bind($ldap, $dn2, $password))) { print(ldap_error($ldap) . BR); die (Could not bind the $dn2); echo pCouldn't bind ; } else { echo pBinded and Ready to search; echo brLDAP = $ldap; echo broudc = $oudc

[PHP] Re: mail() - how to attach file to the message???

2003-07-09 Thread sven
/mime.mail.html) ciao SVEN Szparag [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] i know that in mail-form i need input type=file name=attach but i don't know how to write message headers to send file with e-mail. please help me. szparag

[PHP] Re: SQL select

2003-07-10 Thread sven
hi, JiøîÆèî eË wrote: hello, i have got a problem with SQL select: I have got a table such this: id_k typ name id 1 f bla1 1 2 f bla2 1 2 i bla3 1 3 z bla4 1 3 f bla5 1 4 i bla6 1 4 z bla7 1 5 z bla8 1 and id = 1 and I need

[PHP] Re: too stupid to install php on windows

2003-07-10 Thread sven
hi, Johannes Reichardt wrote: Hi there! I had a perfectly working installation of apache 1.23 and php4.12 - unfortunatly i got heavy problems with the mail() function that didnt seem to like my subjects and froms. anyway - i just de-installed apache and php and reinstalled the most recent

[PHP] Re: Get previous folder

2003-07-10 Thread sven
... and what about dirname()? Matt Palermo wrote: Anyone know how I can stip off the end of a folder location, so that it will be a folder in the next level up? I want to turn something like this: /path/to/folder/MyFolder/ into somthing like this: /path/to/folder/ I just need to strip

[PHP] Re: Regex nightmare:(

2003-07-10 Thread sven
;', $body); var_export($body); ciao SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] isset function problem

2003-07-10 Thread sven
... or: if(!empty($SenderEmailAddress)) { ... } Dean E. Weimer wrote: What about the rest of the code? How is this variable defined? I have had this happen in some code before, I found that the variable was set to . Try using: if (isset($SenderEmailAddress) $SenderEmailAddress != ) {

[PHP] Re: Storing HTML string in database

2003-07-11 Thread sven
is escaping a solution? addslashes() for your insert-query stripslashes() for your select-query Aaron Axelsen [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a php script set up for a user to upload a word document, which

[PHP] Re: Using a drop down box with an udetermined field amount

2003-07-15 Thread sven
you '/select' ciao SVEN Ron Allen wrote: What I want to do: Have a person input information about individuals into a database. One of the fields in the database will be Unit. On a form one of my drop down menu's will be Unit. I would like to have the PHP page poll the Unit field

[PHP] Re: pdf information..

2003-07-16 Thread sven
suggest you use one of the ready-made pdf-php-classes. ciao SVEN Louie Miranda [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hello, I have been given a task to generate a business card program over the web. The option that i can think of it to make it easier is generate a pdf

[PHP] Re: multi file multi colomn

2003-07-16 Thread sven
can you more clearly explain your problem? - do your files contain of many lines and you want this: f1l1;f2l1;f3l1; ... f1l2;f2l2;f3l2; ... (f=file, l=line) - or do you simply want the complete content of the files separated by semicolon? ciao SVEN Fb [EMAIL PROTECTED] schrieb im Newsbeitrag

Re: [PHP] Mail From option in PHP.ini

2003-07-18 Thread sven
... and how about this? $headers .= Return-Path: $email_address_from_your_database\r\n; tell me, if it works. ciao SVEN Brian S. Drexler wrote: I tried the extra header. The problem is with the return receipts. The mail is being generated by a server other than my main e-mail server, so

[PHP] Re: regex help?

2003-07-21 Thread sven
hi john, try a regex like this: '/td[^]*(.*)/td/i' ciao SVEN John Herren wrote: Can't seem to get this to work... trying to yank stuff xxx from TD class=a8b noWrap align=middle width=17 bgColor=#ccxxx/TD and stuff yyy from TD class=a8b noWrap width=100nbsp;yyy/TD preg_match(|nbsp

[PHP] Re: Newbie lost in array

2003-07-22 Thread sven
hi tony, how is your table structured? is is a csv-file, a database, a html-table, ...? ciao SVEN Tony Crockford wrote: I've got brain fade today and am in need of a clue, please accept apologies if this is obvious. I have a data table: P_ref P_code P_Value I want to read the data out

Re: [PHP] Re: Newbie lost in array

2003-07-22 Thread sven
then try: $query = 'select * from `yourTable` where `P_ref`=somevalue'; $result = mysql_query($query); while($row = mysql_fetch_assoc($result)) { $rows[] = $row; } var_export($rows); hth SVEN Tony Crockford wrote: hi tony, how is your table structured? is is a csv-file, a database

Re: [PHP] New line problem - but for Excel

2003-12-04 Thread Sven
give it a try? ciao SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP eregi filtering problem

2003-12-08 Thread Sven
at preg_* functions instead of ereg_*. they are said to be much faster. hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem With Apache / PHP Installation

2003-12-08 Thread Sven
: ?php phpinfo(); ? i call this file for testing: 'http://localhost/phpinfo.php'. this file will also be vey useful when developing new scripts. hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: spambothoney: script to pollute spammer's databases

2003-12-09 Thread Sven
for publishing and let the users decide which is more useful. hi, not only the bounces are the problem, think of the traffic and the 'innocent' isp's. ;-) i think that's not the best method for fighting against spam. ciao SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Display Query Result As Editable Form

2003-12-10 Thread Sven
Sophie Mattoug schrieb: input type=text name=name value=?=$value? [EMAIL PROTECTED] wrote: Hi all, I am creating a user form whereby I will do an INSERT , SELECT , UPDATE and of course DELETE for the form. Right now I am trying to create a form whereby when user choose to update their info,

Re: [PHP] Constraint Violation when INSERT

2003-12-10 Thread Sven
[EMAIL PROTECTED] schrieb: Hi all, I got the error Constraint Violation when I did an INSERT . Gone thru the code umpteen times but to no avail..Wondering where my error was??...Below is a snip of the block of code: ? $dsn =

[PHP] Re: Fatal Error: PDFlib error ...

2003-12-15 Thread Sven
at this. now to your code. ?php dl(libpdf_php.so); $pdf = pdf_new(); you just created a php-object $pdf. for your further methods you must explicit declare them to your objects: pdf_begin_page($pdf, 421, 595); $pdf-pdf_begin_page($pdf, 421, 595); ... and so on. hth SVEN -- PHP General Mailing List

[PHP] Re: help with install

2003-12-15 Thread Sven
on 'register_globals = On', which is (now) set to 'off' by default (location: php.ini). either you set it 'on' (not recommended, search the newsgroup for that and the security issues), or rewrite your scripts for off-support, e.g. $_SESSION['sess_var']. hth SVEN -- PHP General Mailing List (http

Re: [PHP] trouble parsing an XML document

2003-12-15 Thread Sven
of letters, numbers, or underscores. so, a minus isn't allowed in varnames! hth SVEN function Documenti($aa) { foreach ($aa as $k=$v) $this-$k = $aa[$k]; } i have an error: Parse error: parse error, unexpected '$', expecting T_VARIABLE... I tryed changing the $ position: var

[PHP] Re: Problem with adding quotations to a mysql insert statement

2003-12-15 Thread Sven
$listname -h $listdomain $listdomain-$listname-$outgoing,nobody\\\); hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Q on RegExp extended Char

2003-12-15 Thread Sven
give me a FALSE. Thanks Walter hi walter, because most of these chars are extended ascii (decimal: 128-255), this regex should work: '/\x80-\xFF/' (hex-values). also take care of the minus in your regex if it doesn't stand on start or end of your char-group it means 'from-to'! hth SVEN -- PHP

[PHP] Re: var check not working...

2003-12-15 Thread Sven
']) !isset($_POST['vlans']) ) ) ? hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Q on RegExp extended Char

2003-12-16 Thread Sven
= '\x80-\xFF'; // extended ascii-codes $_achar = $_alpha.$_xascii; // allowed characters $regex = '/^['.$_achar.']+(\'|-)['.$_achar.']+$/'; ? hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: logic for displaying hierarchical data (ala windows explorer)

2003-12-16 Thread Sven
} // following draw the label of $self ? hope you understand, what i mean? hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] trouble parsing an XML document

2003-12-16 Thread Sven
Alfredo schrieb: hi, Sven wrote: take a look at http://www.php.net/manual/language.variables.php: A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. so, a minus isn't allowed in varnames! hth SVEN I agree with you

[PHP] Re: Regex to grab a Windows Path from a String...

2003-12-17 Thread Sven
generally, whether it's a valid url according to rfc1738 (a local win-path isn't). maybe there are existing functions? hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: sql query and some math

2003-12-17 Thread Sven
remaining results (0, 1 or 2) depending on division by 3. another possibility could be the use of 'limit' in your sql-select-statement. hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Counting back 90 days...

2004-01-05 Thread Sven
days of the month. give it a try. hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with using php at the command line with mysql

2004-01-05 Thread Sven
SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: i need help help with include

2004-01-07 Thread Sven
hi, is this useful? ?php echo $_SERVER['DOCUMENT_ROOT']; ? hth SVEN Php schrieb: Hi I created a directory and files 3 directory's down root/dir1/dir2/dir3/files now i need to include my function file out of the root root/dir/funtionfile How do i do this? I cannot create a htacess file

Re: [PHP] STMP Configuration

2004-01-29 Thread Sven
for mail sent from localhost. ... and if you not want to send from localhost, you can change your smtp-params in your php.ini. hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mp3 with php?

2004-02-13 Thread Sven
, stereo), and so on. maybe that's what you want? hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: regexp appears to be faulty (DONT actually think so)

2004-02-24 Thread Sven
prob: is that you don't catch multiple fieldsets after another. i think there is a switch, that catches only the least result. hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: regexp appears to be faulty (DONT actually think so)

2004-02-24 Thread Sven
Henry Grech-Cini schrieb: Thanks Sven, You are quite right with your some probs comment. hi, think i found it. try this: ?php $rx = '/fieldset.*(.*)\/fieldset/iU'; ? the '/U' stands for 'ungreedy'. also note the change in the attribs-regex. hth SVEN -- PHP General Mailing List (http

[PHP] Re: regexp appears to be faulty!?

2004-02-24 Thread Sven
optional white spaces you can also give '\s*' a try (any whitespace char). maybe it also works with '\r\n'? just some thoughts. hth SVEN ps: it surely is possible to ignore everything between 'script/script', isn't it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: deleting array elements

2004-03-09 Thread Sven
. so array1 = (1,2,3,4,5) array2 = (1,3,5) then print array1 and the output be 2,4 Thank you hi, try array_diff() or array_intersect() or any other corresponding function. hth sven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Privilege system of Mysql...

2001-03-19 Thread Sven Huster
th a trial version of CommuniGate(tm) Pro* Hi Sven, Yes, I just started playing with the GRANT syntax.. Only problem is that they first define a user with everything on 'N' And then they define a table in the DB with everything on Y... Problem is that you have to do this for all DB's which you wan

[PHP] HT access

2002-02-20 Thread Sven Jacobs
Yow I've a question, :-) I'm using ht access to protect a Directory with CGI in that I need use on my website. The htaccess uses the password file of my Linux to authenticate one. Now I want to keep the ht access but when I login via another login script a want my ht access to be filled in

[PHP] Date calculations

2002-02-21 Thread Sven Jacobs
Hey I need to calculate the amount of days between 2 point point 1 is now the second point is in the past the format I have is in 2002-02-25 10:02:23 ( that is the format i have in my db ) now if I have today 2002-02-25 10:02:04 and the other day is 2002-02-24 09:02:04 That means that the

[PHP] writing files with php

2002-02-25 Thread Sven Jacobs
Hey How can I create files with php, I've tried somethings but php always tells me that I don't have access. But the Directory has 777 access and the owner is my webserver. Can somebody help me :-) I need this for to create logfiles Greetings Sven

[PHP] Count

2002-02-25 Thread Sven Jacobs
hey Again a small question forgive me but it's monday and the brain is still working on sunday :-) I want to make this sql query visual does anybody have any idea :-) SELECT date_format(t_timestamp_opened,'%Y %m %d'), count(date_format(t_timestamp_opened,'%Y %m %d')) FROM crm.ticket group by

[PHP] CGI

2002-02-26 Thread Sven Jacobs
/index.php?action=cgiscripts=xxx.cgi Maybe a stupid question but Kind regards Sven

[PHP] Mailing Files

2002-02-26 Thread Sven Jacobs
Is it possible to mail files with the mail() commando? Or can it be done on a other way? Kind regards Sven

RE: [PHP] Crontab

2002-02-26 Thread Sven Jacobs
I've use a script that I put in my cron.weekly to execute a php script and it works fine :-) #! /bin/sh #Run Report Generation Script /usr/bin/php4 /usr/share/netsaint/genmonrep.scp.php Kind Regards Sven -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: mercredi

RE: [PHP] I can't find the problem - parsing error

2002-02-27 Thread Sven Jacobs
td bgcolor=\$type_color\ class=\copy\ width=\10\ -Original Message- From: Pax [mailto:[EMAIL PROTECTED]] Sent: mercredi 27 février 2002 16:47 To: [EMAIL PROTECTED] Subject: [PHP] I can't find the problem - parsing error I have the following line of code: $this-html=$this_html + tr

RE: [PHP] Javascript question...

2002-03-01 Thread Sven Jacobs
script function openpopup(){ var popurl=url winpops=window.open(popurl,Solution,width=500,height=400,) } //openpopup() /script input type=submit value=Escalations onClick=openpopup() Kind Regards Sven -Original Message- From

[PHP] Active Directory

2002-03-01 Thread Sven Jacobs
Hey All Does anybody have any idea how to authenticate agains a Active Directory Server with PHP ? And if sow : -- How does it work -- What do I need to install -- Some sample code would be nice :-) Kind Regards Sven

[PHP] Of Topic but urgently needed

2002-03-04 Thread Sven Jacobs
did something like what I want to do and can give me a push in the direction needed :-) Thanks anyway Greetings Sven

[PHP] date calculations

2002-03-04 Thread Sven Jacobs
Yow I need to calculate the Time ( days hour minutes between 2 times ) I have something but I have an error margine of 10 % and that is to high Time one 2002/02/24 10:23:43 Time two 2002/02/02 12:43:12 this need to give me the correct time in days hours and minutes between the 2 dates

RE: [PHP] how the ticks works?

2002-03-06 Thread Sven Jacobs
[X.X.X.X] The 3 values I want tot put in a table when I run the script Thanks Sven

[PHP] Return values from shell_exec command into db

2002-03-06 Thread Sven Jacobs
[X.X.X.X] The 3 values I want tot put in a table when I run the script Thanks Sven

[PHP] Reading A file

2002-03-06 Thread Sven Jacobs
Hey I have a TEXT file that I want to make visual via the web using php

RE: [PHP] Reading A file

2002-03-06 Thread Sven Jacobs
-pre01:index index was never started -Original Message- From: Ing. Fernando Proll Segura [mailto:[EMAIL PROTECTED]] Sent: mercredi 6 mars 2002 15:13 To: Sven Jacobs; [EMAIL PROTECTED] Subject: Re: [PHP] Reading A file Hey I have a TEXT file that I want to make visual via the web using

RE: [PHP] Reading A file and placing data into db

2002-03-06 Thread Sven Jacobs
-pre01:index index was never started -Original Message- From: Ing. Fernando Proll Segura [mailto:[EMAIL PROTECTED]] Sent: mercredi 6 mars 2002 15:13 To: Sven Jacobs; [EMAIL PROTECTED] Subject: Re: [PHP] Reading A file Hey I have a TEXT file that I want to make visual via the web using

  1   2   >