Search found 58 matches

by jramaro
Fri Jan 18, 2008 3:56 pm
Forum: PHP - Security
Topic: PHPSESSID
Replies: 1
Views: 628

PHPSESSID

I have site pages as (example) index.php , aboutus.php Today when checking in on the site, Im seeing something that shouldn't be there . now it has a PHPSESSID string which I never put there. so now every page from the index.php looks something like: aboutus.php?PHPSESSID=43634dhdhasjdhdsd This is h...
by jramaro
Thu Nov 15, 2007 2:26 pm
Forum: PHP - Code
Topic: safe to show PHP info - phpinfo () ?
Replies: 5
Views: 584

ah, Thanks

I think i will ask him what he needs to see specifically then
and then I'll let ya know what it is.

Thank You
by jramaro
Thu Nov 15, 2007 8:42 am
Forum: PHP - Code
Topic: safe to show PHP info - phpinfo () ?
Replies: 5
Views: 584

safe to show PHP info - phpinfo () ?

Hi,
Im talkin to a outside coder guy about writing some GNuPG code to interact with PHP mail forms.
He wants to see a copy of phpinfo ()

Is there anything in that display that could be used malicious?

Anything you wouldn't want outside sources to see?

Thank You
by jramaro
Mon Nov 05, 2007 1:59 pm
Forum: PHP - Code
Topic: Inserting record to already existing table column problems
Replies: 2
Views: 971

Inserting record to already existing table column problems

Hi, I'm using a Mysql database and came across something. I can insert and select records etc from database with PHP, but i came across this new problem when making a script. the scenario is = I have a database and table with fields like say record_id | first_name | last_name | email | comments | da...
by jramaro
Thu Oct 25, 2007 9:03 am
Forum: PHP - Code
Topic: make a PHP script to Import files ?
Replies: 7
Views: 1636

thanks! but i will need to make them broken into variables like $name, $address, $city, $state, $zip_code. because i will be reading a file like the one you posted , and then inserting it into a database and the database will be set up similar with record_id | name | address | city | state | zip_cod...
by jramaro
Thu Oct 25, 2007 7:43 am
Forum: PHP - Code
Topic: make a PHP script to Import files ?
Replies: 7
Views: 1636

Hi I wasnt ignoring it , i was experimenting with what i do know and found that was grabbing records. if you believe the other is better i'd like to check it out . I read about it on PHP.net I understand the logic of it being able to read lines , even give back a count on the number of lines in CSV ...
by jramaro
Wed Oct 24, 2007 2:09 pm
Forum: PHP - Code
Topic: make a PHP script to Import files ?
Replies: 7
Views: 1636

I think i found a good way to do this. But have a question on the next step Here's the part thats working $data = " Tom Smith, Somethin Sea Dr, Someplace City, CA, 91226, (222) 555-55555, "; list($name, $address, $city, $state, $zip_code, $phone) = explode(",", $data); echo $name...
by jramaro
Wed Oct 24, 2007 1:34 pm
Forum: PHP - Code
Topic: make a PHP script to Import files ?
Replies: 7
Views: 1636

make a PHP script to Import files ?

Hi, Im tyring to come up with a solution for this Say I have an address list like this: Mr Tom Smith, 555 Somethin Sea Dr, CA, 91207, (222) 555-55555 with over 5,000 data blocks like that. and if i want to have PHP import this data to database. in database fields as: record_id | name | address | cit...
by jramaro
Mon Oct 22, 2007 1:48 pm
Forum: PHP - Code
Topic: delete SQL data .. expiration date?
Replies: 6
Views: 840

database type: MySQL database I posted this in PHP code, because i didnt know if the command for expiration has to start with PHP on the insert SQL? --- That snip by Jcart seems to look like what I'm tryin to find. on DATE_SUB .. should this be a column name , or a command in SQL similar to TIMESTAM...
by jramaro
Mon Oct 22, 2007 1:20 pm
Forum: PHP - Code
Topic: delete SQL data .. expiration date?
Replies: 6
Views: 840

That code snippet looks like a a command made from a webpage/ script

will that work for data already in a database?
because i want the data in a database to expire automatically after two hours.
Without having to make any query to it manually.


Thank you
by jramaro
Mon Oct 22, 2007 11:09 am
Forum: PHP - Code
Topic: delete SQL data .. expiration date?
Replies: 6
Views: 840

delete SQL data .. expiration date?

Hi
i would like to delete SQL data after two hours.
I've not done that before , so im wondering how this works in the database.
I currently have TIMESTAMP as a database field.

Thank you
by jramaro
Wed Oct 03, 2007 3:28 pm
Forum: PHP - Code
Topic: what to do - an array or ?
Replies: 15
Views: 995

lol no sorry not a seperate database table for every order . I mean each 'row' has a seperate order stored to it in the cart . Well that fixed er. :) I didnt use the echo $message; because that echoed it out onto my order success page . i just made the custom mail as variables to be output with the ...
by jramaro
Tue Oct 02, 2007 7:53 am
Forum: PHP - Code
Topic: what to do - an array or ?
Replies: 15
Views: 995

I understand concatenating, i just dont understand how to apply it to this scenario. if I will have an unknown number of information tables to concatenate. do you mean something as far as echo $message = " some line of info" ; echo $message .= "some more info" ; echo $message .= ...
by jramaro
Mon Oct 01, 2007 10:06 am
Forum: PHP - Code
Topic: what to do - an array or ?
Replies: 15
Views: 995

So when i have all the formatting set up with echo "Product Name: " . $product_name . "\r\n" ; echo "Quantity: " . $quantity . "\r\n" ; echo "Subtotal: " . $subtotal . "\r\n" ; echo "Shipping Charges: " $shipping_charges . "\...
by jramaro
Mon Oct 01, 2007 9:51 am
Forum: PHP - Code
Topic: what to do - an array or ?
Replies: 15
Views: 995

The data is in tables , but the problem im having is that the data will be unknown as to how many tables. because the user can input as much information as they want , it gets put into tables and the nwill be output by email at the end. Im able to query the tables based on the users 'user_id' , but ...