[PHP] session objects crossing applications

2003-07-17 Thread Jason
I need help. I've got two copies of my application.foobar and foobar_dev When I go to http://foo.com/foobar/ a session is created and a database connection class is established and placed into this session. Then if within the same browser (using internet explorer) I go to http://foo.com/foo

[PHP] RE: Paying Job...

2002-07-26 Thread Jason
, and that its going to be something you can deliver. Since I have started working on my project I have gained 3 more contracts without even trying just by showing them this project. That and being able to say "I did this... ALL BY MYSELF!" is pretty cool. Jason L Cathcart BSc. Compu

[PHP] Determining if a variable is blank.

2002-08-21 Thread Jason
ly2 isn't set because it is blank. So I tried this: $reply2 = str_replace(" ","",$reply); if(empty($reply2) || !isset($reply2)){ // echo an error message } else{ // post the message. } I've tried different variations on this same idea, but somehow none of them are work

[PHP] multiple keywords in search boxes

2002-09-04 Thread Jason
Hi, What is the necessary code to return a recordset from a single text box with more than one keyword in it (like most search engines do)? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Weird problem with Windows XP and IE6

2002-09-18 Thread Jason
ome suggestions as to what the problem is. Jason Cathcart Check Out My Site: http://www.biohazardous.org

[PHP] RE: Weird problem with Windows XP and IE6

2002-09-18 Thread Jason
As an adendum to this... my initial thoughts are that the forms are not posting correctly in XP. I'm using the POST method. Jason Cathcart Check Out My Site: http://www.biohazardous.org -Original Message- From: Jason [mailto:[EMAIL PROTECTED]] Sent: September 18, 2002 7:

[PHP] Uploading Files

2002-10-04 Thread Jason
I would like to be able to upload files from the client computer to the server via a form. I know how to build the form, but am not sure of the best way to process this. I know there are certain ftp functions that can do this, which I'm not sure how to use. Are there any others? Ja

[PHP] Re: Uploading Files

2002-10-04 Thread Jason
code that I am using: Send this file: I am able to get rid of this error, but changing the line to: move_uploaded_file($_FILES['userfile']['tmp_name'], "../images/$_FILES[userfile][name]"); However, the file is then uploaded as Array[name] How

Re: [PHP] lynx and crontab

2002-10-15 Thread Jason
I have a tutorial for using lynx to monitor a firewall. http://frontiertech.ca/tutorial_web_page_monitor.php www.frontiertech.ca Free Open Source Software for Data Collection and Data Mining. *

[PHP] MySQL GMT --> Local time

2002-10-16 Thread Jason
returned from MySQL. What is the best way to do this. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL GMT --> Local time

2002-10-16 Thread Jason
To the server. On Thu, 17 Oct 2002, Smith, Benjamin wrote: > Local to the client or local to the server? > > -Original Message- > From: Jason [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 17 October 2002 3:26 PM > To: php_gen > Subject: [PHP] MySQL GMT -->

Re: [PHP] MySQL GMT --> Local time

2002-10-17 Thread Jason
d with standard or daylight savings time offsets is a problem. It gets more complicated when I want to return a distinct date record set from the timestamp column. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Windows XP Session Issues

2002-11-08 Thread Jason
ed by this, and thus people are unable to properly use some of the functionality. I was wondering if anyone else has encountered problems like this, and if so, how they managed to solve the issue. Jason Cathcart President - Acanthus Media Inc. BSc. Computer Information Systems 403.710

[PHP] simple?

2003-11-05 Thread Jason
e error in /var/www/html/site/directory/subdirectory/upload.php on line 68 in the upload.php file there are only 64 or so lines of code. HELP! Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] upload_tmp_dir has no value... could that be the problem?

2003-11-06 Thread Jason
All, Trying to run an upload script. Looks like the problems is in the "if (move_uploaded_file.." line also a look at the configuration of PHP4.1.2 shows "no value" for upload_tmp_dir Any hints? Jason -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Walking Through Mail Headers

