jazzman1
Staff Alumni-
Posts
2,713 -
Joined
-
Last visited
-
Days Won
12
Everything posted by jazzman1
-
I think, you do not need to worry about manually configuring the proper mode when transferring files using this php ftp library. Wouldn't be automatically determining the proper transfer mode based upon the contents of the file or the file's extension?
-
I've stopped using any proprietary sofware like skype and teamviewer many years ago Start, explaining us, why are you using mysqli and pdo libraries at the same time? Or, you fixed the issue from your first post replacing pdo with mysqli?
-
How many number of times this account can connect to the server within one hour?
-
As for mysql error(s) - http://dev.mysql.com/doc/refman/5.0/en/user-resources.html I strongly recommend you to read up the warning inside the pink box. EDIT: wrong link I've posted - http://www.php.net/manual/en/function.mysql-error.php
-
http://dev.mysql.com/doc/refman/5.0/en/user-resources.html
-
You need to change the call to all ereg_* functions to preg_* instead. http://php.net/manual/en/function.preg-replace.php
-
My logic says to me, <?php if(isset($_GET['subj'])){ $sel_subj = NULL; // to $sel_page = NULL; $sel_subj = $_GET['subj']; } elseif (isset($_GET['page'])){ $sel_page = NULL; //to $sel_subj = NULL; $sel_page = $_GET['page'] ; } else { $sel_subj= NULL; $sel_page =NULL; } ?>
- 2 replies
-
- php
- undefined variable
-
(and 1 more)
Tagged with:
-
According the directory structure of this framework, try to create the .htaccess file in to the views folder. Everything you need to do is to rewrite the request coming from the controlers to views.
-
Hm.....not sure if it works, however try the following example (to the first domain address) # Redirect the request from https://mysite.com/hotels # to http://mysite.com/hotels and force using HTTP Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTPS_HOST} ^www.mysite.com/hotels/?$ [OR] RewriteCond %{HTTPS_HOST} ^mysite.com/hotels/?$ # force HTTP RewriteCond %{HTTPS} =on RewriteRule ^(.*)$ http://mysite.com/hotels [R=301,L] Create the .htaccess file inside /hotels directory an give me a feedback what happens on that.
-
Can you confirm the existence of "/www" directory on the server? Not "/var/www/" or something similar. What OS/Linux distros is the server and local machine running? EDIT: you also need to confirm the apache mod_rewrite directive is enabled on both machines.
-
I'm also working at this moment and have a full time job. So, the question is, if you are not able to fix that yourself after 44 replies, why don't you just hire some programmer to do this job for you?
-
@Mike, the main point to consider here is a file/directory permissions on linux. I was able to configure and run the script less than 20min executing it by apache and lxc users to 3 logical partitions on my CentOS 6.5 system and all results were successfully. Hire someone with knowledge on Unix machines and everything should be ok and stop making a mess.
-
Have you tried using ftp_binary instead ftp_ascii when you're dealing with images?
-
Post the output of: ls -la /var/www/httpdocs/geneBank/mupload/uploads/PL-17534/ //or ls -ld /var/www/httpdocs/geneBank/mupload/uploads/PL-17534/ What linux distro is that?
-
I installed in my centos machine just for testing purpose this API. So, I was able to index all searchable html files locating in directories out of apache home directory. Here it's my attempt, swish-e.conf IndexDir /home/lxc/public_html /var/www/html/tests IndexOnly .html .htm FuzzyIndexingMode Stemming_en1 [lxc@localhost pdo]$ /usr/local/bin/swish-e -c swish-e.conf Indexing Data Source: "File-System" Indexing "/home/lxc/public_html" Indexing "/var/www/html/tests" Removing very common words... no words removed. Writing main index... Sorting words ... Sorting 1 words alphabetically Writing header ... Writing index entries ... Writing word text: Complete Writing word hash: Complete Writing word data: Complete 1 unique word indexed. 4 properties sorted. 4 files indexed. 5 total bytes. 1 total words. Elapsed time: 00:00:00 CPU time: 00:00:00 Indexing done! My apache home dir in this system (if it matters at all) is /www/htdocs. I ran the command from the linux shell following the guide you've been posted before - http://devzone.zend.com/1591/indexing-web-content-with-php-and-swish-e/
-
As for getting a bash error, you need to escape the braces otherwise everything between them it will be treated by the parser as a group of commands. Try, LOAD DATA LOCAL INFILE '/home/jalewellyn/tstProducts.csv' INTO TABLE tstProducts FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' IGNORE 1 LINES \(Name, Type, Brand, Description, ABV, TimesAvailable, Image, Website\)
-
How did you fix the error(s)? Why are you overriding the link identifier?
- 7 replies
-
- mysqli
- fatalerror
-
(and 1 more)
Tagged with:
-
Why you (root) are not able to change permissions to this file. Try the following and give me back the output su -c 'chmod --verbose 755 /home/wvbadmin/pdf3/index.swish-e'
-
Same error? Can I see the output of - ls -la /home/wvbadmin/pdf3/index.swish-e
-
Then, do su -c 'chmod 755 /home/wvbadmin/pdf3/index.swish-e' and everything should work as expected.
-
Why did you call "/home/wvbadmin/pdf3/index.swish-e" when we're talking about "/home/wvbadmin/pdf2/index.swish-e". If you want to call "/home/wvbadmin/pdf3/index.swish-e" then you are providing us wrong script in your first reply! Can you post the script of pdfsearch2.php.
-
This your script - $swish = new Swish('/home/wvbadmin/pdf2/index.swish-e'); Re-read my 2 and 18 replies!
-
Mike, please, step by step. Can you explain this - How many files with the same name you have in your file structure?
-
Why pdf3 instead pdf2? Where the file, named index.swish-e is located? You are making some mess, please don't.
-
Check first, what value you're sending to database. I'm pretty sureit's incorrect. <?php var_dump($_POST["username"]); exit; include("config.php"); Note: The original MySQL extension is now deprecated and it's not recommended to use for new development. Instead, use the MySQLi or PDO_MySQL extensions.
- 1 reply
-
- javascript
- check
-
(and 3 more)
Tagged with: