[PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread J Smith
I sumbitted a similar patch to the Quanta team about a week ago. It may appear in an upcoming release, possibly Quanta 3, which will come with KDE 3.0. A few other additions I made: - highlighting is now case-insensitive for everything. I believe older versions were case-sensitive for keywor

Re: [PHP] Store PHP Code in MySQL?

2001-06-19 Thread J Smith
Try looking at the eval() function. It's pretty similar to the eval keyword in perl. http://www.php.net/manual/en/function.eval.php J Smith code, dba and linux guy Tutorbuddy Inc. The Magic Lantern Group mailto:[EMAIL PROTECTED] "Joseph Koenig" <[EMAIL PROTECTED]> wr

Re: [PHP] Store PHP Code in MySQL?

2001-06-19 Thread J Smith
Try looking at the eval() function. It's pretty similar to the eval keyword in perl. http://www.php.net/manual/en/function.eval.php J Smith code, dba and linux guy Tutorbuddy Inc. The Magic Lantern Group mailto:[EMAIL PROTECTED] "Joseph Koenig" <[EMAIL PROTECTED]> wr

Re: [PHP] Code check please

2001-06-20 Thread J Smith
whack. The "SET" clause is used for UPDATEs, not INSERTs. Instead, try: $sql = "INSERT INTO tabell (fornamn, efternamn, email) VALUES (" . "'$fornamn', '$efternamn', '$email');"; Hope that works. J "Andrea

Re: [PHP] Parse PHP inside a variable

2001-06-20 Thread J Smith
Try eval(): http://www.php.net/manual/en/function.eval.php i.e. J "Claus Heiko Niesen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello > > I'm having a variable that contains HTML with embedded PHP code. W

Re: [PHP] toronto developers?

2001-06-22 Thread J Smith
x/free software route was a natural choice. Anyways, I guess that's it. Welcome to Toronto. J "nicole" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > apologies for being not quite on topic.. > > i just move

Re: [PHP] Re: Regular Expression help

2001-06-30 Thread J Smith
ring Regular Expressions for checking email address syntax is some 4,700 bytes long.) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: string search

2001-07-16 Thread J Smith
P, look at the preg and ereg groups of functions. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] a good PHP editor

2001-07-19 Thread J Smith
Chris Schneck wrote: > I've never heard windows 95 and great in the same sentence. > Funnily enough, I have heard the two in the same sentence: I've heard that Windows 95 turns perfectly good computers into great doorstops. J -- PHP General Mailing List (http://

[PHP] Re: php in html-- what gives?

2001-07-24 Thread J Smith
html or .htm or whatever to parse your PHP code, add another line with the proper extension: AddType application/x-httpd-php .html AddType application/x-httpd-php .htm etc. Apache will need to be restarted after you save the .conf file. IIS works similarly, but it has a fancy-schmancy dialog. J

[PHP] Any chance of php on Netware 6?

2001-07-25 Thread J Andrews
Now that Netware 6.0 is/will be shipping with Apache, is there any chance of someone migrating php and MySQL to Netware? Please? Then I can get rid of Linux and Windows :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] PHP scripting

2001-07-25 Thread J Smith
Here's an obvious one: 1. Go to http://www.php.net (or one of its mirrors) 2. Click "Show Source" in the bottom right-hand side of any of the pages on the site. J Tyler Longren wrote: > Also, > px.sklar.com > www.phpbuilder.com > www.hotscripts.com/PHP > >

Re: [PHP] myPhpAdmin/mysql/php/ Problem

2001-08-07 Thread J. Simpson
I've tried every combination of single and or double qoutes i can think of. I don't thats it. thanx though David Robley wrote: > On Tue, 7 Aug 2001 01:52, Julian Simpson wrote: > > who's fault is this?: > > I have a table 'cdrequest' it has columns 'albumfill' and > > 'releasedatefill' among o

[PHP] Re: Is there a debugger ???

