[PHP] FTP Copy

2006-09-19 Thread Matt Palermo
I've been looking on php.net, but can't find anything that covers this... Basically, I am using PHP FTP to connect to an FTP server and run some functions. I want to copy a directory on the FTP server to another directory on the FTP server. Since there isn't an ftp_copy() function, I have to

[PHP] Execute command line as a different user

2008-07-01 Thread Matt palermo
My PHP is running as a user with limited rights. I'd like to execute a command line as a different user. I'm trying to delete a file and the PHP user doesn't have access to do this. I know the username and password for the admin user that has rights to delete a file. Is there a command I

[PHP] Re: Execute command line as a different user

2008-07-01 Thread Matt Palermo
Okay, I'll have to look into that. I have very limited knowledge with shell scripts. You wouldn't have an example of one that can do what I need do you? Thanks, Matt Shawn McKenzie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt palermo wrote: My PHP is running as a user

[PHP] Re: Execute command line as a different user

2008-07-01 Thread Matt Palermo
with this command? Is there a different way to do it? Thanks, Matt Matt palermo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] My PHP is running as a user with limited rights. I'd like to execute a command line as a different user. I'm trying to delete a file and the PHP user doesn't have

[PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Palermo
server. Is there a way around something like this? Or perhaps could the script keep time of how long it has been running will reading/writing and then be able to continue writing to the partial file? Does anyone have any suggestions for this problem? Thanks, Matt Palermo http://sweetphp.com

[PHP] Getting server information

2005-07-15 Thread Matt Palermo
() function to access the PHP file, that when the remote PHP file gets executed it can log some information about the source server which is accessing it? If so, what kind of code would I need to place in the remote PHP file to obtain some of the information. Thanks, Matt Palermo http

[PHP] FTP Chmod problem

2005-09-04 Thread Matt Palermo
); This properly changes the folder permissions to 777. Does anyone know why the ftp_chmod() function doesn't work correctly? As a side note, the ftp_chmod() function works correctly on a file, but not a directory. Any help is appreciated. Thanks, Matt Palermo http://sweetphp.com -- PHP

[PHP] Re: FTP Chmod problem

2005-09-05 Thread Matt Palermo
PROTECTED] Matt Palermo [EMAIL PROTECTED] writes: ftp_chmod($connId, 0777, $folder); The function almost works, but when I check the permission of the folder after it's run, the folder has 410 for permissions instead of 777. So, it is changing the permissions, but not to the correct value

[PHP] Organizing a group project

2006-06-19 Thread Matt Palermo
as well. Thanks, Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: FTP Chmod problem

2005-09-29 Thread Matt Palermo
I'm using 5.0.something. Al [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Palermo wrote: Hello everyone. I have a script where I am using FTP functions to chmod files/folders. I'm running into a problem with the ftp_chmod() function when trying to change the permissions

[PHP] File Upload Max Size

2005-09-29 Thread Matt Palermo
Hello everyone. I'm basically building a PHP FTP client app. This app connects to an FTP server and allows the user to edit/delete files/permissions, etc. I've gotten to the point where I have started to create a file upload feature. The problem I have is that PHP only allows a 2mb maximum

[PHP] Re: File Upload Max Size

2005-09-30 Thread Matt Palermo
Well, I would like to at least be able to upload a 10mb - 15mb file. I don't need it to upload files that are HUGE, just a reasonable size. zzapper [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 30 Sep 2005 01:19:01 -0400, wrote: Hello everyone. I'm basically building a

[PHP] Custom Usort Function

2006-01-23 Thread Matt Palermo
? Please let me know. Thanks, Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Custom Usort Function

2006-01-24 Thread Matt Palermo
Any ideas on how to accomplish this? Matt Palermo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm try to sort a list of items using a usort function. Basically, I want it to sort in this order: Numbers (0-9) Letters (Aa-Zz) Other (anything else) To explain a little

[PHP] Beta Testers Wanted

2006-02-22 Thread Matt Palermo
://sweetphp.com and they have become very successful because of all your help. Thanks, Matt Palermo [EMAIL PROTECTED] http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Link acting as a submit button

