[PHP] test

2012-06-07 Thread Sven Kowalski
does it work now? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] persistent object caching

2010-11-19 Thread Sven Richter
ot of times before, so maybe somebody can point me into a direction where to look for, or to some example code which handles problems like this one? Thanks in advance Sven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question

2005-10-07 Thread Sven Simons
Or is it really so unsafe to use the windows installer on a online server? Sincerely, Sven

[PHP] Re: Custom Open Tags

2004-12-02 Thread Sven Schwyn
y("'; ", "; print '"), $content)."';"; eval($content); } The only downside: No single quote (') is possible outside tags in the file included. This can of course be fixed, but only with a ridiculous amount of code. If only there was a w

Re: [PHP] Custom Open Tags

2004-12-01 Thread Sven Schwyn
the tags can't be switched off (or can it?) when using <% ... %> tags. Thanks for your thoughts though! -sven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Custom Open Tags

2004-12-01 Thread Sven Schwyn
c-tags are executed (and thus complete the page design) while the php-tags are left untouched (as they contain the dynamic stuff). Sounds more complicated than it is :-) Thanks for your hints,-sven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Performance issues and trees

2004-07-20 Thread Sven Riedel
and now it's a hundred-fold faster, thanks! Regs, Sven -- -Trigital- Sven Riedel . Tel: +49 511 1236364 . Fax: +49 511 1690746 . email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Performance issues and trees

2004-07-20 Thread Sven Riedel
$result = $lut[$examined]; $bitstring = substr( $bitstring, $i ); break; } } but this actually fares worse in terms of runtime. I'm using php 5.0. Regs, Sven -- -Trigital- Sven Riedel . Tel: +49 511 1236364 . Fax: +4