2001-08-08 Thread J Smith
For PHP 4, I believe you need to purchase the Zend Debugger from Zend. It comes as part of the Zend Developer's Suite. J Peter Dowie wrote: > Hi, > > I noticed in php.ini there was a setion for debugger, I tried enabling > this and connecting to the specified port, but no j

[PHP] Re: form validataion?

2001-08-08 Thread J Smith
function or script just to make sure that if a variable is needed on a page, it's been set properly on the form. J Kurth Bemis wrote: > i want to do form validation server side...not client side.. > > i'm wondering what programers use to validate form data.if >

Re: [PHP] What is wrong ????

2001-08-17 Thread J Smith
It might also help to know what database you're using, as the syntax between them all can vary slightly. PostgreSQL? MySQL? Oracle? Ingres? J Dennis Van Zanten wrote: > Ofcourse sorry: > > You have an error in your SQL syntax near '','','010',&

[PHP] Re: Page detect

2001-08-21 Thread J Smith
If you're talking about the PHP page itself, try $PHP_SELF. If you want to know what page sent the form data to the PHP page, try $HTTP_REFER. Be careful, though, as not every browser sends the referring page along with a request, leaving $HTTP_REFER empty. J Kevin P wrote: >

[PHP] Re: The future of PHP

2001-08-23 Thread J Smith
SP, but as Sablotron and PHP's XSLT extensions became more stable, I started using them rather than combining both Cocoon and PHP. J Elias Santiago wrote: > He MAY be right, may not. XML is just not so standardized (if in doubt > look how IE and Netscape each implement it "th

[PHP] Re: source code of c/c++