2003-07-24 Thread Matt Palermo
I am trying to create a submit button out of a hyperlink using the following code: (this is in a file called index.html) A href=javascript:go_where_my_variable_says('this.php');this page/a SCRIPT LANGUAGE=JavaScript !-- function go_where_my_variable_says(where) {

RE: [PHP] Link acting as a submit button

2003-07-24 Thread Matt Palermo
Fixing the javascript that you specified still gave me the same errors... Got any more suggestions? Thanks for your help, Matt -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 6:40 PM To: Matt Palermo Subject: Re: [PHP] Link acting as a submit

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
= Original Message From Curt Zirzow [EMAIL PROTECTED] = * Thus wrote Matt Palermo ([EMAIL PROTECTED]): I am trying to create a submit button out of a hyperlink using the following code: (this is in a file called index.html) A href=javascript:go_where_my_variable_says('this.php');this page

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
I just remembered (I'm not sure if it makes a difference) that I am using frames on this page. Does this matter at all? Thanks. Matt = Original Message From Matt Palermo [EMAIL PROTECTED] = Fixing the javascript that you specified still gave me the same errors... Got any more

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
into a link instead? Thanks, Matt = Original Message From Comex [EMAIL PROTECTED] = [EMAIL PROTECTED] Matt Palermo: I just remembered (I'm not sure if it makes a difference) that I am using frames on this page. Does this matter at all? Thanks. Matt No, it doesn't... well

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
I found out that it works fine without the submit button that I had in there. When I take the submit button out, it works, if I put it back in there I get the error message again. Any ideas? Matt = Original Message From [EMAIL PROTECTED] = On Fri, 2003-07-25 at 05:30, Matt Palermo

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
Okay, I got it to work. I just put the id parameter in the submit button tag and it works fine now. Thanks for all your help guys... = Original Message From [EMAIL PROTECTED] = Why do you have a submit button and a link to submit the form. Dont u want them to use the submit button for

RE: [PHP] Using link to submit a form

2003-07-30 Thread Matt Palermo
//Just use this javascript function... echo script LANGUAGE=\JavaScript\ !-- function LetsSubmit(where) { document.forms[0].action = where; document.forms[0].submit(); } //-- /script ; // Then output the submit link like this... echo a

[PHP] Right Click Hyperlink

2003-07-31 Thread Matt Palermo
Does anyone know if there is anything in PHP or any other language that would allow a specific action to occur if a visitor right-clicked on a link. For example, they could left click on it an go to a specified page, and they could also right-click it to go to a different page. Anyone know of

RE: [PHP] Extracting Compressed Files

2003-08-08 Thread Matt Palermo
PROTECTED] Sent: Monday, August 04, 2003 11:46 PM To: Matt Palermo Subject: Re: [PHP] Extracting Compressed Files Use exec to execute the command line programs that deal with these archives. Namely tar and gz and bzip2 and zip/unzip. For single files that are compressed you can use PHP to decompress

RE: [PHP] Unzipping Files

2003-08-10 Thread Matt Palermo
PM To: Matt Palermo Cc: 'Adam Alkins'; [EMAIL PROTECTED] Subject: RE: [PHP] Unzipping Files I am doing this for a client, and he doesn't have the ZZIPlib installed, and would like to avoid it if possible. Any other ideas? It has been mentioned before: use exec, or the backtick operator

RE: [PHP] Unzipping Files

2003-08-14 Thread Matt Palermo
familiar with this subject. Matt -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 11:45 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Unzipping Files On Wednesday 06 August 2003 10:19, Matt Palermo wrote: Yeah, I know someone mentioned using

[PHP] Extracting Compressed Files

2003-08-14 Thread Matt Palermo
Does anyone know of easy ways to be able to extract all files/folders/subfolders from different types of compressed files (.zip, .tar.gz, etc.)? If anyone could help me out with this, I would really appreciate it. Thanks, Matt

RE: [PHP] Unzipping Files

2003-08-14 Thread Matt Palermo
I am doing this for a client, and he doesn't have the ZZIPlib installed, and would like to avoid it if possible. Any other ideas? Thanks, Matt -Original Message- From: Adam Alkins [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 8:24 PM To: Matt Palermo Cc: [EMAIL PROTECTED

[PHP] Unzipping Files

2003-08-14 Thread Matt Palermo
Anyone know where I can find tutorials or examples on how to use the gunzip, gzip, and other commands using PHP to work with compressed files? I would really appreciate it if someone could send me some links or examples of how to use them. My goal would be to be able to extract .zip, .gz, and

[PHP] Beta Testers Needed - Free software opportunity

2003-09-08 Thread Matt Palermo
to everyone who has helped me out. Matt Palermo [EMAIL PROTECTED] http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] scheduled tasks

2003-06-06 Thread Matt Palermo
Does anyone know if there is any other way to have a php script run automatically (everyday, or week, or month, etc...) besides a cron job or scheduled task? Thanks. Matt

[PHP] delete lines from text file

2003-06-05 Thread Matt Palermo
Can anyone help me figure out how to search for a string in a text file, then delete the whole line of text that it occurs in? For example: I have a text file which contains the following. //** text.txt ** Keep this line. Also keep this line. Delete this line. Keep this one too.

[PHP] php and flash chat program

2003-06-09 Thread Matt Palermo
Hey, I need some advice if anyone is willing to offer it. I have a chat program I am working on. The interface is built in flash, and it uses PHP also. There is a main chat area where the users type their messages back and forth, and there is also a smaller area which displays all of the

[PHP] working with sessions

2003-06-09 Thread Matt Palermo
I was wondering if there is a way to tell if a session exists or not. For example, have a system where people login and it starts a session like: sess_cf4c4f6a8cffaf3334df48b6ea1d55e4 If the user logs out or the session is destroyed, then it won't exist anymore. I know you can use the

RE: [PHP] php and flash chat program

2003-06-09 Thread Matt Palermo
, June 09, 2003 6:15 PM To: Matt Palermo; PHP General Subject: Re: [PHP] php and flash chat program What I normally do in these situations is have two fields separated by tabs or commas or whatever you want. The first field is the username and the second field is a timestamp. The timestamp can

RE: [PHP] Re: working with sessions

2003-06-09 Thread Matt Palermo
. Matt -Original Message- From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: working with sessions Matt Palermo wrote: My question is can I search the session folder

Re: [PHP] Best PHP books

2003-06-10 Thread Matt Palermo
I have The PHP Black Book, and I find that it works great. Here is a link to amazon.com where it is located: http://www.amazon.com/exec/obidos/ASIN/1588800539/102-8343451-6560118 Good luck. Matt - Original Message - From: Brian @ BHTSystems [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] getting file contents

2003-06-11 Thread Matt Palermo
I have text a file which contains php code. I am using it as a template for some other pages. I want to take everything in that file and store it in a string or array and then output it all to an empty file (this will make both files look exactly the same). I am using the file_get_contents()

Re: [PHP] getting file contents

2003-06-11 Thread Matt Palermo
Subject: Re: [PHP] getting file contents On Wednesday 11 June 2003 23:54, Matt Palermo wrote: I have text a file which contains php code. I am using it as a template for some other pages. I want to take everything in that file and store it in a string or array and then output it all

[PHP] slash trouble when editing text

2003-06-11 Thread Matt Palermo
I wrote a small script that creates a link to all the .php and .txt files in a given directory. When one of these links is clicked, it brings up another window with the files contents inserted into a text area. From there the user can edit the text file then click a submit button to make the

Re: [PHP] slash trouble when editing text

2003-06-11 Thread Matt Palermo
Will the stripslashes() remove the slashes that are supposed to be in the file? Because often times there are slashes in the file that need to be there. Matt - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Matt Palermo [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent

[PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
I have a script that creates a php file based on user input. I need this newly created file to have write permissions - chmod 777. How can I have the script create the file with these permissions already set? Is this possible? Thanks, Matt

Re: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
- Original Message - From: Alex Earl [EMAIL PROTECTED] To: Matt Palermo [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, June 13, 2003 2:37 PM Subject: Re: [PHP] create a chmod'd file I have a script that creates a php file based on user input. I need this newly created file to have write

Re: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
] Sent: Friday, June 13, 2003 2:59 PM Subject: Re: [PHP] create a chmod'd file On Saturday 14 June 2003 02:43, Matt Palermo wrote: I am using the fopen(), then using fwrite() to write text to it. After this I am trying this command which doesn't work: chmod($filename, 0777

RE: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
How do I get the script to own the file? Are there special commands needed for this? Matt -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:08 PM To: Matt Palermo; [EMAIL PROTECTED] Subject: RE: [PHP] create a chmod'd file [snip] It just

RE: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
What is the umask()? What is that used for? How do I set that up right? Matt -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] create a chmod'd file On Saturday 14 June 2003 03:01, Matt Palermo

[PHP] session question

2003-06-15 Thread Matt Palermo
When a session is started on my server, it gets a name in the sessiondata folder like: sess_8sjg4893m9d0j43847dk4o5l2 I was just wondering if all sessions on ANY server start with sess_? Is this a PHP-wide default, or can it be changed (not that I want to change it, I just want to know if it

[PHP] print all variables

2003-06-18 Thread Matt Palermo
Could anyone tell me how to print all the variables and values from a submitted form, so that I can check them? Thanks, Matt

[PHP] working with forms

2003-06-18 Thread Matt Palermo
I have a forms page that a user will fill out. When it is submitted, it checks to see if any of the field entries entries are empty, and if so, it has a die() statement that has a link (javascript:history.back()) which sends the user back to the form page. However, when they go back to the

[PHP] return all non-tag characters

2003-06-21 Thread Matt Palermo
I want to be able to retrieve and return all character that are not located in html tags. For example: font size=\3\ color=\#336699\1234567/font or marquee1234567/marquee I would just like it to be equal to 1234567, but I would need it to work with any tags and attributes. Is there a way to

RE: [PHP] linking with home directory

2003-07-09 Thread Matt Palermo
The XP and 2000 are two different machines. = Original Message From Matt Matijevich [EMAIL PROTECTED] = [snip] Like I said before, the style sheets load up fine on my Windows XP IIS server, but not the Windows 2000. In order to get it to work on the Windows 2000 IIS server, I have to

RE: [PHP] linking with home directory

2003-07-09 Thread Matt Palermo
I have done that, and it displays the correct location. I don't know what else to do. Is there maybe something in the php.ini file? = Original Message From Mike Brum [EMAIL PROTECTED] = First, I'd create a simple test to see what the value of $newDir = $HomeDir.themes/.$ThemeFolder;

RE: [PHP] linking with home directory

2003-07-09 Thread Matt Palermo
a different machine? Matt Palermo [EMAIL PROTECTED] 07/09/03 10:52AM The XP and 2000 are two different machines. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Get previous folder

2003-07-10 Thread Matt Palermo
Anyone know how I can stip off the end of a folder location, so that it will be a folder in the next level up? I want to turn something like this: /path/to/folder/MyFolder/ into somthing like this: /path/to/folder/ I just need to strip off the last folder and that is it. Can anyone help me

[PHP] download hyperlink

2003-07-10 Thread Matt Palermo
Does anyone know how I can set a hyperlink to a file so that someone can download the file instead of viewing it in the browser? Please let me know. Thanks. Matt

[PHP] Insert leading zeros

2003-07-15 Thread Matt Palermo
I have a string of digits that looks like something like these: 0025, 1234, 0001, 1003, and so on. They are all 4 digits in length. Then when I increment one of them by 1, I want to still have 4 digits for the value (it should insert the leading zeros if needed). Is there any type of function

RE: [PHP] Insert leading zeros

2003-07-15 Thread Matt Palermo
Thanks a lot. It works like a charm! -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 8:45 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Insert leading zeros Matt Palermo [EMAIL PROTECTED] wrote: I have a string of digits that looks like

[PHP] Problem adding value to session array

2003-07-17 Thread Matt Palermo
I have a session array that stores some values that I set. It holds all the inserted values, unless the value I want to insert has a space in it, then it only inserts the characters before the space into the array. It looks like this: // This works $sessionArray[1] = nospace; echo result:

[PHP] Input Submi Help

2003-07-17 Thread Matt Palermo
I have a script that contains a form which goes to page1.php on the click of a submit button. Inside the form are lots of checkboxes and things to fill out that get passed to page1.php. I want to put another button in there that send all the same names and values of the checkboxes to page2.php.

[PHP] replacing everything between 2 strings

2003-07-21 Thread Matt Palermo
Is there a way to replace everything between 2 given strings if it exists? Say I have: $str = replace anything and everything in here.; Now I want to replace everything between the word replace and here., so the new string could read something like this: $str = replace NOTHING here.; So

RE: [PHP] replacing everything between 2 strings

2003-07-21 Thread Matt Palermo
To: Matt Palermo; [EMAIL PROTECTED] Subject: RE: [PHP] replacing everything between 2 strings look into opendir and readdir with opendir you can open a handle to a directory and use readdir in a loop to look at every file (fopen or whatever to load each file) then parse your files. readdir may help you

[PHP] ftp browsing

2003-02-23 Thread Matt Palermo
I have a php script that is like and ftp client, only is just browsers the server and displays file names and folders. If you click on the name of a folder that it displays, it will then display the files and folders inside that directory, and so on for all directories. It works perfectly when I

RE: [PHP] ftp browsing

2003-02-23 Thread Matt Palermo
I am using Windows XP Pro, and I am using Serv-U to run my FTP server. It is just a server running from my machine. Is it supposed to have PHP installed somewhere? -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 9:05 PM To: Matt Palermo

RE: [PHP] ftp browsing

2003-02-23 Thread Matt Palermo
The web server is RedHat Linux and it's PHP version 4.2.3. -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 9:21 PM To: Matt Palermo; [EMAIL PROTECTED] Subject: RE: [PHP] ftp browsing I am using Windows XP Pro, and I am using Serv-U to run my

[PHP] Initial Value for Input Box

2003-09-29 Thread Matt Palermo
I have a form that a user can fill out. In the text input field I allow them to insert HTML tags with their input data. They can then submit the form for processing. The problem is that later on when they go to edit their inputs (I initialize the text input with their previously submitted

[PHP] Sort an array of objects

2003-10-01 Thread Matt Palermo
I have an array of object for files on my site. The objects hold a file's name, size, extension, etc... I was wondering if anyone knows where I could find a relatively easy function for sorting the array of these objects by either name, size, etc... Please let me know if got any tips. Thanks a

[PHP] Using PHP with JAVA

2003-10-24 Thread Matt Palermo
I have been searching the web for ways to execute remote PHP files through the use of JAVA code, but I haven't had any luck. I have found many ways to call JAVA functions from a PHP script, but not the other way around. What I'm trying to accomplish is I want to build a JAVA application that

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Matt Palermo
that was made availble with 1.4 better stop before someone shoots me down this is a PHP list after all :-) Matt Palermo wrote: I have been searching the web for ways to execute remote PHP files through the use of JAVA code, but I haven't had any luck. I have found many ways to call JAVA

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Matt Palermo
are building an image gallery type application, you will be able to do mos of the work just by using java.net package has has been pointed out. all the best Matt Palermo wrote: I don't neccessarily WANT to mix the 2 languages. I just have an application on my webserver that uses

[PHP] Calendar Tool

2003-10-28 Thread Matt Palermo
Hey everyone. I am the creater of a PHP script called TotalCalendar (http://sweetphp.com/TotalCalendar/) and I am looking for a little advice and suggestions about making a tool for it. I want to build an application that users can download and install on their local machines which connects to a

[PHP] Re: Calendar Tool

2003-10-28 Thread Matt Palermo
Oops... The link to the site is: http://www.sweetphp.com/projects/TotalCalendar/ Sorry. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MX lookup email verification on Windows

2003-11-07 Thread Matt Palermo
Does anyone know of a way to perform an MX lookup on a Windows server to perform an email verification? Any help on this would be great, since I can only find code for this that will work on *nix servers. Please let me know if you can help. Thanks, Matt -- PHP General Mailing List

Re: [PHP] MX lookup email verification on Windows

2003-11-07 Thread Matt Palermo
Is there any way to accomplish this without the use of exec() or system() functions? Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday 08 November 2003 03:39, Matt Palermo wrote: Does anyone know of a way to perform an MX lookup on a Windows server to perform

[PHP] Get value between 2 strings

2003-11-16 Thread Matt Palermo
Hello. I was wondering if anyone knew of a function to get the value between 2 strings. For example, lets say I have the following line: $line = I want the value between word ONE and word TWO. Please return it...; Now, I want to get everything between ONE and TWO. In this example it should

[PHP] Communicating with remote server

2003-11-17 Thread Matt Palermo
I am writing a desktop application using PHP-GTK. I would like this program to be able to connect to a remote server, call some functions that I specify, and return the right information (most likely from a MySQL db). I have access to the server, so I can create any and all functions that I

[PHP] Sort Array by date

2003-12-04 Thread Matt Palermo
I have a bunch of dates in the form: MM-DD- in an array and I want to sort them and display them in descending order. I have tried the usort() function below and it's not working. Can anyone help me out here? $menu_item = array(); $menu_item[] = 12-04-2003; $menu_item[] = 11-19-2003;

[PHP] Email Forwarders

2003-12-13 Thread Matt Palermo
I have a hosted website which uses CPanel. I can login to CPanel and create as many email forwarders as I want. Is there a way I can write a PHP script to manage these email forwarders? For example, somebody registers on my site and they want to be added to the for a certain email address (as

[PHP] Create a zip archive from a folder

2004-01-29 Thread Matt Palermo
Hello. Does anyone know how I can easily create a zip archive from a folder on my server? I have a library class that will do this for a tar file (I just give it the folder name and the archive name and it creates the tar file for me very easily). I was wondering if there is anything really

[PHP] Recursive Select Box

2004-02-18 Thread Matt Palermo
Hey everyone. I'm looking for assistance/suggestions/answers on how to build a select dropdown box from data that needs to be pulled recursively from a MySQL database. Basically the situation is mainly for a dicussion thread system type of thing where I have categories nested inside categories,

[PHP] Re: Recursive Select Box

2004-02-18 Thread Matt Palermo
No, i'm using a MySQL DB. Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Palermo wrote: Hey everyone. I'm looking for assistance/suggestions/answers on how to build a select dropdown box from data that needs to be pulled recursively from a MySQL database

[PHP] Make sure folder is writable

2004-02-24 Thread Matt Palermo
Is there a way to check a folder on the server to make sure a specified folder has write permissions? I'm writing an upload script, but I need to make sure the user gave the destination directory write permissions before I can copy the files to the new folder. Anyone got any ideas? Thanks,

[PHP] Get MySQL table field names

2004-02-29 Thread Matt Palermo
How can I get the field names from a specified MySQL table? I don't need the data, I just want to get an array of the tables field names. Thanks, Matt http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image Storage

2004-03-22 Thread Matt Palermo
I am creating a system to allow users to upload images to the site. Would it be better to store the images in a MySQL table, or having it save the images to a directory on the server? Anyone have any suggestions on this? Pros? Cons? Thanks, Matt http://sweetphp.com/ -- PHP General Mailing

[PHP] Keep HTML tags, but strip attributes

2004-04-03 Thread Matt Palermo
it to just p. Anyone know of a way this can be done? Thanks, Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Keep HTML tags, but strip attributes

2004-04-03 Thread Matt Palermo
be /p. I just need this to work for any tag, no just p. Any suggestions for this? Thanks, Matt Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Palermo wrote: I am building a system which allows users to post data. I want to allow them to use ONLY certain tags

Re: [PHP] Keep HTML tags, but strip attributes

2004-04-03 Thread Matt Palermo
in message news:[EMAIL PROTECTED] Matt Palermo wrote: I am building a system which allows users to post data. I want to allow them to use ONLY certain tags such as p, /p, b, /b, i, /i, etc... I want to allow them to use only these, and then strip out ALL attributes inside the tags. So

[PHP] Regular Expressions

2004-04-04 Thread Matt Palermo
I have a page where I am stripping the html tags down. Basically, it will allow certain tags, but still strips out ALL attributs of the tag, so it works something like this: $allowed_tags = pbrstrongbiu; // State which tags are allowed $info = strip_tags($info, $allowed_tags); // Strip all

Re: [PHP] Regular Expressions

2004-04-06 Thread Matt Palermo
What exactly does this do: / (?=p|br) [^]+ /x It may work, I just want to understand what it's looking for. Thanks, Matt Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Matt Palermo ([EMAIL PROTECTED]): I have a page where I am stripping the html tags

[PHP] Search MySQL and Match Whole Words

2004-04-22 Thread Matt Palermo
I was wondering if anyone knows how to do whole word searches in mysql. I have a search textbox that users can enter in multiple words to search for in the database, but things like the mysql LIKE match any part of a word. Is there a way to search for whole word matches only? Please let me know

[PHP] MySQL Dump

2004-04-22 Thread Matt Palermo
Is there an easy way to do a mysql dump routine written in php? I basically want to write a function to backup a database and have it create all the neccessary structures and data in the dump. I know phpMyAdmin will do this for me, but I want to write a function to do this incase the server

[PHP] Re: Search MySQL and Match Whole Words

2004-04-22 Thread Matt Palermo
not just use WHERE word = inputWord and skip the whole LIKE thing for an exact match? Is that what you mean? Respectfully, Ligaya Turmelle Matt Palermo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I was wondering if anyone knows how to do whole word searches in mysql. I have

Re: [PHP] MySQL Dump

2004-04-23 Thread Matt Palermo
Will this work on both a Windows and Unix server? Michal Migurski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there an easy way to do a mysql dump routine written in php? I basically want to write a function to backup a database and have it create all the neccessary

[PHP] HTML vs. Plain Text Input

2004-05-07 Thread Matt Palermo
Hey, I was wondering if anyone knows of any easy ways to detect for HTML input. I have a textarea box that I want users to be able to input either plain text or HTML code. I will later display this input data, so if the user input plain text then I will replace newline characters (\r\n, \n, \r)

[PHP] Changing maximum upload file size

2004-05-23 Thread Matt Palermo
Is there a way to change the maximum file upload size in a PHP script? Kind of like the way you can change the error reporting in a script, but I just want to adjust the max file upload size. Does anyone know if this can be done? Thanks, Matt Palermo http://sweetphp.com -- PHP General

Re: [PHP] Changing maximum upload file size

2004-05-23 Thread Matt Palermo
Does this allow you to work with larger files than the maximum specified in the php.ini or just smaller ones? Thanks, Matt Palermo http://sweetphp.com Rachel Rodriguez [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Matt Palermo [EMAIL PROTECTED] wrote: Is there a way

[PHP] Link Management Software

2004-05-29 Thread Matt Palermo
/modules.php?name=Script_Previewscript=4 It will be on sale for half price over the next week or two, but you can get a free copy by being one of the first 5 people to email me for it. Thanks again for all your help! Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php.net

[PHP] Cron Job in vDeck

2004-06-03 Thread Matt Palermo
Hey guys. I was wondering if anyone knows how to go about creating a cron job using vDeck (that's what is installed on the server) that just accesses a PHP file and runs everything in the PHP file. Does anyone know how to go about doing something like this? Thanks, Matt http://sweetphp.com --

[PHP] Close all open tags in HTML text

2004-12-08 Thread Matt Palermo
I am allowing users to imput HTML code into a textarea. After they input this, I wany to output their HTML to the browser. In order for the document to be safe, I need to close all open HTML tags that have been left open by the user, along with any open comments. Is there a way to take an

Re: [PHP] Close all open tags in HTML text

2004-12-09 Thread Matt Palermo
] Matt Palermo wrote: I am allowing users to imput HTML code into a textarea. After they input this, I wany to output their HTML to the browser. In order for the document to be safe, I need to close all open HTML tags that have been left open by the user, along with any open comments

  1   2   >