[PHP] what do i need to disable

2007-01-18 Thread Don
Ok, You have been very helpful with my questions so far and I thank you for that. My next task is disable harmful tags/scripts in a full text field. I want to store a bio type field and I am considering allowing html (to allow a myspace type of customization to the page), but I am reall

Re: [PHP] Oracle Execute Function

2007-01-18 Thread Chris
Brad Bonkoski wrote: Brad Bonkoski wrote: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-18 11:46:10 -0500: Hello All, I have this Oracle function, and within my code I call it like this: $sql = "BEGIN :result := my_funtion_name('$parm1', $parm2, null, null, null); END;"; $s

Re: [PHP] nuSoap -method '' not defined in service

2007-01-18 Thread Chris
blackwater dev wrote: I have the following code but when I hit the page, I get the xml error of method '' not defined in service. I don't have a wsdl or anything defined. Is there more I need to do to get the SOAP service set up? Try the nusoap mailing list. They would have a lot more experien

[PHP] nuSoap -method '' not defined in service

2007-01-18 Thread blackwater dev
I have the following code but when I hit the page, I get the xml error of method '' not defined in service. I don't have a wsdl or anything defined. Is there more I need to do to get the SOAP service set up? Thanks! include("nusoap/nusoap.php"); $server=new soap_server(); $server->register('ge