2001-02-26 Thread Jason
this, or can point me where to start. I think the thing I'm caught up on is how I walk through the mail headers in the mail file (We are on FreeBSD). Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

[PHP] mySQL table joins are slow, need rebuild?

2001-02-27 Thread Jason
hi, i have a query that is comparing a table with 1235 rows with another that has 635 rows. The query looks like this: $res = mysql_query("select cust_info.ID, cust_info.first_name, cust_info.last_name, cust_info.address, cust_info.datestamp from cust_info, cust_order_info where cust_info.ID=cus

[PHP] Converting mySQL to PostgreSQL

2001-05-07 Thread Jason
Hi, I am in need a transfering an existing mySQL database to PostgreSQL. I have seen info on the converter. Before I get started I wanted to see info anyone has any insight or tips on converting these DBs (ie- is it problematic, inconsistent, etc). Thanks! John -- PHP General Mailing List (h

[PHP] Web Hosting That Supports PostgreSQL?

2001-05-11 Thread Jason
r the development of my site, not production, so that's why I'm looking at a cheap solution. Anyone have any recommendations? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

[PHP] Easily Making Post Vars Session Vars

2001-05-14 Thread Jason
Hi, I realize you cannot override session variables through GET or POST for security reasons. I have a complex multipage form that I would like to store in a session for insertion in the database when the last step is completed. The form field names are arrays, so they can be listed and inserted

RE: [PHP] Easily Making Post Vars Session Vars

2001-05-14 Thread Jason
ly Making Post Vars Session Vars > > > This isn't quite what you are asking, but maybe it will be of > help. Use the > loop below to create and assign GLOBAL versions of the $HTTP_POST_VARS:; > > reset($HTTP_POST_VARS); > while(list($key, $val) = each($HTTP_POST_VARS))

[PHP] PLEASE --> Compiling an extension for PHP module (pgsql.so --> missing libpq.so.2)

2001-05-20 Thread Jason
Hi, I'm trying to compile an extension for Postgre support which I will either load in the php.ini or use the dl() function. Both methods fail right now. The dl() function gives me verbose though. I compiled the module like this: ./configure --with-apache=/usr/local/Apache/apache_13 --with-pgs

[PHP] Trimming 2 Characters from the end of a string?

2001-05-20 Thread Jason
Hi, What would be the syntax to trim 2 characters off of a given string? Thanks! -- 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] Unlucky Situation Involving CURL

2002-04-25 Thread Jason
ll do is send an XML file to UPS, to get shipping rates which are returned as an XML file from UPS. The script has to sit and wait for an answer from the UPS servers. Does anybody know of a way of doing this without using CURL? Jason Cathcart

[PHP] PHP and MySQL queries

2001-10-23 Thread Jason
m pretty sure I have exhausted my resources. "Jason" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > I am having a hard time setting up a form for users to enter a date in the > format of 00/00/ (of course they would use an actual d

[PHP] Using php to verify fields in form...

2001-10-29 Thread Jason
fields before running the php script to pass the info to a database. I have used java-script for this function in the past but would like to use php. Anyone know how i can accomplish this? Thanks in advance, Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] PHP to MySQL and Date field

2001-10-30 Thread Jason
Here is my problem once again... =P I am wondering if I should change the date table to something other than date... maybe something like date_1? Would doing that resolve my issue, because of the fact that the date variable in php is function? Thanks in advance... Jason /* Form to supply

[PHP] Verisign Payflow Pro? Freebsd... Any ideas?

2001-11-29 Thread Jason
Hi, I'm trying to get payflow pro working on my server (unfortunately a client took it upon themselves to get their gateway). I am on a freebsd box and I am having all sorts of problems getting this working. Either as an extension (pfpro.so) or just exec() externally. I've read that Verisign st

Re: [PHP] Re: Help with directory !

2001-11-30 Thread Jason
$loc = "doos.txt"; $loc = "files\doos.txt"; don't put .\ to reference the current directory. if you were trying to move up a directory to access 'files' then $loc= "..\files\doors.txt". Just a thought, I've coded something for a windows box once, and remember it was finicky about stuff. but then

Re: [PHP] HTTP_POST_VARS truncated

2001-11-30 Thread Jason
try: reset($HTTP_POST_VARS); at the begining of the code. if that doesn't work verify your html again. make sure the 's are between the form tag. php doesn't ignore certain form fields. =) i'm the habit of reading arrays like... while(list($k,$v) = each($HTTP_POST_VARS)) { echo "key is $k -

Re: [PHP] Help - mail

2001-11-30 Thread Jason
http://download.php.net/manual/en/ref.mail.php - Original Message - From: "Chamarty Prasanna Kumar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 1:28 AM Subject: [PHP] Help - mail > > Hi all, > > using mail() function to send a mail using php. >

Re: [PHP] Sending Form Result to File

2001-11-30 Thread Jason
just pico a file called myforms.csv or something. use the first line for you schema... "name","date","comments","etc" chmod the file to rw permissions or chown to nobody. $file = fopen("/home/myaccnt/public_html/protected/myforms.csv", "w"); fputs($file, "\n\"$form_name\",\"$form_date\",\"$form_

[PHP] payflow pro advice

2001-11-30 Thread Jason
Hi, I'm trying to get payflow pro working on my server (unfortunately a client took it upon themselves to get their gateway). I am on a freebsd box and I am having all sorts of problems getting this working. Either as an extension (pfpro.so) or just exec() externally. I've read that Verisign st

[PHP] Slick Time Zone Coversions

2001-06-20 Thread Jason
Hey,   I wanted to see if anybody has a some ideas or code for a good time zone coversion function.   Basically, I would like something where the user can input their timezone (or if php doesn't recognize timezones, maybe just the current time for them, and it can caluculate the difference,

RE: [PHP] Mixing PHP with a FAX Gateway? HELP!!! IDEAS???

2001-08-23 Thread Jason
Hey, If anyone has any better solutions too, let me know, I'm open to anything. > -Original Message- > From: Fotwun [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 23, 2001 5:32 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Mixing PHP with a FAX Gateway? HELP!!! IDEAS??? > > > > > He

[PHP] Named anchors, POST failure

2004-07-29 Thread Jason
or http://www.domain.com/index.php?mode=view&id=100#comments Using Mozilla Firefox .08, .09, Netscape 5+, and Mozilla 1.7 this will show a blank page. If I use IE, I notice a longer pause since adding the named anchor, but it will still work. Any ideas about PHP having issues passing a named anchor? Thank

Re: [PHP] Named anchors, POST failure

2004-07-29 Thread Jason
ert_id(); // Redirect back to comments page // echo"window.location.href='index.php?mode=view&id=$id&#comments';"; break; [/code] - Jason Jay Blanchard wrote: [snip] I have a form that post some data to a DB. After the post, I send it back to another page with a named a

Re: [PHP] CLI in background on windows

2008-12-19 Thread Jason
At 16:49 18/12/2008, you wrote: Hi, I am looking for some method, how to run php cli script on background in windows. It should be started by windows task manager. Run php-win.exe rather than php.exe, this will prevent the console window from opening whilst the task is running. Schedule as n

RE: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Jason
>-Original Message- >From: Bob McConnell [mailto:r...@cbord.com] >Sent: 09 July 2009 15:38 >To: php-general@lists.php.net >Subject: RE: [PHP] Obeying the rules (was Simple login form with cookies) > [snip] > >Bob McConnell > >A: Maybe because some people are too annoyed by top-posting. >Q:

RE: [PHP] Taking body of an email and storing it in MySQL database

2009-09-07 Thread Jason
>-Original Message- >From: Dave M G [mailto:mar...@autotelic.com] >Sent: 07 September 2009 14:26 >To: Richard Heyes >Cc: php-general@lists.php.net >Subject: Re: [PHP] Taking body of an email and storing it in MySQL database > >Richard, > >Thank you for responding. > >> Sounds like you may

RE: [PHP] Self-Process php forms or not?

2009-10-01 Thread Jason
I've used the form page with a the following code (at the bottom - but before any output is done) to redirect to a thank you page: if ($submittedcorrectly) { header("Location: thankyou.htm"); exit(); } HTH J -Original Message- From: MEM [mailto:tal...@gmail.com] Sent: 01 October 20

RE: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Jason
Hi, That's because %m is month, what you need is %M for minute (note uppercase). Check out http://php.net/strftime HTH J -Original Message- From: Matthias Laug [mailto:matthias.l...@gmail.com] Sent: 06 October 2009 08:53 To: php-general@lists.php.net Subject: [PHP] Time Problem: alway

RE: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Jason
m.tr] Sent: 06 October 2009 09:07 To: 'Jason'; 'Matthias Laug'; php-general@lists.php.net Subject: RE: [PHP] Time Problem: always ten past xx Jason, %M is also month: Month --- --- F A full textual representation of a month, such as January or March January through December

RE: [PHP] Create a screenshot of a website

2009-10-22 Thread Jason
-Original Message- From: resea soul [mailto:reseas...@gmail.com] Sent: 22 October 2009 14:28 To: php-general@lists.php.net Subject: [PHP] Create a screenshot of a website Hi, I want to be able to get a screenshot of a given website on the fly. Can you give me any suggestions. Thank you

RE: [PHP] Create a screenshot of a website

2009-10-22 Thread Jason
-Original Message- From: Andrea Giammarchi [mailto:an_...@hotmail.com] Sent: 22 October 2009 16:34 To: networkad...@emarket2.com; php-general@lists.php.net Subject: RE: [PHP] Create a screenshot of a website > Hi, > > If a windows web server is being used, we've had very good results w

RE: [PHP] Can I get the IP address from a visitor?

2009-12-01 Thread Jason
That would be in one of the $_SERVER[] variables. Look here for more info: http://uk.php.net/manual/en/reserved.variables.server.php HTH J -Original Message- From: Lars Kristiansson [mailto:la...@naturbilden.se] Sent: 30 November 2009 23:47 To: php-general@lists.php.net Subject: [PHP] C

RE: [PHP] Math Question....

2010-04-22 Thread Jason
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 22 April 2010 15:13 To: Dan Joseph Cc: PHP eMail List Subject: Re: [PHP] Math Question On Thu, 2010-04-22 at 10:17 -0400, Dan Joseph wrote: > On Thu, Apr 22, 2010 at 10:12 AM, Stephen wrote: > > > 1,2

RE: [PHP] Domain Controller Discovery in PHP

2010-09-27 Thread Jason
d return one or more records in the answer, each one will be the FQDN of a domain controller. Additional info from the horses mouth: http://support.microsoft.com/kb/247811 HTH Jason -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: 27 September 2010 16:05

RE: [PHP] Domain Controller Discovery in PHP

2010-09-28 Thread Jason
-Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: 27 September 2010 19:38 To: Jason Cc: 'PHP General' Subject: Re: [PHP] Domain Controller Discovery in PHP On 10-09-27 11:26 AM, Jason wrote: > Hi Rob, > > I believe you should be able to d

RE: Fw: [PHP] Connecting to MySql with PHP

2010-10-05 Thread Jason
>-Original Message- >From: Steve Staples [mailto:sstap...@mnsi.net] >Sent: 05 October 2010 13:55 >To: php-general >Subject: Re: Fw: [PHP] Connecting to MySql with PHP > >On Tue, 2010-10-05 at 13:35 +0100, sueandant wrote: >> - Original Message - >> From: sueandant >> To: a...@ash

RE: [PHP] Re: "My truth comes out" [1]

2010-10-21 Thread Jason
>-Original Message- >From: Gary [mailto:php-gene...@garydjones.name] >Sent: 21 October 2010 11:39 >To: php-general@lists.php.net >Subject: [PHP] Re: "My truth comes out" [1] > >Russell Dias wrote: > > preg_match("/false/i", $string) ? false : true; > >, >| $foo = (strcmp('true', $strin

RE: [PHP] What do you get for ...

2011-06-07 Thread Jason
>-Original Message- >From: Richard Quadling [mailto:rquadl...@gmail.com] >Sent: 07 June 2011 11:35 >To: PHP General list >Subject: [PHP] What do you get for ... > >Hi. > >What do you get for ... > >php -r "var_dump(realpath(null));" > >I'm wondering if the result should be a boolean false.

[PHP] Little Help Needed

2005-04-05 Thread Jason
Could someone tell me what I did wrong with this script. It should read the page http://www.mto.gov.on.ca/english/traveller/conditions/rdclosure.htm and only read between the 2 words in the script. And email any new stuff to the email address in the script. What did I do wrong that is causi

Re: [PHP] isodd() php5?

2007-10-30 Thread Jason
At 09:32 30/10/2007, Hulf wrote: Hi, Is there a built in function in PHP5 to determine if an integer is even or odd? How about : if ($IntegerValue % 2) { // odd } else { // even } HTH J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] help needed building php_dblib for PHP 5.2.5 on windows

2008-04-02 Thread Jason
) : error C2099: initializer is not a constant NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2' Help!, Anyone? TIA Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A very strange loop!

2007-07-09 Thread Jason
Because you need $i<= 'Z' to get Z included as well. J At 08:49 09/07/2007, Xell Zhang wrote: Hello all, I met a very strange problem today. Take a look at the codes below: for ($i = 'A'; $i < 'Z'; $i++) { echo $i . ' '; } If you think the output is A-Z, please run it on your server and try. W

Re: [PHP] Why PHP4?

2008-08-05 Thread Jason
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 n3or wrote: > Compatibility to older Software of the hosters and sloth of the developers > > Richard Heyes schrieb: >> I'm interested - why are people still using PHP4? It's been over 4 >> years (I think) - plenty of time to upgrade to five. Don't lu

Re: [PHP] Re: PHP on 64bit Ubuntu

2008-09-03 Thread Jason
... It's a quarter of the size... Ah, the old "2 metres square" != "two square metres" trick :) Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and SQL Server

2008-09-23 Thread Jason
At 15:05 23/09/2008, you wrote: [snip] So, I'm left wondering what that leaves. Is there anything currently available that could be considered stable for a production environment, supports parameterized queries and is not slated to be mothballed in the near future? Have you considered the MS

Re: [PHP] PHP and SQL Server

2008-09-23 Thread Jason
At 15:49 23/09/2008, you wrote: On Tue, Sep 23, 2008 at 10:17 AM, Jason <[EMAIL PROTECTED]> wrote: > At 15:05 23/09/2008, you wrote: > > [snip] > >> So, I'm left wondering what that leaves. Is there anything currently >> available that could be considered sta

Re: [PHP] PHP and SQL Server

2008-09-23 Thread Jason
em like maybe I need to brush up on .NET. :-/ COM is fun - you'll need a wrapper class to identify column types and cast them to PHP though, otherwise datetime columns and stuff get funny (well, they did here). Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mail Delivery (failure php-general@lists.php.net)

2004-03-29 Thread jason
If the message will not displayed automatically, follow the link to read the delivered message. Received message is available at: www.lists.php.net/inbox/php-general/read.php?sessionid-27800  

[PHP] Question on functions

2004-11-10 Thread Jason
=> "username", "2" => "password" ); function database() { $dbase = mysql_pconnect( $array[0], $array[1], $array[2] )or die( mysql_error()); if( connection_status() != 1 ) { echo "connection failed"; } } call_user_func( "database" );

Re: [PHP] Question on functions

2004-11-10 Thread Jason
It will save you time when your application grows and starts clashing with other global variables or third party pieces of code ;-) Jason Gerfen wrote: John Holmes wrote: Jason wrote: My question is in regard to passing global variables to a function. Here is my code, any idea why it is not working?

Re: [PHP] Question on functions

2004-11-10 Thread Jason
x27;t gotten me anywhere... Sebastian Mendel wrote: Jason wrote: Could you give me a good example of the tip you recommend or point me to a good tutorial on it? $GLOBALS holds all variables defined in main(), main() meaning outside any function or class //main() $my_var = 'test'; func

Re: [PHP] Question on functions

2004-11-10 Thread Jason
Greg Donald wrote: On Wed, 10 Nov 2004 10:10:37 -0700, Jason <[EMAIL PROTECTED]> wrote: Yeah the global stuff I understand and can use fine. What I would like more information about is the use of arguments to functions i.e. function( $user, $pass, $db ) { $db = @mysql_connect( $user, $pas

Re: [PHP] Question on functions

2004-11-11 Thread Jason
Sorry, yeah it is a typo Sebastian Mendel wrote: Jason wrote: Looks like you understand already. Did you have some broken code you wanted help with? yeah.. I should have posted it first. Here it is: /* User Defined Variables */ $defined = array( "0" =&g

Re: [PHP] Question on functions

2004-11-11 Thread Jason
Sebastian Mendel wrote: Jason wrote: Looks like you understand already. Did you have some broken code you wanted help with? yeah.. I should have posted it first. Here it is: /* User Defined Variables */ $defined = array( "0" => "localhost",

[PHP] Re: How do I su to another account??

2004-11-11 Thread Jason
#x27;m doing it all wrong in PHP script or that the nobody doesn't have the authority to do so. Have anyone who ever successfully do it please post a sample script? Thanks, Scott -- Jason Gerfen [EMAIL PROTECTED] "And remember... If the ladies don't find you handsome, they

Re: [PHP] Question on functions

2004-11-11 Thread Jason
USER_ERROR); return false; } $pagecount = "1"; $tble = "logs"; $sql = @mysql_query( "SELECT * FROM ...", $db ) or die( "problem..." ); // your stuff... } function logsOnOtherMachine($db) { ... } And if you would be really trying to dig in... hav

Re: [PHP] calling function from function?

2004-11-11 Thread Jason
GENT]\", page=CONCAT(page,\".:||:.$_SERVER[PHP_SELF]\"), pagecount=\"$pagecount\", message=\"$_SESSION[msg]\", session=\"$_SESSION[hash]\" WHERE session=\"$id\"", $db )or die( "Error occured while updating logs for $_SESSION[hash]Error Message:

Re: [PHP] calling function from function?

2004-11-11 Thread Jason
I hate posting all of that code, but for Greg's question... it does give me the correct array data. Jason wrote: Rick Fletcher wrote: function db( $host, $user, $pass, $dbnam ) { $db = @mysql_pconnect( $host, $user, $pass )or die( mysql_error( $db )); @mysql_select_db( $dbnam )o

Re: [PHP] calling function from function?

2004-11-11 Thread Jason
Greg Donald wrote: On Thu, 11 Nov 2004 12:42:44 -0700, Jason <[EMAIL PROTECTED]> wrote: There isnt an error at all. How could there be an error? You're using @ to suppress nearly every mysql function call. Makes it kind of hard to debug that way. yep, you are right... I removed the

Re: [PHP] calling function from function?

2004-11-11 Thread Jason
to assign it. add a "$db = " to the beginning of that line and you should be good to go. --Rick dang, thanks dude I knew it was something simple like that. just goes to show you how over analyzed things are. lol. thanks again. -- Jason Gerfen [EMAIL PROTECTED] "And remembe

[PHP] calling function from function?

2004-11-11 Thread Jason
] ); ... do some processing ... } what am i missing here? i get errors if i try to pass $db to logs. i.e. logs( $db ); -- Jason Gerfen [EMAIL PROTECTED] "And remember... If the ladies don't find you handsome, they should at least find you handy..." ~The Red Green show -- PHP

