在Filezilla上传后查看PHP(Viewing a PHP after uploading on Filezilla)
这是我第一次使用Filezilla和ftp。 我上传了我的files.php。 在地址栏上输入主机名后,我可以看到我上传了哪些文件。 有趣的部分来到这里:当我点击index.php查看时,它只显示了html部分。
当我打开页面源代码时,我看到我的php被评论过,像这样:
从我最初写的:
<?php include '/includes/php/menu.php'; ?>
<?php include '/includes/php/menu.php'; ?>
它成了:
<!--?php include '/includes/php/menu.php'; ?-->
<!--?php include '/includes/php/menu.php'; ?-->
如果有人能帮助我,我会很感激。 以上任何一项都与主机属性有关吗? 从我读到的,它支持PHP。
This is my first time I use Filezilla and ftp. I uploaded my files.php. After I entered the hostname on address bar, I could see which files I had uploaded. The interesting part comes here: When I clicked on index.php to view, It displayed only the html parts.
When I opened page source code, I saw that my php was commented, like this:
From what I had originally written:
<?php include '/includes/php/menu.php'; ?>
it became:
<!--?php include '/includes/php/menu.php'; ?-->
If anyone could help me I would appreciate it. Does any of the above has anything to do with host properties? From what I read, it supported php.
原文:https://stackoverflow.com/questions/22565436
最满意答案
使用
modalTransitionStyle
属性:MFMailComposeViewController *mcontroller = [[MFMailComposeViewController alloc] init]; [mcontroller setTitle:@"..."]; [mcontroller setMessageBody:@"..." isHTML:NO]; mcontroller.mailComposeDelegate = self; mcontroller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self presentModalViewController:mcontroller animated:YES]; [mcontroller release];
Use the
modalTransitionStyle
property:MFMailComposeViewController *mcontroller = [[MFMailComposeViewController alloc] init]; [mcontroller setTitle:@"..."]; [mcontroller setMessageBody:@"..." isHTML:NO]; mcontroller.mailComposeDelegate = self; mcontroller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self presentModalViewController:mcontroller animated:YES]; [mcontroller release];
相关问答
更多-
尝试这个: Home_Screen *lvc1 = [[Home_Screen alloc]initWithNibName:@"Home_Screen" bundle:[NSBundle mainBundle]]; [self.parentViewController presentModalViewController:lvc1 animated:NO]; [lvc1 release]; Try this: Home_Screen *lvc1 = [[Home_Screen alloc]init ...
-
当提问者报告他的问题时, MFMailComposeViewController使用一些不应归类的原生元素。 因此,您必须确保UITextField或UITextView等元素上没有任何类别。 As the asker reported on his question, MFMailComposeViewController uses some native elements that shouldn't be categorized. So, you have to be sure there aren' ...
-
好吧,我猜想,我已经弄明白了。 对于可能在这种情况下发现自己的其他人来说,这是一种工作方法(我犹豫地说“正确的方法”): - (void) showMusicPicker; { [[Director sharedDirector] pause]; musicController = [[UIViewController alloc] init]; [musicController setView:[[Director sharedDirector] openGLView]]; [musi ...
-
不,如果你分配并初始化它,那么你必须释放它。 像这样做: YourViewController *controller = [[YourViewController alloc] initWithNibName:@"YourView" bundle:nil]; [self presentModalViewController:controller animated:YES]; [controller release]; PresentModalViewController:animated:自动增加ret ...
-
iPhone:如何关闭MFMailComposeViewController?(iPhone: How to Close MFMailComposeViewController?)[2022-04-15]
您正在设置委托错误, MFMailComposeViewController的委托属性被称为mailComposeDelegate,因此它应该是: mailer.mailComposeDelegate = self; 我可以看到的另一个可能的错误是在mailer上调用dismissModalViewControllerAnimated:您应该将此消息发送给呈现邮件接口的视图控制器 - 在这种情况下为self : [self dismissModalViewControllerAnimated:YES]; ... -
使用modalTransitionStyle属性: MFMailComposeViewController *mcontroller = [[MFMailComposeViewController alloc] init]; [mcontroller setTitle:@"..."]; [mcontroller setMessageBody:@"..." isHTML:NO]; mcontroller.mailComposeDelegate = self; mcontroller.modalTransiti ...
-
您需要对视图控制器的显示进行排队 ,以便系统有机会将按钮文本实际更改为“等待”。 如果您想了解更多信息,可以使用Google runloop iOS 。 buttonlabel.text = @"Wait"; dispatch_async(dispatch_get_main_queue(), ^{ [self presentModalViewController: controller animated: YES]; }); 但你真的应该调查为什么展示VC需要花费很多时间,而是找到一种优化代码的方 ...
-
presentModalViewController与pushViewController(presentModalViewController vs. pushViewController)[2023-06-20]
pushViewController仅适用于导航控制器 presentModalViewController适用于所有视图控制器 pushViewController only works in navigation controllers presentModalViewController works for all view controllers -
这是因为您在viewDidLoad中呈现它,尝试在viewDidAppear中呈现它。 It is because you are presenting it in viewDidLoad, try presenting it in viewDidAppear.
-
你确定self在这个上下文中是一个UIViewController。 您只能从另一个UIViewController调用此代码。 确保首先初始化Facebook控制器类,不能只传递类。 Facebookcontroller *facebookController = Facebookcontroller alloc] init]; 对于iOS 6使用: [self presentViewController:Facebookcontroller animated:YES completion:^{ ...