RE: [PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Chris W. Parker
On Thursday, January 18, 2007 5:09 PM Paul Novitski said: > Are you considering keeping all the levels of your data tree in a > single table because you can't predict how many levels there will > be? If you CAN predict its depth, wouldn't it be simpler and easier > to c

Re: [PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Paul Novitski
At 1/18/2007 02:56 PM, Chris W. Parker wrote: I'm currently working on trying to find a solution that is both simple and flexible for storing the data of a complicated set of dynamic options for some of our products. My current thinking is that I will use Modified Preorder Tree Traversal to organ

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-18 Thread Andre Dubuc
On Thursday 18 January 2007 06:26 pm, esteban wrote: > I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session > variables to validate users, each page have something like this: > > if($_SESSION["validated"]==0){ > header("Location: index.php"); > exit; > } > > This worked fi

RE: [PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Chris W. Parker
On Thursday, January 18, 2007 3:51 PM Chris said: Hey Chris, > If you have to write a 6 page document to explain what's going on, > that's probably bad.. because in 6 months time if you need to revisit > it, you're going to have issues. hehe I wouldn't say that my othe

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-18 Thread Chris
esteban wrote: I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session variables to validate users, each page have something like this: if($_SESSION["validated"]==0){ header("Location: index.php"); exit; } This worked fine when i had only one domain, but when i began to u

Re: [PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Chris
Chris W. Parker wrote: Hello, This is now my 3rd attempt at writing this email. :) The first two were pretty long... I'm currently working on trying to find a solution that is both simple and flexible for storing the data of a complicated set of dynamic options for some of our products. My cu

[PHP] problems with sessions variables and virtual domains in apache

2007-01-18 Thread esteban
I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session variables to validate users, each page have something like this: if($_SESSION["validated"]==0){ header("Location: index.php"); exit; } This worked fine when i had only one domain, but when i began to use virtual domain

Re: [PHP] Storing values in arrays

2007-01-18 Thread Ryan A
Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2007-01-17 at 07:15 -0800, Ryan A wrote: > > Hey! > > Thanks for replying. > > > > Instead of CRON i was thinking of having a file created and check the > > creation time everytime someone logged in... if its less than 1 min > > then don't do a

Re: [PHP] Storing values in arrays

2007-01-18 Thread Ryan A
tedd <[EMAIL PROTECTED]> wrote: At 7:15 AM -0800 1/17/07, Ryan A wrote: >True, but thats not the most important part... I guess I wrote it >wrong, I meant that it should not write to disk before 1 minute... >anyway... about the "array saving" any ideas? > >Thanks! >R Why? Hey Tedd, Aww, noth

Re: [PHP] email validation string.

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 06:07:24 -0800: > I just got this from: http://php.net/preg_match > > if(eregi ("^[[:alnum:[EMAIL PROTECTED],6}$", stripslashes(trim($someVar That would reject many of my email addresses. This is more in line with the standards: http://marc.theaimsgroup.com

Re: [PHP] Displaying Results on different rows in tables

2007-01-18 Thread Chris
Dan Shirah wrote: The code above displays no information at all. What I want to do is: 1. Retrieve my information 2. Assign it to a variable 3. Output the data into a table with each unique record in a seperate row As Brad posted: echo ""; while ($row = mssql_fetch_array($result)) { $id

[PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Chris W. Parker
Hello, This is now my 3rd attempt at writing this email. :) The first two were pretty long... I'm currently working on trying to find a solution that is both simple and flexible for storing the data of a complicated set of dynamic options for some of our products. My current thinking is that I w

Re: [PHP] Include files beneath pointed directory

2007-01-18 Thread Chris
Wikus Moller wrote: Hi. I have a windows server and I know this issue has been dealt with before but I can't find it, I want to include a file from a directory beneath or aside my home directory. Can I use the C:\directory\anotherdirectory\file.php in the include function like include "C:\direc

RE: [PHP] What makes a PHP expert

2007-01-18 Thread Ligaya A. Turmelle
Other reading - http://phpthinktank.com/archives/47-What-Makes-An-Expert.html Respectfully, Ligaya Turmelle -Original Message- From: h [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 11:27 PM To: php-general@lists.php.net Subject: [PHP] What makes a PHP expert Dear All I

Re: [PHP] Scope of include

2007-01-18 Thread Stut
Robert Cummings wrote: To answer his question though, variables not declared via the "global" keyword and not accessed via the super global variables ($GLOBALS, $_SESSION, etc) inherit the scope in which the include statement occurs. Therefore, if in the included file all you have is: $foo =

Re: [PHP] email validation string.

2007-01-18 Thread Nick Stinemates
I just got this from: http://php.net/preg_match Hope it works out for you. - Nick Stinemates On Thu, Jan 18, 2007 at 01:40:36PM -0700, Don wrote: > I'm trying to get this line to validate an email address from a form and it > isn't working. > > if (ereg("[EMAIL PROTECTED]",$submittedEmail))

[PHP] email validation string.

2007-01-18 Thread Don
I'm trying to get this line to validate an email address from a form and it isn't working. if (ereg("[EMAIL PROTECTED]",$submittedEmail)) The book I'm referencing has this line if (ereg("[EMAIL PROTECTED]",$submittedEmail)) Anyway.. I welcome any advice as long as it doesn't morph into a

Re: [PHP] Going back with multiple submits to the same page

2007-01-18 Thread Nick Stinemates
> I already do and currently I just jump to that page but it would be nice > > to go backwards so the user doesn't have to enter the same values all > > the time. If that is the case, you can also store their values

Re: [PHP] Displaying Results on different rows in tables

2007-01-18 Thread Dan Shirah
The code above displays no information at all. What I want to do is: 1. Retrieve my information 2. Assign it to a variable 3. Output the data into a table with each unique record in a seperate row On 1/18/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > Hello all, > > I am tr

Re: [PHP] Daylight Savings Time in PHP4

2007-01-18 Thread Andrew Kreps
On 1/18/07, mike caplin <[EMAIL PROTECTED]> wrote: Does anyone know if the change in Daylight Savings Time (March this year) affects PHP v4.x? I looked around www.php.net and all I could find was a reference to v5 (http://bugs.php.net/bug.php?id=35296). Is there a v4 release which is compatible

Re: [PHP] Newbie - help with a foreach

2007-01-18 Thread Jochem Maas
Németh Zoltán wrote: > On cs, 2007-01-18 at 02:04 -0800, pub wrote: >> On Jan 18, 2007, at 2:00 AM, Németh Zoltán wrote: >> ... > maybe you should use a parameter for it, place it into the link in the > first query loop, get it here and query based on it > > like "SELECT * FROM job WHERE id={$_

Re: [PHP] Going back with multiple submits to the same page

2007-01-18 Thread Otto Wyss
Paul Novitski wrote: At 1/15/2007 01:52 PM, Otto Wyss wrote: When values are entered on one of my page I submit the result back to the same page (form action=same_page). Unfortunately each submit adds an entry into the history, so history back doesn't work in a single step. Yet if the count of

Re: [PHP] regular expression help!

2007-01-18 Thread Roman Neuhauser
(Haven't received William's email yet => scavenging Jochem's reply.) # [EMAIL PROTECTED] / 2007-01-18 18:01:19 +0100: > William Stokes wrote: > > "Roman Neuhauser" <[EMAIL PROTECTED]> kirjoitti > >> This passes with 5.2: > >> > >> class ImgSrcTest extends Tence_TestCase > >> { > >>private $sr

Re: [PHP] Oracle Execute Function

2007-01-18 Thread Brad Bonkoski
Brad Bonkoski wrote: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-18 11:46:10 -0500: Hello All, I have this Oracle function, and within my code I call it like this: $sql = "BEGIN :result := my_funtion_name('$parm1', $parm2, null, null, null); END;"; $stmt = $db->parse($sql)

Re: [PHP] Oracle Execute Function

2007-01-18 Thread Brad Bonkoski
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-18 11:46:10 -0500: Hello All, I have this Oracle function, and within my code I call it like this: $sql = "BEGIN :result := my_funtion_name('$parm1', $parm2, null, null, null); END;"; $stmt = $db->parse($sql); $rc = null;

Re: [PHP] Oracle Execute Function

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 11:46:10 -0500: > Hello All, > > I have this Oracle function, and within my code I call it like this: > > $sql = "BEGIN :result := my_funtion_name('$parm1', $parm2, null, null, > null); END;"; >$stmt = $db->parse($sql); >$rc = null; >ocibi

Re: [PHP] regular expression help!

2007-01-18 Thread Jochem Maas
William Stokes wrote: > Hello Roman, > > Could you specify the functionality of your script a bit please. (How it > works) it's a hint as to how you might use simpleXML to extract the values of a src attribute from the definition of an img tag. > > I forgot to mention that this part: > > ', >

Re: [PHP] Displaying Results on different rows in tables

2007-01-18 Thread Brad Bonkoski
Dan Shirah wrote: Hello all, I am trying to pull data and then loop through the multiple results display in seperate rows. My database contains several tables which are all tied together by the credit_card_id. After running the query, it ties the unique record together by matching the credi

Re: [PHP] Exporting from Multiple mySQL Tables into One - SOLVED!

2007-01-18 Thread Rahul S. Johari
Ave, I was fiddling my way around with foreach and found a solution to my problem. Here's my code: // define the array $tChoice = array( "lodispo_osma" => "ATL", "lodispo_osmh" => "HOU", "lodispo_osmj" => "JAX", "lodispo_osmt" => "TPA", "lodispo" => "VB

[PHP] Oracle Execute Function

2007-01-18 Thread Brad Bonkoski
Hello All, I have this Oracle function, and within my code I call it like this: $sql = "BEGIN :result := my_funtion_name('$parm1', $parm2, null, null, null); END;"; $stmt = $db->parse($sql); $rc = null; ocibindbyname($stmt, ":result", &$rc); $db->execute($stmt, $sql

[PHP] Displaying Results on different rows in tables

2007-01-18 Thread Dan Shirah
Hello all, I am trying to pull data and then loop through the multiple results display in seperate rows. My database contains several tables which are all tied together by the credit_card_id. After running the query, it ties the unique record together by matching the credit_card_id in both table

[PHP] Daylight Savings Time in PHP4

2007-01-18 Thread mike caplin
Does anyone know if the change in Daylight Savings Time (March this year) affects PHP v4.x? I looked around www.php.net and all I could find was a reference to v5 (http://bugs.php.net/bug.php?id=35296). Is there a v4 release which is compatible with the DST change? Or even a patch could be appl

[PHP] Exporting from Multiple mySQL Tables into One

2007-01-18 Thread Rahul S. Johari
Ave, I¹m not sure how to execute this. I can easily write a long, tedious code to handle each table separately, but I¹m sure there is an Array/For Each way to do this. I¹ve got 6 mySQL tables. I¹ve written a code that dumps data from each table into one corresponding DBF table. While writing to

[PHP] Re: still trying to setup phpmyadin

2007-01-18 Thread Ross
cracked it. think the libmysql was an old one! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5 Cross Compilation

2007-01-18 Thread Jochem Maas
Kiran Malla wrote: > Hello, > > I am trying to cross compile PHP-5.2.0 for arm linux. > > # export CC=/usr/local/arm/3.3.2/bin/arm-linux-gcc > # export AR=/usr/local/arm/3.3.2/bin/arm-linux-ar > # export LD=/usr/local/arm/3.3.2/bin/arm-linux-ld > # export NM=/usr/local/arm/3.3.2/bin/arm-linux-nm

[PHP] Re: regular expression help!

2007-01-18 Thread Al
First stripslashes() and all newlines [\n\r*]. It makes the regex much easier. $pattern= "%%i; preg_match($pattern, $string, $match); If more than one in the string, use preg_match_all(). Now print_r($match); so you can see the result. Now, read the doc and see why each term is used. Note, I

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Jochem Maas
Bogdan Ribic wrote: > >> >> be pragmatic - fix your script :-) > > I did :) > > It was a part of code generator, and I had something like : > $res .= "function $this->insert_prefix() \{$this->_global_db\n"; > > and replaced it with > > $res .= "function $this->insert_prefix() {{$this->_global_

[PHP] still trying to setup phpmyadin

2007-01-18 Thread Ross
I am still setting up phpmyadmin and am still getting the error. I have put libmysql in the sysyem 32 folder I have a copy of the php_mysql folder in the c:\PHP\ext folder my .ini points to extension_dir = "C:\PHP" and the extemsion is uncommented. extension=php_mysql.dll What else cold be t

Re: [PHP] Storing values in arrays

2007-01-18 Thread Robert Cummings
On Thu, 2007-01-18 at 10:33 -0500, tedd wrote: > At 1:55 PM -0500 1/17/07, Robert Cummings wrote: > >On Wed, 2007-01-17 at 13:14 -0500, tedd wrote: > >> At 7:15 AM -0800 1/17/07, Ryan A wrote: > >> >True, but thats not the most important part... I guess I wrote it > >> >wrong, I meant that it sh

Re: [PHP] dynamic lists

2007-01-18 Thread Jochem Maas
tedd wrote: > At 2:33 PM -0800 1/17/07, Kevin Murphy wrote: >> Not saying I disagree with you. which is why i tossed it out there >> as an FYI rather than anything else. But its something that you should >> be aware of when designing a site and weighing your options. For me, >> working for a go

Re: [PHP] Scope of include

2007-01-18 Thread Robert Cummings
On Thu, 2007-01-18 at 10:29 -0500, tedd wrote: > At 9:49 PM -0800 1/17/07, jekillen wrote: > >Hello php list: > >If I include a php script inside a php function definition and then call the > >function in another script. What is the scope of variables in the included > >script? Are they local to th

Re: [PHP] Storing values in arrays

2007-01-18 Thread tedd
At 1:55 PM -0500 1/17/07, Robert Cummings wrote: On Wed, 2007-01-17 at 13:14 -0500, tedd wrote: At 7:15 AM -0800 1/17/07, Ryan A wrote: >True, but thats not the most important part... I guess I wrote it >wrong, I meant that it should not write to disk before 1 minute... >anyway... about the

[PHP] PHP5 Cross Compilation

2007-01-18 Thread Kiran Malla
Hello, I am trying to cross compile PHP-5.2.0 for arm linux. # export CC=/usr/local/arm/3.3.2/bin/arm-linux-gcc # export AR=/usr/local/arm/3.3.2/bin/arm-linux-ar # export LD=/usr/local/arm/3.3.2/bin/arm-linux-ld # export NM=/usr/local/arm/3.3.2/bin/arm-linux-nm # export RANLIB=/usr/local/arm/3.3

Re: [PHP] dynamic lists

2007-01-18 Thread Scripter47
Hey! I got the same problem with a php chat.. look at http://wsd.riddergarn.dk?p=chat Here is a link to a AJAX site: http://javascript.internet.com/ajax/ Here is the tutorial that helped my...: http://javascript.internet.com/ajax/ajax-navigation2.html [FONT=23]Scripter47[/FONT] Don skrev:

Re: [PHP] Scope of include

2007-01-18 Thread tedd
At 9:49 PM -0800 1/17/07, jekillen wrote: Hello php list: If I include a php script inside a php function definition and then call the function in another script. What is the scope of variables in the included script? Are they local to the function that calls include with the file name? Thanks in

RE: [PHP] What makes a PHP expert

2007-01-18 Thread bruce
hi... for my $0.02 worth... sometimes it's as simple as someone who can qucikly grasp the issue(s) and nuances/intracacies of the issues/problems, and who can then utilize php to solve the problem, as well as craft an elegant solution that will scale into the future. peace... -Original Mess

Re: [PHP] dynamic lists

2007-01-18 Thread tedd
At 2:33 PM -0800 1/17/07, Kevin Murphy wrote: Not saying I disagree with you. which is why i tossed it out there as an FYI rather than anything else. But its something that you should be aware of when designing a site and weighing your options. For me, working for a governmental institution

RE: [PHP] What makes a PHP expert

2007-01-18 Thread Miles Thompson
At 09:55 AM 1/18/2007, Jay Blanchard wrote: First I would consider number of years of programming experience including how many years a programmer had been using PHP. I would examine some code and look for organization, documentation, and consistency. Is the programmer published (articles, boo

[PHP] Include files beneath pointed directory

2007-01-18 Thread Wikus Moller
Hi. I have a windows server and I know this issue has been dealt with before but I can't find it, I want to include a file from a directory beneath or aside my home directory. Can I use the C:\directory\anotherdirectory\file.php in the include function like include "C:\directory\anotherdirectory

RE: [PHP] One last try at this!

2007-01-18 Thread Beauford
> -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: January 17, 2007 8:10 PM > To: Jim Lucas > Cc: Beauford; 'PHP' > Subject: Re: [PHP] One last try at this! > > Jim Lucas wrote: > > Beauford wrote: > >> This is what I am trying to do, and for the most part it > w

Re: [PHP] Re: What makes a PHP expert

2007-01-18 Thread Robert Cummings
On Thu, 2007-01-18 at 14:25 +, Colin Guthrie wrote: > Answer, "nothing", PHP doesn't need Makefiles as it's an interpreted > language :p Ummm, I build PHP from source. There is definitely a makefile :) > hahahaha > > Sorry, I'll get my coat. Don't let the door hit you on the way out ;) Chee

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-18 Thread Nuno Vaz Oliveira
From Roman: Roman: [...] You don't need to know your IP. See the grammar for AbsoluteURI: ftp://ftp.rfc-editor.org/in-notes/rfc2396.txt I'm asking this because my IP is dynamic and I'm using a free redirection service. My site is at 'http://something.no-ip.org/sitename' can I use 'http://someth

[PHP] Re: What makes a PHP expert

2007-01-18 Thread Colin Guthrie
Answer, "nothing", PHP doesn't need Makefiles as it's an interpreted language :p hahahaha Sorry, I'll get my coat. Col. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Bogdan Ribic
be pragmatic - fix your script :-) I did :) It was a part of code generator, and I had something like : $res .= "function $this->insert_prefix() \{$this->_global_db\n"; and replaced it with $res .= "function $this->insert_prefix() {{$this->_global_db}\n"; ... in about 20 locations. But t

[PHP] Re: How to prevent DomDocument from adding a !DOCTYPE.

2007-01-18 Thread Mathijs
Rob Richards wrote: Mathijs wrote: I have some HTML content: Testing ØøÅå_^{}\[~]|[EMAIL PROTECTED]"#¤%&'()*+,ÖÑܧ¿äöñüà-./:;<=>?¡Ä Now i need to parse the HTML by getting all the class and id attributes and replace them with something else, and after that return

[PHP] Is there a wordwrap for multibyte/unicode/utf8?

2007-01-18 Thread Mathijs
Hello there, I have a multibyte string which i need to wordwrap. Now wordwrap splits multibyte chars also. Is there a way to fix this?? Thx in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Jochem Maas
Németh Zoltán wrote: > On cs, 2007-01-18 at 14:19 +0100, Jochem Maas wrote: >> Bogdan Ribic wrote: >>> Hi all, >>> >>> Try this: >>> >>> $a = ''; >>> echo "\{$a}"; >>> >>> from php 4, it outputs "{}", from php 5.2 (one that comes with Zend 5.5) >> no-one here supports Zend. >> >>> it outputs "\{}",

RE: [PHP] What makes a PHP expert

2007-01-18 Thread Jay Blanchard
[snip] I often see job ads asking for a PHP expert and was wandering what you all thought makes a PHP programmer into an expert. what would you mark out as the key skills that distinguishes an expert from the ordinary i.e. OOP mastery, regular expressions etc. [/snip] First I would consider numbe

[PHP] What makes a PHP expert

2007-01-18 Thread h
Dear All I often see job ads asking for a PHP expert and was wandering what you all thought makes a PHP programmer into an expert. what would you mark out as the key skills that distinguishes an expert from the ordinary i.e. OOP mastery, regular expressions etc. p.s. I am not an expert b

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Németh Zoltán
On cs, 2007-01-18 at 14:19 +0100, Jochem Maas wrote: > Bogdan Ribic wrote: > > Hi all, > > > > Try this: > > > > $a = ''; > > echo "\{$a}"; > > > > from php 4, it outputs "{}", from php 5.2 (one that comes with Zend 5.5) > > no-one here supports Zend. > > > it outputs "\{}", thus breaking exis

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Jochem Maas
Bogdan Ribic wrote: > Hi all, > > Try this: > > $a = ''; > echo "\{$a}"; > > from php 4, it outputs "{}", from php 5.2 (one that comes with Zend 5.5) no-one here supports Zend. > it outputs "\{}", thus breaking existing scripts. AFAICT the escaping in that string is wrong - the fact that it d

[PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Bogdan Ribic
Hi all, Try this: $a = ''; echo "\{$a}"; from php 4, it outputs "{}", from php 5.2 (one that comes with Zend 5.5) it outputs "\{}", thus breaking existing scripts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regular expression help!

2007-01-18 Thread William Stokes
Hello Roman, Could you specify the functionality of your script a bit please. (How it works) I forgot to mention that this part: ', is not always the same. The image properties can vary. Thanks -Will "Roman Neuhauser" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] ># [EMAIL PR

Re: [PHP] regular expression help!

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 12:34:36 +0200: > I need to strip all characters from the following text string exept the > image path... > > " src=\"../../images/new/thumps/4123141112007590373240.jpg\" />"...and then > store the path to DB. Image path lengh can vary so I guess that I need to

Re: [PHP] phpmyadmin & mysql extensions

2007-01-18 Thread T . Lensselink
Move your dll's to C:\PHP\ext and restart apache... On Thu, 18 Jan 2007 10:20:23 -, "Ross" <[EMAIL PROTECTED]> wrote: > did the following... > > -installed apache > -installed php (C:\PHP) with the windows installer > -moved my websites to the htdocs folder..so far so good can access pages

Re: [PHP] Newbie - help with a foreach

2007-01-18 Thread Németh Zoltán
On cs, 2007-01-18 at 02:04 -0800, pub wrote: > On Jan 18, 2007, at 2:00 AM, Németh Zoltán wrote: > > > ok, but how could anyone help without seeing your code? > > > > greets > > Zoltán Németh > > > Here is the code: > > Here is the entire page: > > > > > > include("../include/etc_inc.php

[PHP] regular expression help!

2007-01-18 Thread William Stokes
Hello, Can someone here give me a glue how to do the following. I guess I need to use regular expressions here. I have absolutely zero experience with regular expressions. (if there's another way to do this I don't mind. I jus need to get this done somehow :) I need to strip all characters fro

[PHP] phpmyadmin & mysql extensions

2007-01-18 Thread Ross
did the following... -installed apache -installed php (C:\PHP) with the windows installer -moved my websites to the htdocs folder..so far so good can access pages - downlaoded php my admin to htdocs -downloaded the FULL php version -copied the extensions folder (C:\PHP\ext) -changd the line in ph

Re: [PHP] Newbie - help with a foreach

2007-01-18 Thread pub
On Jan 18, 2007, at 2:00 AM, Németh Zoltán wrote: ok, but how could anyone help without seeing your code? greets Zoltán Németh Here is the code: Here is the entire page: echo "{$aaa['companyName']}class='navArrow'> > \n"; // query b from job $query = "SELECT * FROM job

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 08:59:11 +: > >Roman: > >[...] > >You don't need to know your IP. See the grammar for AbsoluteURI: > >ftp://ftp.rfc-editor.org/in-notes/rfc2396.txt > > > >>I'm asking this because my IP is dynamic and I'm using a free > >>redirection service. My site is at > >>'

Re: [PHP] Newbie - help with a foreach

2007-01-18 Thread Németh Zoltán
ok, but how could anyone help without seeing your code? greets Zoltán Németh On cs, 2007-01-18 at 01:54 -0800, pub wrote: > Thank you for your reply. > > My problem is that the web addresses on the bottom right show at all > times as is instead of appearing only when active or selected on the

Re: [PHP] Newbie - help with a foreach

2007-01-18 Thread pub
Thank you for your reply. My problem is that the web addresses on the bottom right show at all times as is instead of appearing only when active or selected on the left top navigation! Does that make sense? On Jan 18, 2007, at 1:43 AM, Németh Zoltán wrote: I can't really understand what

Re: [PHP] One last try at this!

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 01:48:25 -0800: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-01-17 17:02:12 -0800: > >>Beauford wrote: > >>> if(!preg_match("/^[-A-Za-z0-9_.' ]+$/", $string)) { > >>> return "Invalid Characters"; > >>>} > > > >>In your regex you have a "." this will

Re: [PHP] One last try at this!

2007-01-18 Thread Jim Lucas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-17 17:02:12 -0800: Beauford wrote: if(!preg_match("/^[-A-Za-z0-9_.' ]+$/", $string)) { return "Invalid Characters"; } In your regex you have a "." this will match anything try this: That "." is inside a characte

Re: [PHP] Newbie - help with a foreach

2007-01-18 Thread Németh Zoltán
I can't really understand what your problem is, because it seems to me that the site is working like you want it to work. Or not? And if there is a problem with the code then please show us the code somehow, not the resulting webpage greets Zoltán Németh On cs, 2007-01-18 at 01:31 -0800, pub wro

[PHP] Newbie - help with a foreach

2007-01-18 Thread pub
Could someone please help me figure out how to hide the info in the right bottom part of my page unless the corresponding link is selected in the top left. The company names and job types at the top left need to show at all time. But the corresponding picture at the bottom left and the web

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-18 Thread pub
On Jan 18, 2007, at 12:59 AM, Nuno Vaz Oliveira wrote: Roman: [...] You don't need to know your IP. See the grammar for AbsoluteURI: ftp://ftp.rfc-editor.org/in-notes/rfc2396.txt I'm asking this because my IP is dynamic and I'm using a free redirection service. My site is at 'http://something.

Re: [PHP] Php coding help - Newbie question

2007-01-18 Thread Ramdas
On 1/17/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Ramdas wrote: > Hi Group, > > A very newbie question. Might be discussed earlier, please forgive. Are so much of a noob that STFW is not within your capabilities? (just thought I'd ask, given that you admit to realising the info *might* be out t

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-18 Thread Nuno Vaz Oliveira
Roman: [...] You don't need to know your IP. See the grammar for AbsoluteURI: ftp://ftp.rfc-editor.org/in-notes/rfc2396.txt I'm asking this because my IP is dynamic and I'm using a free redirection service. My site is at 'http://something.no-ip.org/sitename' can I use 'http://something.no-ip.org

Re: [PHP] is there another way ??

2007-01-18 Thread clive
Ali Nasser wrote: can you please check these out and tell me if there another way without installing externsions?? no sorry I cant check for you! http://groups-beta.google.com/group/cpdevgroup/web/how-easy-is-these-project?&_done=%2Fgroup%2Fcpdevgroup%2Fweb%2Fhow-easy-is-these-project%3Fmsg

Re: [PHP] Scope of include

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 21:49:05 -0800: > Hello php list: > If I include a php script inside a php function definition and then > call the function in another script. What is the scope of variables in > the included script? Are they local to the function that calls include > with the file

Re: [PHP] One last try at this!

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 17:02:12 -0800: > Beauford wrote: > > if(!preg_match("/^[-A-Za-z0-9_.' ]+$/", $string)) { > > return "Invalid Characters"; > >} > In your regex you have a "." this will match anything > > try this: > > > function ValidateString($string) { > i