2001-08-24 Thread J Smith
al Studio (http://www.microsoft.com). J p.s. you'll get a better response and discussion in an actual C or C++ group. Nafiseh Saberi wrote: > > hi . > do you know in what site I find the source code of compiler and > > design editor for it. > > thanks. -- PHP

RE: [PHP] Re: PHP secure

2001-08-24 Thread J Smith
If you can't trust your clients with the source code, what are you telling your clients? J Erik H. Mathy wrote: >> Encode (or compile) the source. >> >> Zend's compiler costs 2400 dollars. At this cost is better to >> release your code on an open sourc

RE: [PHP] str_replace() function help

2001-08-28 Thread J Friesen
This is the code I use for articles that are taken out of a database and the \n need to be changed to paragraphs $art = htmlspecialchars($art); $art = nl2br($art); $art = str_replace("", "", $art); echo "" . $art . ""; -Original Message- From: Navid Yar [mailto:[EMAIL PROTECTED]] Sent: T

RE: [PHP] What does PHP stand for?

2001-08-28 Thread J Smith
It's actually a recursive acronym, like GNU: >From the manual: "PHP, which stands for 'PHP: Hypertext Preprocessor', is an HTML-embedded scripting language." J Jon wrote: > Hmm although the answer was "Personal Home Page Tools" and is now > "

[PHP] Re: Another script doesnt work!

2001-09-04 Thread J Smith
eds a semi-colon at the end. So, try... $message = "blah!!"; J Kyle Smith wrote: > And this time its not because of a dot, someone please help! > > Parse error: parse error in > /web/sites/197/lk6/www.stupeedstudios.f2s.com/dannys/sendform.php on line > 22 > > line

[PHP] Re: Include inside a function?

2001-09-21 Thread J Smith
Why don't you try it and find out? J Kyle Smith wrote: > Is it possible to use include inside the mail function? > eg > > mail(include("blah.txt")) ??? > > > -lk6- > http://www.StupeedStudios.f2s.com > Home of the burning lego man! > &g

[PHP] Re: GPL and The PHP License

2001-09-24 Thread J Smith
ode you write is automatically given the same license, just like software you code with gcc isn't automatically GPL'd (or LGPL'd?). 3. I don't know, but it may have something to do with how the Zend engine is licensed, what with it being on the commercial side of PHP and all.

[PHP] Re: stupid newbie question

2001-10-05 Thread J Smith
XPERIMENTAL, so don't rely too much on it. I have no idea as to its stability. And it's probably only truly useful for command line php. (As for the funkyness, kill zombies with pcntl_waitpid().) J Richard Lynch wrote: > http://php.net/exec > > You'll need to use &am

[PHP] Any idea how to automatically post to http authentication?

2004-09-21 Thread j kensler
I'm trying to create a php page that automatically posts data to several other webpages (to log in). However one of the pages is using some sort of CGI HTTP authentication. Is there any way that I can see what the names of the fields are (such as user or username or whatever). And also is there any

[PHP] SSI and PHP

2004-10-13 Thread j kensler
I've got to use some server side includes (and some SETs). And PHP is set up as a CGI program. If I include the php page from the .shtml page, the php page cannot receive queries. .php files are not set up to process these includes. And of course virtual(), etc. do not work because PHP is set u

Re: [PHP] Class PHP4 problem

2004-09-29 Thread j kensler
Try adding function getQuery() { return $this->query; } to the first class, then in the second class, replace $query with $this->getQuery() Like I have below. On Wed, 29 Sep 2004 17:08:49 +0200, kioto <[EMAIL PROTECTED]> wrote: > //db_class.php > > error_reporting(E_ALL); > > class Db_Conne

Re: [PHP] Zend PHP Certification test

2004-09-29 Thread j kensler
How long is the Zend certification 'good' for? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Variable Security

2004-09-30 Thread j kensler
The first thing to do is to set your scripts to not allow session handling to be carried out through the URL if a person's browser won't accept cookies. It would be way too easy to change the ID. And also if the id numbers are sequential, you might also want to have a second, random identifier that

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread j kensler
Time since last post to this list On Thu, 30 Sep 2004 18:56:56 -0500, Matt M. <[EMAIL PROTECTED]> wrote: > > This is just too easy: > > > > The shown times are posting-times for one day on this list, for posts > > regarding mysql. > > ah ha. > > could also be unsubscribe emails > > > > -- >

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread j kensler
1:11 1:15 1:19 1:26 1:27 1:28 1:30 1:34 1:42 1:46 1:47 1:48 1:52 2:10 2:12 2:14 2:16 2:18 2:20 2:26 2:30 2:34 2:41 2:48 3:08 3:10 3:12 3:14 3:16 3:18 3:26 3:27 3:30 3:34 3:41 3:44 4:11 4:15 4:16 4:18 4:19 4:23 4:24 4:28 4:30 4:32 4:34 4:36 4:40 4:41 4:42 4:47 4:51 5:08 5:10 5:12 5:16 5:18 5:20 5:2

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread j kensler
I have the first part figured out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread j kensler
The code is: j896c5kk.fi7/ d89635bb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Text Editor for Windows?

2007-02-07 Thread J R
if you want a very lightweight use notepad2[1] i use php eclipse though :) [1] http://www.flos-freeware.ch/notepad2.html On 2/8/07, Ryan Fielding <[EMAIL PROTECTED]> wrote: Stephen wrote: > I am finding that notepad is lacking when correcting syntax errors in my php code. No line numbers. > >

Re: [PHP] Filtering _REQUEST.. Why is this bad?

2007-02-12 Thread J R
here's my opinion on the matter. it is not adviced to do filtering on _REQUEST getting data in general from it actually. It is much better to specify where your data is coming from ( e.g. _POST or _GET). This is because variable _REQUST contains all the data from the cookies, get and post. and if

Re: [PHP] Filtering _REQUEST.. Why is this bad?

2007-02-13 Thread J R
to be passed but you need to pass your page using POST.(like i said be careful and not over use because of lazyness) (i hope i'm being clear) On 2/14/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, February 12, 2007 8:41 pm, J R wrote: > it is not adviced to do filtering on

[PHP] OCI8 under WINDOWS

2007-02-26 Thread Miguel J.
APACHE (with the help of phpinfo()) ... Any idea why it won't load? -- Miguel J. Jiménez Área de Internet/XSL/PHP [EMAIL PROTECTED] ISOTROL Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta. Parque Tecnológico Cartuja '93, 410

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread J DeBord
If you want to check that a *form* was submiited, you need to at minimum check that one of the form elements exist in the post data, assuming the method is post. The submit button is a good one to use. Just checking that there *is* POST data isn't a great idea. Anyone can post anything. Checking fo

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread J DeBord
I've heard stories like this before, but never encountered it myself. I forgot to mention that it is a good idea to give your submit buttons a "value" attribute. Regardless of how the form is submitted, you should then have a value for ['submit']. Reminding the user that they must do anything oth

Re: [PHP] Calling extension function from another

2009-08-29 Thread J DeBord
On Sat, Aug 29, 2009 at 10:14 AM, leledumbo wrote: > > extension A has function a, extension B has function b. How can I make b > calls a? What is an extension? > > -- > View this message in context: > http://www.nabble.com/Calling-extension-function-from-another-tp25185839p25200892.html > Sen

Re: [PHP] Date Comparison

2009-09-03 Thread J DeBord
Telling someone RTFM is just rude and mean. Manipulating dates and times can be confusing for beginners and experienced people alike. I would suggest that when a question asked here causes you to respond with RTFM, don't respond at all. Save yourself the time and trouble and save the person asking

Re: [PHP] Some help with SimpleXML :`(

2009-09-03 Thread J DeBord
You almost had it... Since clothes is the root element you can think of your initial $xml as . So, you add a child to it. That error message is kinda cryptic though. Red Gloves a pair of red gloves adult 12.99 Snow Boots some snow boots child 23.99 EOD; $sxm

[PHP] Some help with SimpleXML :`(

2009-09-04 Thread J DeBord
thought it would ? would i need to "write" using fwrite ? > > You'll need to save your xml to the file once you are done manipulating it. Use $xml->asXML('filename'); Check here: http://www.php.net/manual/en/simplexmlelement.asXML.php J > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread J DeBord
On Sat, Sep 5, 2009 at 6:19 PM, Richard Heyes wrote: > Hi, > > > E_STRICT is now part of E_ALL > > *In PHP 6 * > Oopsy. Shows how much PHP I do these days... > > -- > Richard Heyes > HTML5 graphing: RGraph - www.rgraph.net (updated 5th September) > Lots of PHP and Javascript code - http://www.ph

Re: [PHP] htaccess question

2009-09-11 Thread J DeBord
On Fri, Sep 11, 2009 at 4:46 PM, tedd wrote: > Hi gang: > > Is there a way I can use a htaccess directive to require a php script to be > "included" within each file contained within that directory? > > For example, let's say I have a directory with 100 scripts in it, but I > want each script wit

Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-12 Thread J DeBord
On Sat, Sep 12, 2009 at 8:47 PM, Jim Lucas wrote: > Andrea Giammarchi wrote: > >> something I cannot find in any other library or framework. >> > > This should tell you something then... > > If something like Formandehyde isn't useful, then why is Charles so popular (note: popular from my perspec

Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-13 Thread J DeBord
On Mon, Sep 14, 2009 at 2:05 AM, tedd wrote: > At 10:49 PM +0200 9/13/09, Andrea Giammarchi wrote: > >> I was expecting somebody that develop massive Ajax application, not a link >> with 3 pages and zero point about the reply. >> > > You asked if anyone did any ajax? So, I replied and provided yo

Re: [PHP] file_put_contents problem

2009-09-14 Thread J DeBord
On Mon, Sep 14, 2009 at 4:19 PM, Andres Gonzalez wrote: > I have read in the contents of a file using file_get_contents. I can verify > that the data has actually been read in by echoing its contents. > > But then if I do this: > > $ret = file_put_contents("/tmp/bla", $bk); > > The return value gi

[PHP] stream_select() not working on regular files?

2010-02-03 Thread Dennis J.
Hi, I'm trying to implement something similar to "tail -f" in php but I'm running into a problem. The issue occurs when I've reached the end of the file. From here I basically have to loop until new lines get appended to the file but I would like to respond immediately when then happens. There

Re: [PHP] stream_select() not working on regular files?

2010-02-03 Thread Dennis J.
On 02/04/2010 02:03 AM, Ashley Sheridan wrote: On Thu, 2010-02-04 at 01:41 +0100, Dennis J. wrote: Hi, I'm trying to implement something similar to"tail -f" in php but I'm running into a problem. The issue occurs when I've reached the end of the file. From here I bas

Re: [PHP] stream_select() not working on regular files?

2010-02-04 Thread Dennis J.
On 02/04/2010 06:18 AM, Eric Lee wrote: On Thu, Feb 4, 2010 at 9:20 AM, Dennis J. wrote: On 02/04/2010 02:03 AM, Ashley Sheridan wrote: On Thu, 2010-02-04 at 01:41 +0100, Dennis J. wrote: Hi, I'm trying to implement something similar to"tail -f" in php but I'm running

[PHP] Getting form name

2005-03-22 Thread j kensler
I'm trying to get the name of a form. I tried the following code, but I guess the data in $_POST only contains data on the form elements that go inside the form tags, but not info from the form tag itself. Any suggestions on how to get the form name? $value) { echo $key . "---" . $value . ""; } e

[PHP] Newbie question, Which way is best?

2008-03-19 Thread George J
Hi, I have a script that contains a form and a pagination routine that calls itself. I want to pass an sql query along with some other variables to the called script. The code to acheive this, using the form, is working but when I try to write the code, using the scripts URL to call itself, I a

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread George J
Hi Daniel, >WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! As a newbie I just have to ask why. I suspect you're going to say it gives the table and field names used in my database. I'm not really aware of all the possible avenues that this method might open up. It just feels

Re: Re: [PHP] Newbie question, Which way is best?]

2008-03-19 Thread George J
Hi Shawn, "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > George J wrote: >> Hi Daniel, >> >>>WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! >> >> As a newbie I just have to ask why. I suspe

[PHP] Re: algorithm of pages beaking

2008-03-19 Thread George J
Hi, I'm trying to resolve an issue with a pagination routine. Sounds like we're working on a similar routine. I have a query returning products from a database and then display the results in a defined number of products per page. Checkout - 'Newbie question, Which way is best?' in this newsgr

[PHP] Re: MySQL Group?

2008-03-19 Thread George J
Hi John, "John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know of a good MySQL group? > I want to make a relational link from `data` to `shopping` so when I > insert a new record in `shopping`, I will see the contents of > `data`.`name` and `data`.

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread George J
""Thiago Pojda"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > De: George J [mailto:[EMAIL PROTECTED] > >> So calling the script via the form works i.e it passes the >> neccessary variables to constrct the sql query for the next >&g

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread George J
Hi Shawn, >> My query code- >> >> ---SQL query construction block >> $query = "SELECT * FROM prods "; >> if($catagory != 0){ >> // >> if category != 0 >> $where="WHERE c = $catagory "; >> if ($manu != 0){ // >> check >> m

Re: [PHP] Extracting Variables From URL

2007-05-16 Thread J R
http://www.php.net/reserved.variables use $_SERVER['PHP_SELF'] or $_SERVER['REQUEST_URI'] just parse its value to get what you needed. hth, John On 5/17/07, CK <[EMAIL PROTECTED]> wrote: Hi All, The following code works just fine for outputting links from an array. The next goal, is parsin

[PHP] Hi. I need your help here

2007-06-23 Thread J S
Hi. I came across your contact info at php.zend.com and was hoping you could help me out with this question. I recently installed Rubberwall10, a free software that protects from hotlinking and although I managed to installed the software correctly at my site, I came across the fact that when

[PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-26 Thread j . kuehne
Hello I am pleased if someone could explain me since is wrong the following function call: ($row = & $result->fetchRow(DB_FETCHMODE_ASSOC, $_SESSION["searchFormVars"]["offset"]+$rowCounter)); as you will find them on the bottom of the email. By the way, fetchRow() is an object from class DB(.p

[PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-26 Thread j . kuehne
Hello I am pleased if someone could explain me the behaviour since is wrong the following function call: ($row = & $result->fetchRow(DB_FETCHMODE_ASSOC, $_SESSION["searchFormVars"]["offset"]+$rowCounter)); as you will find them on the bottom of the email. By the way, fetchRow() is a method fro

[PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-27 Thread j . kuehne
Hello I am pleased if someone could explain me the behaviour since is wrong the following function call: ($row = & $result->fetchRow(DB_FETCHMODE_ASSOC, $_SESSION["searchFormVars"]["offset"]+$rowCounter)); as you will find them on the bottom of the email. By the way, fetchRow() is a method fro

[PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-27 Thread j . kuehne
Hello I am pleased if someone could explain me the behaviour since is wrong the following function call: ($row = & $result->fetchRow(DB_FETCHMODE_ASSOC, $_SESSION["searchFormVars"]["offset"]+$rowCounter)); as you will find them below. By the way, fetchRow() is a method from class DB(.php). How

[PHP] Fatal error: Call to a member function query() on a non-object in C:\Xampp\xa...

2006-06-28 Thread j . kuehne
Hello Following code shows within I have some difficulties. Is only an example from "Web Databasse Applications with PHP and MysQL" book. global $dsn; global $connection; $template->setCurrentBlock(); $template->setVariable("SUCH-KRITERIUM","Such-Kriterium: {$_SESSION["searchFormVars"]["

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread J R
try to use this few lines of code. function stripMagicQuotes(&$var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. ** On 8/10/06, Chris <[EMAIL PROTECTED]> wrote: [EMAIL PROTE

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread J R
n 8/10/06, Chris <[EMAIL PROTECTED]> wrote: Chris wrote: > Chris wrote: >> J R wrote: >>> try to use this few lines of code. >>> >>> function stripMagicQuotes(&$var) >>> { >>>if (get_magic_quotes_gpc()) { >>>$va

Re: [PHP] header lost session variables.

2006-08-14 Thread J R
On 8/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote: I´m in the follow location: https://www2.../?modulo=seguro&acao=identifica And in my script i use header("Location: ./?modulo=seguro&acao=novo_cadastro") i normally do header("Location: ?modulo=seguro&acao=novo_cadastro"

Re: [PHP] Re: Regex

2006-08-21 Thread J R
http://www.php.net/manual/en/reference.pcre.pattern.syntax.php On 8/22/06, Alex Turner <[EMAIL PROTECTED]> wrote: If what you mean is a db table, then it would seem to me that you should not be using a regex. PHP has rawurlencode() for this sort of thing. But - you should learn regex ;-) Try

Re: [PHP] php generated javascript

2006-08-30 Thread J R
put this at the top of your script "ob_start();" or before any output. On 8/31/06, Shu Hung (Koala) <[EMAIL PROTECTED]> wrote: On 8/31/06, Peter Lauri <[EMAIL PROTECTED]> wrote: > > Koala, > > There is no difference with the php generated javascript and javascript on > a > static html page. > >

Re: [PHP] How to add user to linux using php

2006-09-04 Thread J R
you have to understand that the adduser is a previledge command and a root only command (unless you allowed other users) and normally php will and should be running in a restricted access. normally it is running as user apache/user/nobody (depends on your settings) now there are two ways you can a

Re: [PHP] Quotes?

2006-09-05 Thread J R
On 9/6/06, Gustav Wiberg <[EMAIL PROTECTED]> wrote: I want to save this to a string... var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new String (Math.random()).substring (2, 11); docume

Re: [PHP] register globals on

2006-09-12 Thread J R
there are many ways you can keep information. now if you must really use global. you can still use global even if the server is set to global off by using $_GLOBAL or using globals decleration. example: $test = 'i'm global'; function f1() { echo $_GLOBAL['test']; // should display i'm global

Re: [PHP] register globals on

2006-09-12 Thread J R
correction: $GLOBALS not $_GLOBAL :) cheers On 9/12/06, J R <[EMAIL PROTECTED]> wrote: there are many ways you can keep information. now if you must really use global. you can still use global even if the server is set to global off by using $_GLOBAL or using globals decleration. e

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread J R
i'm just going to guess. check your settings if it allows to open external files, especifically allowed to fopen url. http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen hth, john On 9/13/06, R B <[EMAIL PROTECTED]> wrote: I think it's a security https problem. I was reading

Re: [PHP] Affiliate system

2006-09-13 Thread J R
use session. or you can store it in a database but that will take speed. :) using session is much better rather than using cookies for lots of reason (just google) specially if you are concered with security. just my 2cents. hth, john p.s. if the client cookies is disabled set to true the ses

Re: [PHP] newbie php tutorial question

2006-10-01 Thread J R
run this bit of code to check if everything is working. On 10/2/06, Stut <[EMAIL PROTECTED]> wrote: srdaniel wrote: > I setup Apache 2.2.3.0 and PHP 5.1.6.6. > > When I run this PHP file: > > > > > PHP Test > > > Hello World'; ?> > > > > > Any id

Re: [PHP] Hotmail and junk mail

2006-10-02 Thread J R
if i get you right. your email to hotmail goes to junk/spam mail? i think i encounter this way way back when our email domain got listed into spam emailer :D so better check if your domain is on that list. i forgot what was the URL. anyway just an idea. hth, John On 10/2/06, Stefan van der L

Re: [PHP] Apply the hyper link ( javascript functon ) with php

2006-10-08 Thread J R
echo ' Test '; On 10/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Dear All, How to apply the following function with php ? Test Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- GMail Rocks!!!

Re: [PHP] Month in a numeric form

2006-10-15 Thread J R
http://www.php.net/manual/en/function.strtotime.php http://www.php.net/manual/en/function.date.php On 10/16/06, Ron Piggott (PHP) <[EMAIL PROTECTED]> wrote: Is there a way I am able to use the DATE command to convert January to 1, February to 2, etc. -- GMail Rocks!!!

Re: [PHP] How do you do the ? mark after a filename

2006-11-12 Thread J R
using "click me in your php you can get its value by use of the $_GET variable. hth, john On 11/13/06, Thomas Bonham <[EMAIL PROTECTED]> wrote: Thank you for that, it was a big help. Can I also call function that way? Again thank you for your help. Thomas Tom Chubb wrote: > On 12/11/06, T

[PHP] Open Source applition for Job management.

2006-04-11 Thread J Rangi
Hello, I am looking for some open source job management application written in php and mysql. Where employers can post, edit and delete jobs, and job seekers can search jobs, save resume, apply on line, bookmark jobs etc. Having some kind of administration features will be nice, where Adminis

[PHP] Trouble sending data via TCP socket

2006-05-15 Thread J. King
on my colleague's machine) and all three gave me similar errors (with differing levels of spec compliance...). In short, I am stumped. If anyone with some experience in these matters could shed some light on my problem I would be most grateful. [1] <http://cjphp.netflint.ne

[PHP] mysql-* versus db-* statements

2006-06-26 Thread j . kuehne
Original Message Subject: Re: [PHP-DEV] mysql-* versus db_* statements (26-Jun-2006 9:21) From:[EMAIL PROTECTED] To: [EMAIL PROTECTED] Please user php-general@lists.php.net for such questions. Thank you. On 26.06.2006 11:10, [EMAIL PROTECTED] wrote: > require_once "DB

[PHP] mysql-* versus db_* statements

2006-06-26 Thread j . kuehne
Could someone explain the behaviour of the following code fragments. I have a serious problem with db-statements. ##

AW: [PHP] scalable web gallery

2008-07-10 Thread Andreas J.
>> in 1 year, there going to be more than 1000 photo uploaded or more. That isn’t really much. A directory can held much more than a few thousand files. They use more than one Server because 1 Server can't handle the load. The don’t do that because of limited File system. But the file system may

Re: [PHP] concatenating with "." or ","

2008-08-25 Thread Andreas J.
hi, here it is described in detail: http://blog.libssh2.org/index.php?/archives/28-How-long-is-a-piece-of-string.html Govinda schrieb: easy to find our about concatenating with "." in the docs... but not so with "," what is the difference? -- PHP General Mailing List (http://www.php.net/) To

[PHP] How to capture origional client machine _directory_ and file name on uploads?

2008-10-06 Thread J. Hill
This should be trivial, but apparently not -- or maybe I just need more caffeine. My searches have come up empty. I am trying to get not only the original file name on uploads, but also the original directory on the client machine as well. The purpose is for users who make a mistake on anothe

Re: [PHP] How to capture origional client machine _directory_ and file name on uploads?

2008-10-06 Thread J. Hill
tle to the mix. Thanks to all for the input. Jeff Nathan Rixham wrote: J. Hill wrote: This should be trivial, but apparently not -- or maybe I just need more caffeine. My searches have come up empty. I am trying to get not only the original file name on uploads, but also the original director

[PHP] Problems with strings being handled like numbers

2005-09-13 Thread J B
I suspect I'm far from the first person to have this problem, but I can't seem to find the right search terms to locate the solution. Basically, I'm doing a database query and dumping the results into an array. Then, later, when I try to display the contents of the array, I run into problems. O

Re: [PHP] Problems with strings being handled like numbers

2005-09-13 Thread J B
On 9/13/05, Chris <[EMAIL PROTECTED]> wrote: > > Are you sure you're getting the number as you need it from the query? > > PHP won't (though I guess there could be a bug) automatically convert a > numerical string into it's numerical equivalent. > > If the code you posted produces this problem,

Re: [PHP] Problems with strings being handled like numbers

2005-09-15 Thread J B
On 9/14/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > mssql_* and PHP "know" that the data is supposed to be "integer" > > But the largest integer that PHP can store is 0x. > > So when PHP tries to accept the "integer" from mssql_fetch_row, it's > got no room to store it as integer, and

Re: [PHP] Encoding or obfuscating tool

2005-09-18 Thread J B
On 9/18/05, Rory Browne <[EMAIL PROTECTED]> wrote: > Personally I would be more interested in hearing how you can justify > obfuscating code before delivering it to a client. For the same reasons that most commercial software houses that distribute compiled software in binary form don't include

Re: [PHP] Re: email validation (no regex)

2005-09-21 Thread J B
On 9/21/05, Michael Sims <[EMAIL PROTECTED]> wrote: > Additionally, some mail servers unconditionally accept mail addressed to ANY > username at their domain, whether that user actually exists or not. This is > very > bad practice, because it usually means the accepting MTA is a "dumb" host > th

[PHP] Invalid Charactors in a string.

2002-11-26 Thread Philip J. Newman
Where should i start, tips wanted. I would like to check a username string for valid charactors before the name is processed. Someone point me in the right direction please --- Philip J. Newman. Head Developer. PhilipNZ.com New Zealand Ltd. http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64

[PHP] Ping on Win32

2002-12-04 Thread Christopher J. Crane
I am trying to get a script to work. The basic idea is to go into a database and grab some IP addresses for my LAN. Then for each one ping it using the exec command 1 time. If it is successful print output in green and if it is not, print output in red. This is being done on a Win32 system. The pin

[PHP] Re: Ping on Win32

2002-12-04 Thread Christopher J. Crane
age = 78ms "Christopher J. Crane" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am trying to get a script to work. The basic idea is to go into a databas

<    1   2   3   4   5   6   7   8   9   10   >