[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: regexp appears to be faulty!?

2004-02-24 Thread Sven
/' checks 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 '', isn't it? -- PHP General Mailing List (http

[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: (.*)<\/fieldset>/iU'; ?> the '/U' stands for 'ungreedy'. also note the change in the attribs-regex. hth SVEN -- PHP G

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

2004-02-24 Thread Sven
on could be: ]*>(.*)<\/fieldset>/i'; ?> if you want to take care of your fieldset-attribs in your result, you can set your brackets again: ([^>]*) some probs i can think of are nested fieldsets inside fieldsets (don't know by head, if this is allowed by w3). and another pr

Re: [PHP] Mp3 with php?

2004-02-13 Thread Sven
mode (mono, 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

Re: [PHP] STMP Configuration

2004-01-29 Thread Sven
accept mail from localhost (default for all that I know), and relay 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

[PHP] Re: i need help help with include

2004-01-07 Thread Sven
hi, is this useful? 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 on this server nor set my include

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

2004-01-05 Thread Sven
$total=getguota($dom); $result = safe_query("update datasubused set quotaused ='$total' where domname = '$dom'"); } ?> 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: sql query and some math

2003-12-17 Thread Sven
(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: Regex to grab a Windows Path from a String...

2003-12-17 Thread Sven
to check 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

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

[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

[PHP] Re: Q on RegExp & extended Char

2003-12-16 Thread Sven
ii = '\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: var check not working...

2003-12-15 Thread Sven
code($lvl); $_SESSION['msg'] = $dberrors[12]; call_user_func("db_logs"); } } hi jas, the problem is, that your second form is only executed if your first condition is false (else if). but because of your or condition (||) only one of them has to be true. right? right! so it doesn't matter if your $_POST['dhcp_vlans'] is not set, when any other isn't set. a solution might be: 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
anything else would 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 i

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

2003-12-15 Thread Sven
liases (domain, listname, var, address1, address2) values (\"$domname\", \"$listname\", \"a\", \"$listdomain-$listname:\", \" \"\"$wrapper resend -C $domaincf -l $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

Re: [PHP] trouble parsing an XML document

2003-12-15 Thread Sven
ollowed by any number 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 '$', expectin

[PHP] Re: help with install

2003-12-15 Thread Sven
possiblility is, that your scripts depend 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-sup

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

2003-12-15 Thread Sven
elp you at this. now to your code. 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 -- P

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: $db = DB::co

Re: [PHP] Display Query Result As Editable Form

2003-12-10 Thread Sven
Sophie Mattoug schrieb: [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, they wil be directed to a form wher

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

2003-12-09 Thread Sven
be approved 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 (

Re: [PHP] problem with INSERT query

2003-12-09 Thread Sven
ably your single quotes. it's a different between " ... VALUES ('$tutor_name', ...)"; and " ... VALUES ($tutor_name, ...)"; 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
phpinfo.php' with the following: 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: PHP eregi filtering problem

2003-12-08 Thread Sven
a look 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] New line problem - but for Excel

2003-12-04 Thread Sven
terpreted? maybe someone can 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: HTML form handling

2003-08-25 Thread sven
ant 1 Forename: ' . $App_1_Forename . ' ...'; ?> or this: Applicant 1 Forename: $App_1_Forename ..."; ?> 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: 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 m

[PHP] Re: xml and php

2003-07-31 Thread sven
on a windows box you don't need to compile your php (--with-domxml). i think you installed the precompiled binaries from php.net. so if you want to enable this extension, look into your php.ini and uncomment the following line: extension=php_domxml.dll hth SVEN Steff wrote: > Hello >

[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: > >> D

[PHP] Re: wheres the problem?

2003-07-29 Thread sven
45b9771b54&id%5B2efwaf2%5D=20&id%5B2efwaf3%5D=21&type=1 > > /* *** > html code something like this: > > > * */ hi ryan, from your html-form you get: $id = array( 'sh1' => '3', 'sh2' => '4', ); (or something s

[PHP] Re: xls2pdf

2003-07-29 Thread sven
al pdf-printer (i.e. acrobat) ciao SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-07-28 Thread sven
uot;; > >while($resultat = @mysql_fetch_array($result)) { > >echo " > > $resultat[ip] > > "; here is '' missing: "; > echo "} the echo ''; should come after the closed while: } echo ''; >$

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 the name of the author"; $query="select name from author order by name"; $result=pg_exec($GLOBALS["db"],$query); while ($row = pg_fetch_row($result)) { print "$row[0]"; } print "";

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

2003-07-25 Thread sven
w them and their functions? > > hm. I dont even know where 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] 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

[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:> $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: var_export($

[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

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

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:

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

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(); &

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

[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

[PHP] Re: homemade authentication function

2003-07-23 Thread sven
{ if(!isset($this->user['groups'][$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 group

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

[PHP] Re:

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

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 structur

[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

[PHP] Re: regex help?

2003-07-21 Thread sven
hi john, try a regex like this: '/]*>(.*)/i' ciao SVEN John Herren wrote: > Can't seem to get this to work... > > trying to yank stuff xxx from > xxx > > and stuff yyy from > >  yyy > > preg_match("| (.*)$|i", $l, $regs); > > wo

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

[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

[PHP] Re: pdf information..

2003-07-16 Thread sven
ge. i 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

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

2003-07-15 Thread sven
hi ron, there are 2 steps to do this: 1. get data from mysql (you can use 'group by' in your select-query for doubles, maybe some kind of sort) 2. create your '' for each mysql-row create your '$var2' (if you like, add some logic for 'selected'

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

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: Regex nightmare:(

2003-07-10 Thread sven
what are the optonal escaped slashes for? '\/?' hope this helps for your start: $body = 'http://www.url";>'; $body = preg_replace ('/(<)(a href="[^"]+")(>)/', '<\\2 target="_blank">', $body); var_export($body); ciao SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[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

[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

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

2003-07-09 Thread sven
u.org/mime.mail.html) ciao SVEN "Szparag" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] i know that in mail-form i need but i don't know how to write message headers to send file with e-mail. please

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

2003-07-03 Thread sven
; did you define your user and password? afaik win ad isn't searchable by anonymous. ciao SVEN > echo "Connected and ready to bind..."; > if (!($res = @ldap_bind($ldap, $dn2, $password))) { > print(ldap_error($ldap) . ""); > die ("Could not bind the

Re: [PHP] Re: mail + regex + somethoughts

2003-07-03 Thread sven
maybe you dig a little bit deeper: take a look at rfc2045 and following. they describe the mime-type. there is also specified, how boundaries in multipart-messages are defined. ciao SVEN - Edwin - wrote: > Hello, > > "Shivanischal A" <[EMAIL PROTECTED]> wrote: &g

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 white

[PHP] string modification

2003-07-03 Thread sven
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 expression? eg: $string = 'word1 word2 word3'; $modifie

[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

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

[PHP] Re: Regex Help with -> ?

2003-06-27 Thread sven
export($match); hint to your regex: either use quantifier '*' (0-n times) OR '?' (0-1 times) ciao SVEN "Gerard Samuel" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > I have a string something like -> > <[TIT2]> ABC <[TP

[PHP] Re: twodimensional array / word-frequencylist

2003-06-26 Thread sven
computer" occurred two times in this text. look at the array-stucture with print_r, var_dump, var_export, ... or loop through the array: echo ""; foreach($occurences as $word => $count) { echo "$word$count" } echo ""; hope this helps. (didn't test the

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

[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: remove characters, add newline & making a twodimensional array

2003-06-25 Thread sven
ly use the location in the next script: $location = /path/to/my.file; echo ''; (or: echo "";) > +++ > NDore van Hoorn > Ss1000454 AlfaInformatica-RuG > 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: rtf files

2003-06-25 Thread sven
ogamm 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 > b

[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

[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]"; } you don't need the .*? in your regex (either * or ? multiplier) as preg_match searches for any occurance (not from begin ^ or to end $). c

[PHP] Re: SQL Select on a DATE field

2003-06-05 Thread sven
tches[2] hope this helps. 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 t

[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

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

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

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

[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

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

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

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

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] varible in url question

2002-07-10 Thread sven vandamme
on my page (lessen.php) i have a variable $sort if this varible is empty if enterd the page then it will be set on 'day' i have 3 links in the page lessen.php?sort=day lessen.php?sort=game lessen.php?sort=player so these links refure to the same page (itself) on clicked it opens itself and sh

[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Sven Herrmann
4_modulelibexec/libphp4.so or if you're using Apache 2.x LoadModule php4_module modules/libphp4.so Sven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail

2002-03-20 Thread Sven Jacobs
hey Is it possible to put somebody in CC when you use the mail() function ???

RE: [PHP] Making a simple borderless pop up window with a "Close" button

2002-03-19 Thread Sven Jacobs
class.overlib does that nicely http://www.posi.de/phpclass/ -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED]] Sent: mardi 19 mars 2002 13:12 To: [EMAIL PROTECTED] Subject: [PHP] Making a simple borderless pop up window with a "Close" button Hello friends. I am maki

RE: [PHP] Looking for modifiable web administration script for MySQL

2002-03-19 Thread Sven Jacobs
webmin can manage mysql www.webmin.com -Original Message- From: Steve Clay [mailto:[EMAIL PROTECTED]] Sent: mardi 19 mars 2002 13:13 To: PHP-GENERAL Subject: [PHP] Looking for modifiable web administration script for MySQL On another note, Are there any open-source/freeware PHP

[PHP] dateformat

2002-03-18 Thread Sven Jacobs
hey all I want to convert 20020211150245 into 2002-02-11 15:02:45. Does somebody have the correct conversion for this ?

  1   2   >