[PHP] regular expression help

2005-01-21 Thread Jason
mac submitted is invalid check & fix if necessary if( chk_mac( $mac1 ) != 0 ) { $mac = fix_mac( $mac1 ); echo $mac1 . " converted to " . $mac . ""; } if( chk_mac( $mac2 ) != 0 ) { $mac = fix_mac( $mac2 ); echo $mac2 . " converted to " . $mac . ""; } if( ch

[PHP] Re: regular expression help

2005-01-21 Thread Jason
Jason wrote: Simple functions to check & fix if necessary invalid formating of a MAC address... I seem to be having problems with the global variable $mac not being returned from the fix_mac() function. Any help is appreciated. global $mac; if( eregi( "^[0-9A-Fa-f]{2}\:[0-9A-Fa-

[PHP] Re: regular expression help

2005-01-21 Thread Jason
You were right, I removed the reference to global $mac and it started working great. Thanks. It seems sometimes another set of eyes to catch stuff really helps... thanks. Jason wrote: Jason wrote: Simple functions to check & fix if necessary invalid formating of a MAC address... I seem t

[PHP] Information

2005-02-04 Thread jason
Important document! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session problems

2005-07-12 Thread Jason
ariables aren't found in the old session and a new one is being created on the server. -- Jason G. "In my opinion anyone interested in improving themselves should not rule out becoming pure energy." ~Jack Handley, The New Mexican, 1988. -- PHP General Mailing List (http:

[PHP] Re: Session problems [SOLVED]

2005-07-13 Thread Jason
fine after a restart of the webserver. Hope this helps someone else. Jason wrote: > I am having a problem with sessions. For some reason it keeps creating > a new session for every page link you click and not using the original > session created when session_start() gets called. Below is t

[PHP] compiling php to use imagettftext

2005-11-15 Thread Jason
=/local/stuff --with-curl --with-imap=/local/jason/imap-2002d --with-config-file-path=/local/apache/libexec --enable-bcmath --enable-calendar --with-zlib --with-dom --with-db4=/local/stuff --with-dba --with-gettext --with-iconv --with-mcrypt=/local/stuff --with-openssl=/local/stuff --with-mcal

Re: [PHP] compiling php to use imagettftext

2005-11-15 Thread Jason
seems like as soon as I post to the list, I end up figgereing it out.. anyway, heres what ended up working. ./configure -v --with-oci8=/apps/oracle --with-apxs=/local/apache-1333/bin/apxs --with-gd=/local/stuff --with-mysql=/local/stuff --with-curl --with-imap=/local/jason/imap-2002d --with

Re: [PHP] Re: [Off] Cheap SSL certificates?

2006-02-03 Thread jason
> Problem is when you have cheap ssl certs they might pop up in browser on > visit, when they are not in the browser cert list though. > > I just know verisign, and truesign. but kinda expensive > -- > Smileys rule (cX.x)C --o(^_^o) > Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) I use GoDaddy pe

Re: [PHP] FULLTEXT: It worked?? Why?

2002-11-24 Thread Jason Wong
,AU,ST,SD,SC,BT,BD,BC,AT,AD,AC) > ) TYPE=MyISAM COMMENT='CCL Bibliography - Bibliographie ECC'; This has nowt to do with PHP, please ask on the MySQL list. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hos

