Search found 27 matches

by rodrigocaldeira
Wed Apr 02, 2003 1:12 pm
Forum: Miscellaneous
Topic: .SO or .DLL files
Replies: 3
Views: 2664

Hi,

I saw the PHP source code, and there is a ext_skel file. This file creates a skeleton of a PHP extension. So, my problem is now how to create a PHP extension from the skeleton, but to do this I need to learn C.


Thanks
by rodrigocaldeira
Tue Mar 25, 2003 11:12 am
Forum: Miscellaneous
Topic: .SO or .DLL files
Replies: 3
Views: 2664

.SO or .DLL files

Hi everyone,


how can I to make a .SO or .DLL file from a .PHP file? Is it possible?


Thanks!!
by rodrigocaldeira
Mon Mar 24, 2003 2:21 pm
Forum: PHP - Code
Topic: SELECT field in a HTML form
Replies: 3
Views: 414

I solve it yet!


I create a function that change the field's name to cboProduto[] in submit moment
by rodrigocaldeira
Mon Mar 24, 2003 1:47 pm
Forum: PHP - Code
Topic: SELECT field in a HTML form
Replies: 3
Views: 414

SELECT field in a HTML form

Hi everyone, I have a form that contains a SELECT field named chkProduto2 with the "multiple" option enabled. How could PHP read the selected options in this field? Note.: I cant rename my field to "chkProduto2[]" because my Javascript validation will not work correctly. Cheers R...
by rodrigocaldeira
Fri Mar 21, 2003 6:39 am
Forum: PHP - Code
Topic: trying to include an array into the body of an email
Replies: 1
Views: 451

You are using $i 2 times in your for statement.

Try to use a $i variable in the external for, and a $j variable in the internal for.
by rodrigocaldeira
Wed Mar 19, 2003 7:39 am
Forum: PHP - Code
Topic: PHP and Excel
Replies: 6
Views: 1274

Hi,

I tried and I got it!!

It's working perferctly!!!!


Thanks
by rodrigocaldeira
Tue Mar 18, 2003 1:26 pm
Forum: PHP - Code
Topic: problem with $REMOTE_ADDR
Replies: 2
Views: 438

use $_SERVER['REMOTE_ADDR']
by rodrigocaldeira
Tue Mar 18, 2003 10:01 am
Forum: PHP - Code
Topic: PHP and Excel
Replies: 6
Views: 1274

Yes, I see this today, but now Ihave another question.
I create a file.csv and how can I start the download of this file?

I ask this because I create the file and I put the location on my php file pointing to file.csv, but the file content is shown. How could I solve this?


Thanks!
by rodrigocaldeira
Mon Mar 17, 2003 2:25 pm
Forum: PHP - Code
Topic: PHP and Excel
Replies: 6
Views: 1274

PHP and Excel

Hi anyone!

How can I use PHP to read MS Excel files, without using COM module??

Cheers!

Rodrigo Caldeira
by rodrigocaldeira
Mon Mar 10, 2003 12:10 pm
Forum: PHP - Code
Topic: Inserting records into a table
Replies: 7
Views: 772

<?php if (isset($HTTP_POST_VARS ["TOPIC_ID"])) { $TOPIC_ID=(int)$HTTP_POST_VARS ["TOPIC_ID"]; $q=mysql_query("select * from topic where TOPIC_ID=$TOPIC_ID"); if (!mysql_num_rows($q)) $TOPIC_ID=0; } else { $TOPIC_ID=0 <--------------------------------- Why?????? } ?> Or...
by rodrigocaldeira
Mon Mar 10, 2003 7:31 am
Forum: PHP - Code
Topic: 1 table on 2 different domains for users
Replies: 4
Views: 667

I suggest you to alter your script to register all user (so site a as site b) into the same table.
by rodrigocaldeira
Mon Mar 10, 2003 6:32 am
Forum: PHP - Code
Topic: dragging and dropping objects in PHP
Replies: 4
Views: 581

You can use PHP-GTK, but only to client-side programming.
by rodrigocaldeira
Fri Mar 07, 2003 6:39 pm
Forum: PHP - Code
Topic: Special SQL command?
Replies: 1
Views: 673

Just an idea... <?php $tables = "show tables" $result = mysql_query($tables,$connection); $num = mysql_num_rows($result) $i = 0; while ($i < $num) { if (strpos(mysql_result($result,$i),"_site") !== FALSE) { mysql_query("delete * from " . mysql_result($result,$i) ); } $i...
by rodrigocaldeira
Fri Mar 07, 2003 10:42 am
Forum: PHP - Code
Topic: File Uploading Script
Replies: 6
Views: 735

Se the code: <form method=post action="yourfile.php" enctype="multipart/form-data"> <input type="file" name="userfile"> <input type="submit" value="UpLoad"> This is the HTML form In yourfile.php you can read your file data, as type, size an...
by rodrigocaldeira
Fri Mar 07, 2003 8:19 am
Forum: PHP - Code
Topic: PHP and SMS
Replies: 0
Views: 417

PHP and SMS

Hi,

there is some function or a script that sends messages to a SMS system?

Thanks