Re: [PHP] Re: security of stand alone script

2002-11-24 Thread Jason Wong
On Monday 25 November 2002 02:10, gamin wrote: > i guess i can use $remote_addr to see if the user has an IP. > > But still out of curosity - any way of knowing the user that called the > script ? Use phpinfo(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Op

Re: [PHP] Stripslashes through an array.........

2002-11-24 Thread Jason Wong
> //-->< something here would be nice > } Usually, it's not necessary to use stripslashes() on data retrieved from a db. But if you insist ... foreach ($data as $key => $value) { $data[$key] = stripslashes($value); } ... should work. -- Jason Wong -> Gremlins

Re: [PHP] Secureing PHP.

2002-11-24 Thread Jason Wong
explain ina little more detail? If there are tutorials on this type of stuff then google would know -- just go and ask it nicely. And of course there's always the chapter in the manual which deals with "Security", some good stuff there. -- Jason Wong -> Gremlins Associate

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Jason Wong
it's best answered with five minutes on the PC, than a msg to the list ... ad infinitum -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Who's on fi

Re: [PHP] Passing Variables

2002-11-24 Thread Jason Wong
good code from a reliable source with the same results. Any idea > on this. It happens on multiple systems. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

[PHP] Re: image generation with PHP

2002-11-24 Thread Jason Young
Hope this helps! -Jason Myrage wrote: is it possible to generate images with texts automatically?? like for eg. if the text is 7555 then automatically an image is generated with the text 7555 in it any help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: image generation with PHP

2002-11-24 Thread Jason Young
You'll need the full PHP package (the 5 MB zip file, not the 400k quickie) .. it'll be in the extensions/ directory of there.. php_gd.dll.. Myrage wrote: i am using windows and I cannot seem to find the necessary libs and dlls "Jason Young" wrote in message [EMAIL PRO

Re: [PHP] FULLTEXT: It worked?? Why?

2002-11-24 Thread Jason Wong
On Monday 25 November 2002 13:33, John Taylor-Johnston wrote: > Sorry Jason ... No offense, Don't apologise to me. Apologise to the list members if you have to. > I learned my MySQL here :) Jolly good. > It's for a PHP > script, after all. And what has this got to do

Re: [PHP] Re: BBCode?

2002-11-24 Thread Jason Wong
On Monday 25 November 2002 14:20, Kyle Gibson wrote: > Leif K-Brooks wrote: > > I'm working on adding simple BBCode to my site. I'm currently using the > > [i] tag for testing, with the following code: > > > > > function bbcode($text){ > > $text = ereg_replace('\\[i\\](.{1,})\\[/i\\]','\\1',$text

[PHP] Re: image generation with PHP

2002-11-24 Thread Jason Young
Did you tell php.ini to load this extension, and then restart your webserver? (I am taking it that you're using IIS or PWS? -- Someone else will have to field the question on whether or not GD/PHP works with this.. I would imagine so, but I am not sure enough to put any money on it :) ) Myrage

Re: [PHP] Dumb POST Array question

2002-11-25 Thread Jason Wong
doubt, print it out (TM): print_r($_POST); The best way to do it (IMHO) is to: foreach ($_POST['Consultants'] as $key => value) { print "$key: $value"; } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrat

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread Jason Wong
ch requires (to my horror) Register_Globals=On. > > Short of two Apache/PHP servers, what is a logical way to structure things > so that the 'wiki' runs 'insecure' but other/'my' PHP work runs more > securely? Set it on a per directory basis. If using Apache som

Re: [PHP] PHP.net spam protection

2002-11-25 Thread Jason Wong
by something called ezmlm. It is something that runs in conjunction with qmail. Google for more details. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I h

Re: [PHP] Re: BBCode?

2002-11-25 Thread Jason Wong
in a single operation: $text = '[i]This[/i] is a [i]test[/i].'; $search_for_tags = array("/\[i\]/", "/\[\/i\]/"); $replace_with_tags = array("", ""); $text = preg_replace($search_for_tags, $replace_with_tags, $text); print $text; -- Jas

Re: [PHP] imagecopyresized

2002-11-25 Thread Jason Wong
sponse if you actually copy and paste the error message or whatever. If that's not possible at least give a brief description as to what the problem is. Having to make people go through extra steps to help you is not a very good idea. -- Jason Wong -> Gremlins Associates -> w

  1   2   3   4   5   6   7   8   9   10   >